Ticket #14675: django-itself.diff

File django-itself.diff, 746 bytes (added by Pablo Fernandez, 14 years ago)

Explicitly included functions from urls.default in django itself.

  • django/conf/urls/i18n.py

    diff --git a/django/conf/urls/i18n.py b/django/conf/urls/i18n.py
    index 00e2d60..21138bc 100644
    a b  
    1 from django.conf.urls.defaults import *
     1from django.conf.urls.defaults import patterns
    22
    33urlpatterns = patterns('',
    44    (r'^setlang/$', 'django.views.i18n.set_language'),
  • django/conf/urls/shortcut.py

    diff --git a/django/conf/urls/shortcut.py b/django/conf/urls/shortcut.py
    index 135f3be..27d7b9e 100644
    a b  
    1 from django.conf.urls.defaults import *
     1from django.conf.urls.defaults import patterns
    22
    33urlpatterns = patterns('django.views',
    44    (r'^(?P<content_type_id>\d+)/(?P<object_id>.*)/$', 'defaults.shortcut'),
Back to Top