Ticket #16832: added_staticfiles_to_default_urls.diff

File added_staticfiles_to_default_urls.diff, 870 bytes (added by wim@…, 13 years ago)

patch for ticket 16382: adding (commented) staticfiles lines to urls.py

  • django/conf/project_template/urls.py

    diff --git a/django/conf/project_template/urls.py b/django/conf/project_template/urls.py
    index eb471d5..4951e19 100644
    a b  
    11from django.conf.urls import patterns, include, url
    22
     3# Uncomment the next line to serve static files during development:
     4# from django.contrib.staticfiles.urls import staticfiles_urlpatterns
     5
    36# Uncomment the next two lines to enable the admin:
    47# from django.contrib import admin
    58# admin.autodiscover()
    urlpatterns = patterns('',  
    1518    # Uncomment the next line to enable the admin:
    1619    # url(r'^admin/', include(admin.site.urls)),
    1720)
     21
     22# Uncomment the next line to serve static files during development:
     23# urlpatterns += staticfiles_urlpatterns()
     24# This will only work if DEBUG is True and STATIC_URL is a relative url.
Back to Top