summaryrefslogtreecommitdiff
path: root/docs/howto/static-files
diff options
context:
space:
mode:
Diffstat (limited to 'docs/howto/static-files')
-rw-r--r--docs/howto/static-files/index.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/howto/static-files/index.txt b/docs/howto/static-files/index.txt
index f94e2601e4..39e5cf1b94 100644
--- a/docs/howto/static-files/index.txt
+++ b/docs/howto/static-files/index.txt
@@ -94,9 +94,9 @@ this by adding the following snippet to your urls.py::
from django.conf import settings
from django.conf.urls.static import static
- urlpatterns = patterns('',
+ urlpatterns = [
# ... the rest of your URLconf goes here ...
- ) + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
+ ] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
.. note::
@@ -124,9 +124,9 @@ this by adding the following snippet to your urls.py::
from django.conf import settings
from django.conf.urls.static import static
- urlpatterns = patterns('',
+ urlpatterns = [
# ... the rest of your URLconf goes here ...
- ) + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
+ ] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
.. note::