1👍
You got the error, because when running django-admin
it doesn’t know what settings module to use. You may specify it via evironment variable as suggested in the error message, or just use manage.py
in your project.
django-admin is Django’s command-line utility for administrative
tasks.In addition, manage.py is automatically created in each Django
project. manage.py does the same thing as django-admin but takes care
of a few things for you:
- It puts your project’s package on sys.path.
- It sets the DJANGO_SETTINGS_MODULE environment variable so that it points to your project’s settings.py file.
See more here: https://docs.djangoproject.com/en/1.9/ref/django-admin/
Source:stackexchange.com