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)

  from django.conf.urls import url
  
  from . import views
  
  urlpatterns = [
-     url(r'^notifications$', views.create_notification),
+     url(r'^notifications$', views.create_notification, name='notifications'),
  ]
  
Add a view to the notifications name (for reversing)
## Code Before:
from django.conf.urls import url

from . import views

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

## Instruction:
Add a view to the notifications name (for reversing)
## Code After:
from django.conf.urls import url

from . import views

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