Opened 7 years ago

Closed 7 years ago

#6252 closed (fixed)

better description of --settings in manage.py

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

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 7 years ago.

Download all attachments as: .zip

Change History (2)

Changed 7 years ago by whiskybar

comment:1 Changed 7 years ago by adrian

  • Resolution set to fixed
  • Status changed from new to closed

(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