summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJannis Leidel <jannis@leidel.info>2011-03-24 17:52:32 +0000
committerJannis Leidel <jannis@leidel.info>2011-03-24 17:52:32 +0000
commit8ddf5ba66fb886a70b94435589c588e5020f757c (patch)
tree972c03de8d746c727bc252d7a3e4250b91acf5d2 /docs
parent3e7ce3c750f05948615474e3f1b6e98ceb35fb75 (diff)
Fixed #15681 -- Fixed a documentation error regarding the default value of the STATIC_URL setting. Thanks, Chris Drackett.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15913 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
-rw-r--r--docs/howto/static-files.txt14
1 files changed, 11 insertions, 3 deletions
diff --git a/docs/howto/static-files.txt b/docs/howto/static-files.txt
index 77e07141e3..53b6e1220b 100644
--- a/docs/howto/static-files.txt
+++ b/docs/howto/static-files.txt
@@ -48,16 +48,24 @@ Here's the basic usage in a nutshell:
See the documentation for the :setting:`STATICFILES_FINDERS` setting for
details on how ``staticfiles`` finds your files.
- 2. Make sure that ``django.contrib.staticfiles`` is in your
+ 2. Set the :setting:`STATIC_URL` setting to the URL you want to use
+ for pointing to your static files, e.g.::
+
+ STATIC_URL = '/static/'
+
+ In projects freshly created with the :djadmin:`startproject`
+ management command this will be preset to ``'/static/'``.
+
+ 3. Make sure that ``django.contrib.staticfiles`` is in your
:setting:`INSTALLED_APPS`.
For :ref:`local development<staticfiles-development>`, if you are using
:ref:`runserver<staticfiles-runserver>` or adding
:ref:`staticfiles_urlpatterns<staticfiles-development>` to your URLconf,
you're done! Your static files will automatically be served at the
- default :setting:`STATIC_URL` of ``/static/``.
+ :setting:`STATIC_URL` you specified in step 2.
- 3. You'll probably need to refer to these files in your templates. The
+ 4. You'll probably need to refer to these files in your templates. The
easiest method is to use the included context processor which will allow
template code like: