Django

Code

Ticket #6252 (closed: fixed)

Opened 8 months ago

Last modified 8 months ago

better description of --settings in manage.py

Reported by: whiskybar Assigned to: nobody
Milestone: Component: Documentation
Version: SVN Keywords: manage.py settings
Cc: Triage Stage: Unreviewed
Has patch: 1 Needs documentation:
Needs tests: Patch needs improvement:

Description

I believe the django-admin documentation page should mention how manage.py takes care of DJANGO_SETTINGS_MODULE instead of stating the fact. django-admin.py actually does not use DJANGO_SETTINGS_MODULE at all but always looks for settings.py in the current PYTHONPATH. I usually work with DJANGO_SETTINGS_MODULE=settings_dev and the production settings.py included and overridden in this settings_dev.py. I always have to pass --settings=settings_dev to manage.py; this is not obvious from the documentation though.

Attachments

django-admin.txt.diff (0.6 kB) - added by whiskybar on 12/20/07 10:34:30.

Change History

12/20/07 10:34:30 changed by whiskybar

  • attachment django-admin.txt.diff added.

01/01/08 23:08:26 changed by adrian

  • status changed from new to closed.
  • resolution set to fixed.

(In [6983]) Fixed #6252 -- Clarified the --settings option in docs/django-admin.txt. Thanks, whiskybar


Add/Change #6252 (better description of --settings in manage.py)




Change Properties
Action