Django 1.4 Why does the create project command create 2 identical folders

108 views
Skip to first unread message

Python_Junkie

unread,
Jun 26, 2012, 11:10:00 PM6/26/12
to django...@googlegroups.com
When one creates a project with django-admin.py why is a second my site folder created?

Mysite
----Mysite
----polls

Thanks in advance.

What is its function/value in this new version

Sergiy Khohlov

unread,
Jun 27, 2012, 2:09:01 AM6/27/12
to django...@googlegroups.com
first one name of the project second one name of the application. You
had executed both command

2012/6/27 Python_Junkie <software....@gmail.com>:
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/wSdsYgVkNGAJ.
> 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.

Joey Espinosa

unread,
Jun 27, 2012, 7:55:10 AM6/27/12
to django...@googlegroups.com
They're actually both considered your project. One just holds everything, and the other has global settings. Here is the official explanation:


Relevant text:
Django 1.4 ships with an updated default project layout and manage.py file for the startproject management command. 
These fix some issues with the previous manage.py handling of Python import paths that caused double imports, trouble 
moving from development to deployment, and other difficult-to-debug path issues. 
--
Joey "JoeLinux" Espinosa

Reply all
Reply to author
Forward
0 new messages