Commit b8c20439 authored by Dan McGee's avatar Dan McGee
Browse files

Change Django urls.py import



Until Django 1.3, the functions include(), patterns() and url() plus
handler404, handler500 were located in a django.conf.urls.defaults
module.

In Django 1.4, they live in django.conf.urls.

Signed-off-by: default avatarDan McGee <dan@archlinux.org>
parent 0545e3e0
from django.conf.urls.defaults import patterns
from django.conf.urls import patterns
urlpatterns = patterns('devel.views',
(r'^admin_log/$','admin_log'),
......
from django.conf.urls.defaults import patterns
from django.conf.urls import patterns
urlpatterns = patterns('mirrors.views',
(r'^$', 'mirrors', {}, 'mirror-list'),
......
from django.conf.urls.defaults import patterns
from django.conf.urls import patterns
urlpatterns = patterns('mirrors.views',
(r'^$', 'generate_mirrorlist', {}, 'mirrorlist'),
......
from django.conf.urls.defaults import patterns
from django.conf.urls import patterns
urlpatterns = patterns('news.views',
(r'^$', 'news_list', {}, 'news-list'),
......
from django.conf.urls.defaults import include, patterns
from django.conf.urls import include, patterns
package_patterns = patterns('packages.views',
(r'^$', 'details'),
......
from django.conf.urls.defaults import patterns
from django.conf.urls import patterns
urlpatterns = patterns('packages.views',
(r'^$', 'groups', {}, 'groups-list'),
......
from django.conf.urls.defaults import include, patterns
from django.conf.urls import include, patterns
feedback_patterns = patterns('releng.views',
(r'^$', 'test_results_overview', {}, 'releng-test-overview'),
......
from django.conf.urls.defaults import patterns
from django.conf.urls import patterns
from django.contrib.auth.decorators import permission_required
from .views import DeleteTodolist
......
import os.path
# Stupid Django. Don't remove these "unused" handler imports
from django.conf.urls.defaults import handler500, handler404, include, patterns
from django.conf.urls import handler500, handler404, include, patterns
from django.conf import settings
from django.contrib import admin
......
from django.conf.urls.defaults import patterns
from django.conf.urls import patterns
urlpatterns = patterns('visualize.views',
(r'^$', 'index', {}, 'visualize-index'),
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment