Running Python 2.7 Mac OSX.
I did:
django-admin.py startproject test123
cd test123
open settings.py
Error: /users.../test123/settings.py
does not exist.
Why is this happening?
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
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.