Django Files: manage.py

By: Dusty Arlia
Published on Sunday, January 12, 2014, 12:31 PM
Last Updated on Tuesday, July 07, 2015 at 10:23 PM
Total Updates: 6

The manage.py file is a command-line utility that lets you interact with your Django project. manage.py is a Python file automatically created in each Django project.

manage.py is a thin wrapper around django-admin.py that does a couple things before delegating django-admin.py. manage.py does the following things:

  • Puts your project’s package on sys.path
  • Sets the DJANGO_SETTINGS_MODULE environment variable so that it points to your project’s settings.py file
  • It calls django.setup() to initialize various internals of Django

Here's a look at Django's default structure:

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

Comments:

Ad:

Ad: