from django.conf.urls import url

from . import views

urlpatterns = [
    url(r'^notifications$', views.create_notification),
]

from django.conf.urls import url

from . import views

urlpatterns = [
    url(r'^notifications$', views.create_notification, name='notifications'),
]

Add a view to the notifications name (for reversing)
Add a view to the notifications name (for reversing)
