JackedJacked123 JackedJacked123 - 1 year ago 117
Python Question

settings.py does not exist django

Running Python 2.7 Mac OSX.

I did:

django-admin.py startproject test123
cd test123
open settings.py

does not exist.

Why is this happening?

Answer Source

By default django creates folder named test123 if doesn't exists, and then puts settings in python package called test123 https://docs.djangoproject.com/en/1.10/ref/django-admin/#startproject

So your settings will be in test123 subfolder of test123

django-admin.py startproject test123
cd test123
ls -la
open test123/settings.py
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download