Opened 16 years ago

Closed 16 years ago

#6252 closed (fixed)

better description of --settings in manage.py

Reported by: whiskybar Owned by: nobody
Component: Documentation Version: dev
Severity: Keywords: manage.py settings
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

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 (1)

django-admin.txt.diff (572 bytes ) - added by whiskybar 16 years ago.

Download all attachments as: .zip

Change History (2)

by whiskybar, 16 years ago

Attachment: django-admin.txt.diff added

comment:1 by Adrian Holovaty, 16 years ago

Resolution: fixed
Status: newclosed

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

Note: See TracTickets for help on using tickets.
Back to Top