question about django-admin.py

14 views
Skip to first unread message

Chen Xu

unread,
Dec 25, 2011, 4:09:38 AM12/25/11
to django...@googlegroups.com
Hi, everyone:
Does anyone run the following command recently: 
django-admin.py startproject project 

It does not create what the django document says:
it creates somehting like:

project/
    __init__.py
    manage.py
    settings.py
    urls.py
    project/
        __init__.py
        manage.py
        settings.py
        urls.py


it is like nested and duplicated directory.


Thanks


--
⚡ Chen Xu

软刀

unread,
Dec 25, 2011, 6:45:03 AM12/25/11
to django...@googlegroups.com
I don't know why u get this
I run it well

maybe u can reinstall it

Chen Xu

unread,
Dec 25, 2011, 10:03:38 AM12/25/11
to django...@googlegroups.com
No, I made a mistake in my previous email:
It generates something like:


project/
    __init__.py
    manage.py
    settings.py
    urls.py
    project/
        __init__.py
        wsgi.py
        settings.py
        urls.py


It seems like some changes have been made to the most recent django version?


Thanks



--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.



--
⚡ Chen Xu

Karen Tracey

unread,
Dec 25, 2011, 11:11:59 AM12/25/11
to django...@googlegroups.com
On Sun, Dec 25, 2011 at 10:03 AM, Chen Xu <xuch...@gmail.com> wrote:
It seems like some changes have been made to the most recent django version?
 
Yes. See: https://docs.djangoproject.com/en/dev/releases/1.4/#updated-default-project-layout-and-manage-py

Karen
--
http://tracey.org/kmt/

Daniel Roseman

unread,
Dec 25, 2011, 11:17:32 AM12/25/11
to django...@googlegroups.com
On Sunday, 25 December 2011 15:03:38 UTC, Chen Xu wrote:
No, I made a mistake in my previous email:
It generates something like:

project/
    __init__.py
    manage.py
    settings.py
    urls.py
    project/
        __init__.py
        wsgi.py
        settings.py
        urls.py


It seems like some changes have been made to the most recent django version?


Thanks

Yes, and not surprisingly this is fully documented in the 1.4 alpha release notes:

and in the tutorial for the development version:
"Doesn't match what you see?
The default project layout recently changed. If you're seeing a "flat" layout (with no inner mysite/ directory), you're probably using a version of Django that doesn't match this tutorial version. You'll want to either switch to the older tutorial or the newer Django version."

If you're using the development version, you *MUST* follow the feed of changes. However, you really shouldn't be using it unless you have a really good reason. Use 1.3 until 1.4 is released.
--
DR.
 
 
Reply all
Reply to author
Forward
0 new messages