I am new to Django and using Pycharm from IntelliJ as my IDE. When typing:
$ django-admin startproject mysite
the following project structure is generated:
mysite/
manage.py
mysite/
__init__.py
settings.py
urls.py
wsgi.py
This doesn't quite make sense since the files settings.py, urls.py, and wsgi.py are project specific, not app or package specific. Hence, they should go in the root folder just like manage.py. Please advise. Thanks.
startproject
command is correct, and therefore thesettings.py
is in the right place. I know you can haveurls.py
for each app - as each app can have it's own set of urls & sub-urls. – Tony Suffolk 66