1👍
✅
Example:
# running django-admin.py inside /opt
/opt$ django-admin.py startproject testproject
Created structure:
- /opt
- testproject
manage.py
(the script which you use instead of django-admin.py for this project)- testproject (the directory which keeps the codebase for your project)
__init__.py
(this file let’s Python know that this folder is a package)settings.py
(django settings file created from a template)urls.py
(Django URLs file in which you put all your URL structure)wsgi.py
(the WSGI script which you can use to serve your application later on)
- testproject
That’s pretty much it.
Source:stackexchange.com