Django Settings On Startup¶
See your chosen settings on standard output when django is starting with runserver
command with
an additional CLI option.
For Django 1.8.5 and Python 2.7, 3.2, 3.3, 3.4.
Python package information
Other information
Usage¶
Once installed, using this command:
python manage.py runserver --config
Additional CLI Options
--config | Show your settings on standard output. |
Please see python manage.py runserver --help
for more information additional options.
Install¶
Download package:
pip install django-settings-startup
Add “django_settings_startup” in first rank to your INSTALLED_APPS settings like this:
INSTALLED_APPS = [ 'django_settings_startup', ... ]
It is important to install this app in first (before native django apps), to override the command runserver
.
Read The Docs : Documentation¶
GitHub : Source Code¶
PyPI : open source Python packages¶
Travis CI : continous integration¶
Coveralls : code coverage¶
Useful links¶
- https://github.com/django/django/blob/stable/1.8.x/django/core/management/commands/runserver.py
- https://github.com/django/django/blob/stable/1.8.x/django/core/management/base.py
- https://github.com/django/django/blob/stable/1.8.x/django/core/management/commands/testserver.py
- https://docs.djangoproject.com/en/1.8/howto/custom-management-commands/
- https://docs.djangoproject.com/en/1.8/ref/django-admin/#running-management-commands-from-your-code