Programs in the package do not work as documented

Bug #1062052 reported by Paul Huygen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-django (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

The documentation (file:///usr/share/doc/python-django-doc/html/intro/tutorial01.html) states that you can create a new Django project with the command:

django-admin startproject mysite

However, when you do that, you get the message that the command does not exist. The documentation says, that when you get that message, you should make a symbolic link from the path to django-admin.py file to a file in a directory in your path. It is confusing which django-admin.py to choose, because python-django supplies [/usr/lib/python2.7/dist-packages/django/bin/django-admin.py], [/usr/lib/python2.7/dist-packages/django/bin/django-admin.pyc] and [/usr/local/bin/django-admin.py].

If you make a link from one of the three files to e.g. /usr/local/bin/django-admin.py, it turns out that you should make the file executable before runnking it.

When you finally run the command django-admin startproject mysite, you get the error message

"Unknown command: 'startproject'".

Probably you ought to give the command:

django-admin startapp mysite.

This is very confusing for a beginner. Therefore I suggest that in package python-django django-admin.py would be executable and in the path of users and that the documentation suggests the right command to set up a new site.

Thanks for your help.

Paul Huygen

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: python-django 1.3.1-4ubuntu1.2
ProcVersionSignature: Ubuntu 3.2.0-32.51-generic 3.2.30
Uname: Linux 3.2.0-32-generic i686
ApportVersion: 2.0.1-0ubuntu13
Architecture: i386
Date: Fri Oct 5 08:22:56 2012
PackageArchitecture: all
ProcEnviron:
 TERM=xterm
 PATH=(custom, user)
 LANG=nl_NL.UTF-8
 SHELL=/bin/bash
SourcePackage: python-django
UpgradeStatus: Upgraded to precise on 2012-05-01 (156 days ago)

Revision history for this message
Paul Huygen (paul-huygen) wrote :
Revision history for this message
James Page (james-page) wrote :

Hi Paul

I'm not able to reproduce this issue on 12.04; using django-admin from the python-django package works just fine for me. Can you check that you don't have an out-of-distro version kicking around on your system.

Thanks

Changed in python-django (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for python-django (Ubuntu) because there has been no activity for 60 days.]

Changed in python-django (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.