Ticket #14675: contrib-apps.diff

File contrib-apps.diff, 4.6 KB (added by Pablo Fernandez, 14 years ago)

Explicitly included functions from urls.default in contrib apps.

  • django/contrib/admindocs/urls.py

    diff --git a/django/contrib/admindocs/urls.py b/django/contrib/admindocs/urls.py
    index 57edb56..2e9600f 100644
    a b  
    1 from django.conf.urls.defaults import *
     1from django.conf.urls.defaults import patterns, url
    22from django.contrib.admindocs import views
    33
    44urlpatterns = patterns('',
  • django/contrib/auth/urls.py

    diff --git a/django/contrib/auth/urls.py b/django/contrib/auth/urls.py
    index 4f8a102..c7b2d56 100644
    a b  
    22# provided as a convenience to those who want to deploy these URLs elsewhere.
    33# This file is also used to provide a reliable view deployment for test purposes.
    44
    5 from django.conf.urls.defaults import *
     5from django.conf.urls.defaults import patterns
    66
    77urlpatterns = patterns('',
    88    (r'^login/$', 'django.contrib.auth.views.login'),
  • django/contrib/comments/urls.py

    diff --git a/django/contrib/comments/urls.py b/django/contrib/comments/urls.py
    index d903779..d3c06e5 100644
    a b  
    1 from django.conf.urls.defaults import *
     1from django.conf.urls.defaults import patterns, url
    22
    33urlpatterns = patterns('django.contrib.comments.views',
    44    url(r'^post/$',          'comments.post_comment',       name='comments-post-comment'),
  • django/contrib/databrowse/urls.py

    diff --git a/django/contrib/databrowse/urls.py b/django/contrib/databrowse/urls.py
    index 9b85d14..2559686 100644
    a b  
    1 from django.conf.urls.defaults import *
     1from django.conf.urls.defaults import patterns
    22from django.contrib.databrowse import views
    33
    44# Note: The views in this URLconf all require a 'models' argument,
  • django/contrib/flatpages/tests/urls.py

    diff --git a/django/contrib/flatpages/tests/urls.py b/django/contrib/flatpages/tests/urls.py
    index 3cffd09..20cbc37 100644
    a b  
    1 from django.conf.urls.defaults import *
     1from django.conf.urls.defaults import patterns, include
    22
    33# special urls for flatpage test cases
    44urlpatterns = patterns('',
  • django/contrib/flatpages/urls.py

    diff --git a/django/contrib/flatpages/urls.py b/django/contrib/flatpages/urls.py
    index 4928930..f6276df 100644
    a b  
    1 from django.conf.urls.defaults import *
     1from django.conf.urls.defaults import patterns
    22
    33urlpatterns = patterns('django.contrib.flatpages.views',
    44    (r'^(?P<url>.*)$', 'flatpage'),
  • django/contrib/formtools/tests/urls.py

    diff --git a/django/contrib/formtools/tests/urls.py b/django/contrib/formtools/tests/urls.py
    index b89b6e6..c3351ed 100644
    a b  
    22This is a URLconf to be loaded by tests.py. Add any URLs needed for tests only.
    33"""
    44
    5 from django.conf.urls.defaults import *
     5from django.conf.urls.defaults import patterns
    66from django.contrib.formtools.tests import *
    77
    88urlpatterns = patterns('',
  • django/contrib/gis/tests/geoapp/urls.py

    diff --git a/django/contrib/gis/tests/geoapp/urls.py b/django/contrib/gis/tests/geoapp/urls.py
    index edaf280..e0917e6 100644
    a b  
    1 from django.conf.urls.defaults import *
     1from django.conf.urls.defaults import patterns
    22from feeds import feed_dict
    33
    44urlpatterns = patterns('',
  • django/contrib/gis/tests/urls.py

    diff --git a/django/contrib/gis/tests/urls.py b/django/contrib/gis/tests/urls.py
    index 95e36c2..ed49873 100644
    a b  
    1 from django.conf.urls.defaults import *
     1from django.conf.urls.defaults import patterns, include
    22
    33urlpatterns = patterns('',
    44                       (r'^geoapp/', include('django.contrib.gis.tests.geoapp.urls')),
  • django/contrib/messages/tests/urls.py

    diff --git a/django/contrib/messages/tests/urls.py b/django/contrib/messages/tests/urls.py
    index 6252adc..51f8816 100644
    a b  
    1 from django.conf.urls.defaults import *
     1from django.conf.urls.defaults import patterns
    22from django.contrib import messages
    33from django.core.urlresolvers import reverse
    44from django.http import HttpResponseRedirect, HttpResponse
  • django/contrib/sitemaps/tests/urls.py

    diff --git a/django/contrib/sitemaps/tests/urls.py b/django/contrib/sitemaps/tests/urls.py
    index 6cdba36..6deb8cd 100644
    a b  
    11from datetime import datetime
    2 from django.conf.urls.defaults import *
     2from django.conf.urls.defaults import patterns
    33from django.contrib.sitemaps import Sitemap, GenericSitemap, FlatPageSitemap
    44from django.contrib.auth.models import User
    55
Back to Top