Install docs - admin static files - clarification
|Reported by:||bb42||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Description (last modified by jezdez)
Getting django installed easyly is one crucial aspect of making it more popular.
Coming from a PHP background I found getting the demo "polls" application to work quite a challenge. One aspect is the static file handling, that is described as part of the Apache-WSGI installation:
We _strongly_ recommend using the staticfiles app" might not be valid for people who start with Django, so to clarifiy this paragraph I propose the following new text:
- As long as you use the development server, you need not care about static files configuration, because these files are served automatically for the admin and any other installed apps.
- If you use a dedicated web server, like Apache, the easiest way to configure the Admin static files handling is to setup an Alias in Apache's httpd.conf (or apache.conf etc.), similar to the Alias directives described above.
An example from a recent debian installation is:
Alias /static/admin /usr/local/lib/python2.6/dist-packages/django/contrib/admin <Directory /static/admin/> Order deny,allow Allow from all </Directory>
Change History (5)
comment:1 Changed 3 years ago by bb42
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
comment:3 Changed 3 years ago by aaugustin
- Resolution set to wontfix
- Status changed from new to closed