8👍
✅
I think your setting
directory needs an __init__.py
file so it is a valid Python package.
1👍
The more elegant way to split the settings for various kind of purpose is to replace the settings.py to settings as module and the original settings.py will be moved under settings, and rename to init.py like this,
models.py
settings/
__init__.py
test.py
- [Django]-Django tables 2: Hyperlinking items in a column
- [Django]-How do I change the django-registration e-mail template "site" name?
- [Django]-Testing django with mongoengine
- [Django]-Django log errors and traceback in file in production environment
- [Django]-Return object when aggregating grouped fields in Django
Source:stackexchange.com