[Answer]-What does Django-admin.py startproject do exactly?

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)

That’s pretty much it.

Leave a comment