Ticket #16788: patch_ticket_16788.diff

File patch_ticket_16788.diff, 4.0 KB (added by wim@…, 13 years ago)

patch which removes import * magic from urls

  • contrib/formtools/tests/urls.py

     
    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, url
    66from django.contrib.formtools.tests import TestFormPreview, TestWizardClass
    77
    88from forms import (ContactWizard, Page1, Page2, Page3, TestForm,
  • contrib/comments/urls.py

     
    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'),
  • contrib/sitemaps/tests/urls.py

     
    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
  • contrib/databrowse/urls.py

     
    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,
  • contrib/auth/urls.py

     
    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, url
    66
    77urlpatterns = patterns('',
    88    (r'^login/$', 'django.contrib.auth.views.login'),
  • contrib/admindocs/urls.py

     
    1 from django.conf.urls.defaults import *
     1from django.conf.urls.defaults import patterns, url
    22from django.contrib.admindocs import views
    33
    44urlpatterns = patterns('',
  • contrib/flatpages/tests/urls.py

     
    1 from django.conf.urls.defaults import *
     1from django.conf.urls.defaults import include, patterns
    22
    33# special urls for flatpage test cases
    44urlpatterns = patterns('',
  • contrib/flatpages/urls.py

     
    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'),
  • contrib/messages/tests/urls.py

     
    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
Back to Top