Mercurial > public > sg101
diff core/urls.py @ 1028:5ba2508939f7
Django 1.8 changes; first batch.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Tue, 15 Dec 2015 21:01:07 -0600 |
parents | ee87ea74d46b |
children |
line wrap: on
line diff
--- a/core/urls.py Mon Dec 14 20:42:20 2015 -0600 +++ b/core/urls.py Tue Dec 15 21:01:07 2015 -0600 @@ -1,9 +1,12 @@ """ Urls for the core application. """ -from django.conf.urls import patterns, url +from django.conf.urls import url -urlpatterns = patterns('core.views', - url(r'^markdown_help/$', 'markdown_help', name='core-markdown_help'), - url(r'^ajax/users/$', 'ajax_users', name='core-ajax_users'), -) +import core.views + + +urlpatterns = [ + url(r'^markdown_help/$', core.views.markdown_help, name='core-markdown_help'), + url(r'^ajax/users/$', core.views.ajax_users, name='core-ajax_users'), +]