Hi Jason, On 04/11/2012 06:10 AM, Jason Ma wrote: > Hi, > I download and tried to use the Django 1.4 yesterday. I am a dummy > and I just follow the official document, but When I just start a > project. > I found that it is what I see from my computer: > > jason@jason-pc:~/workspace/hunqing$ tree . > . > ├── hunqing > │ ├── __init__.py > │ ├── __init__.pyc > │ ├── settings.py > │ ├── settings.pyc > │ ├── urls.py > │ ├── urls.pyc > │ ├── wsgi.py > │ └── wsgi.pyc > ├── __init__.py > ├── manage.py > ├── settings.py > └── urls.py > > but what doc say? > mysite/ > manage.py > mysite/ > __init__.py > settings.py > urls.py > wsgi.py
Others have commented on the pyc files, but I don't think that's really the point here. The point is that there is an extra __init__.py, settings.py, and urls.py in the outer directory next to manage.py that should not be there. This is definitely a bug, and it's one that I've already seen reported several times, but it is not a bug in Django. With a clean installation of Django 1.4, the tutorial steps work as advertised. This bug occurs if somehow your installation of Django 1.4 is "layered" on top of an installation of Django 1.3, without the 1.3 installation ever having been removed. I'm not sure how this happens, but my best guess is that it could happen if you are using a very old version of pip (like, pip 0.3 era, before pip gained uninstall support). You're most likely to be using an old pip if you are using a Linux distribution's packaged pip; those tend to be quite outdated. If you are interested in helping to solve this issue (as opposed to, for instance, trollish hyperbole), it would be very helpful to know what operating system and version you are using, and how you installed Django 1.4 (i.e the exact commands you used). Thanks! Carl
signature.asc
Description: OpenPGP digital signature