Permalink
Browse files

Fixed #14793 -- staticfiles documentation example overwrites urlpatte…

…rns. Thanks gg!

git-svn-id: http://code.djangoproject.com/svn/django/trunk@14729 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 6078436 commit d9eb31a98fc1ef3a0772fe3f6ff30b839710edd2 @HonzaKral HonzaKral committed Nov 27, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 docs/ref/contrib/staticfiles.txt
@@ -282,7 +282,7 @@ primary URL configuration::
from django.conf import settings
if settings.DEBUG:
- urlpatterns = patterns('django.contrib.staticfiles.views',
+ urlpatterns += patterns('django.contrib.staticfiles.views',
url(r'^static/(?P<path>.*)$', 'serve'),
)

0 comments on commit d9eb31a

Please sign in to comment.