#17539 closed Cleanup/optimization (wontfix)
django-admin.py collectstatic is invalid
| Reported by: | Owned by: | Matt Seymour | |
|---|---|---|---|
| Component: | Documentation | Version: | 1.3 |
| Severity: | Normal | Keywords: | django-admin.py collectstatic |
| Cc: | Triage Stage: | Accepted | |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
The "django-admin.py collectstatic" command should be replaced with this command.
"python manage.py collectstatic"
Attachments (1)
Change History (4)
by , 14 years ago
comment:1 by , 14 years ago
| Cc: | added |
|---|---|
| Owner: | changed from to |
| Triage Stage: | Unreviewed → Accepted |
comment:2 by , 14 years ago
| Resolution: | → wontfix |
|---|---|
| Status: | new → closed |
comment:3 by , 14 years ago
| Cc: | removed |
|---|---|
| Type: | Bug → Cleanup/optimization |
Note:
See TracTickets
for help on using tickets.
These
'django-admin.py <command name>'titles in the documentation are generated automatically (with a custom role for the Sphinx tool) starting from the<command name>value. It was decided back then that such facility would prefix it with'django-admin.py '.Because of this, all the management commands in that document have with such a title even those commands whose execution would make more sense in the context of an existing project i.e. it is easier to invoke them by using
manage.py(e.g.collectstatic,startapp,syncdb,runserver, ...)This isn't wrong because, as the notes at the top of such document describe, it is possible to use these management commands by invoking
django-admin.pywith the--settingsswitch or by specifying theDJANGO_SETTINGS_MODULEenvironment variable. Also, these notes include this paragraph:The command-line examples throughout this document use django-admin.py to be consistent, but any example can use manage.py just as well.