Mercurial > public > sg101
comparison oembed/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 |
comparison
equal
deleted
inserted
replaced
1027:cd4db27c90e3 | 1028:5ba2508939f7 |
---|---|
1 """ | 1 """ |
2 URLs for the oembed application. | 2 URLs for the oembed application. |
3 """ | 3 """ |
4 from django.conf.urls import patterns, url | 4 from django.conf.urls import url |
5 | 5 |
6 urlpatterns = patterns('oembed.views', | 6 import oembed.views |
7 url(r'^fetch/$', 'fetch_media', name='oembed-fetch_media'), | 7 |
8 url(r'^fetch_saved/$', 'fetch_saved_media', name='oembed-fetch_saved_media'), | 8 |
9 ) | 9 urlpatterns = [ |
10 url(r'^fetch/$', oembed.views.fetch_media, name='oembed-fetch_media'), | |
11 url(r'^fetch_saved/$', oembed.views.fetch_saved_media, name='oembed-fetch_saved_media'), | |
12 ] |