diff --git a/avatar/urls.py b/avatar/urls.py index 7b5d2d8..fa64803 100644 --- a/avatar/urls.py +++ b/avatar/urls.py @@ -1,11 +1,10 @@ -try: - from django.conf.urls import url, patterns -except ImportError: - from django.conf.urls.defaults import url, patterns +from django.conf.urls import url -urlpatterns = patterns('avatar.views', - url('^add/$', 'add', name='avatar_add'), - url('^change/$', 'change', name='avatar_change'), - url('^delete/$', 'delete', name='avatar_delete'), - url('^render_primary/(?P[\+\w]+)/(?P[\d]+)/$', 'render_primary', name='avatar_render_primary'), -) +from . import views + +urlpatterns = [ # 'avatar.views', + url('^add/$', views.add, name='avatar_add'), + url('^change/$', views.change, name='avatar_change'), + url('^delete/$', views.delete, name='avatar_delete'), + url('^render_primary/(?P[\+\w]+)/(?P[\d]+)/$', views.render_primary, name='avatar_render_primary'), +] diff --git a/setup.py b/setup.py index cd5cd8d..8f48522 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,6 @@ from setuptools import setup, find_packages -version = '2.1.4' +version = '2.1.7' LONG_DESCRIPTION = """ Using geonode-avatar