Answer the question
In order to leave comments, you need to log in
Where to change paths in Django project?
Checking two scoops of django now and want to build a project structure like there. Created a project called blog
Inside the blog project, renamed the blog folder to config.
blog
├── config
│  ├── __init__.py
│  ├── __init__.pyc
│  ├── settings.py
│  ├── settings.pyc
│  ├── urls.py
│  └── wsgi.py
├── manage.py
└── media
python manage.py runserver
ImportError: No module named blog.settings
Answer the question
In order to leave comments, you need to log in
In manage.py you need to specify the path to the settings
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings")
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question