mirror of https://github.com/django/django.git
Corrected another part of the staticfiles docs which was missed in r15913. Refs #15681.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15914 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
8ddf5ba66f
commit
6a5548cf83
|
@ -78,24 +78,20 @@ Here's the basic usage in a nutshell:
|
||||||
|
|
||||||
When you're ready to move out of local development and deploy your project:
|
When you're ready to move out of local development and deploy your project:
|
||||||
|
|
||||||
1. Set the :setting:`STATIC_URL` setting to the public URL for your static
|
1. Set the :setting:`STATIC_ROOT` setting to point to where you'd like your
|
||||||
files (in some cases, the default value of ``/static/`` may still be
|
|
||||||
fine).
|
|
||||||
|
|
||||||
2. Set the :setting:`STATIC_ROOT` setting to point to where you'd like your
|
|
||||||
static files collected to when you use the :djadmin:`collectstatic`
|
static files collected to when you use the :djadmin:`collectstatic`
|
||||||
management command. For example::
|
management command. For example::
|
||||||
|
|
||||||
STATIC_ROOT = "/home/jacob/projects/mysite.com/sitestatic"
|
STATIC_ROOT = "/home/jacob/projects/mysite.com/sitestatic"
|
||||||
|
|
||||||
3. Run the :djadmin:`collectstatic` management command::
|
2. Run the :djadmin:`collectstatic` management command::
|
||||||
|
|
||||||
./manage.py collectstatic
|
./manage.py collectstatic
|
||||||
|
|
||||||
This'll churn through your static file storage and copy them into the
|
This'll churn through your static file storage and copy them into the
|
||||||
directory given by :setting:`STATIC_ROOT`.
|
directory given by :setting:`STATIC_ROOT`.
|
||||||
|
|
||||||
4. Deploy those files by configuring your webserver of choice to serve the
|
3. Deploy those files by configuring your webserver of choice to serve the
|
||||||
files in :setting:`STATIC_ROOT` at :setting:`STATIC_URL`.
|
files in :setting:`STATIC_ROOT` at :setting:`STATIC_URL`.
|
||||||
|
|
||||||
:ref:`staticfiles-production` covers some common deployment strategies
|
:ref:`staticfiles-production` covers some common deployment strategies
|
||||||
|
|
Loading…
Reference in New Issue