package updates and resulting compat stuff

changes to urls.py in the django views, trivial __init__ change for the
irc library stuff

bss/dr.botzo#16
This commit is contained in:
2017-02-06 22:58:51 -06:00
parent 5184a30a52
commit 8f8af4e6b4
8 changed files with 53 additions and 58 deletions

View File

@@ -1,6 +1,6 @@
"""URL patterns for the karma views."""
from django.conf.urls import patterns, url, include
from django.conf.urls import url, include
from rest_framework.routers import DefaultRouter
from karma.views import key_detail, index, KarmaKeyViewSet
@@ -8,9 +8,9 @@ from karma.views import key_detail, index, KarmaKeyViewSet
router = DefaultRouter()
router.register(r'keys', KarmaKeyViewSet)
urlpatterns = patterns('races.views',
urlpatterns = [
url(r'^$', index, name='karma_index'),
url(r'^key/(?P<karma_key>.+)/', key_detail, name='karma_key_detail'),
url(r'^api/', include(router.urls)),
)
]