from django.conf.urls import url

from views import login, logout, signup


urlpatterns = [
    url(r'^login', login),
    url(r'^logout', logout),
    url(r'^signup', signup),
]

from django.conf.urls import url

from views import login, logout, signup, confirm_email


urlpatterns = [
    url(r'^login', login),
    url(r'^logout', logout),
    url(r'^signup', signup),
    url(r'^confirm_email/(?P<key>\w+)', confirm_email),
]

Add an endpoint for email confirmation
Add an endpoint for email confirmation

  from django.conf.urls import url
  
- from views import login, logout, signup
+ from views import login, logout, signup, confirm_email
  
  
  urlpatterns = [
      url(r'^login', login),
      url(r'^logout', logout),
      url(r'^signup', signup),
+     url(r'^confirm_email/(?P<key>\w+)', confirm_email),
  ]
  
Add an endpoint for email confirmation
## Code Before:
from django.conf.urls import url

from views import login, logout, signup


urlpatterns = [
    url(r'^login', login),
    url(r'^logout', logout),
    url(r'^signup', signup),
]

## Instruction:
Add an endpoint for email confirmation
## Code After:
from django.conf.urls import url

from views import login, logout, signup, confirm_email


urlpatterns = [
    url(r'^login', login),
    url(r'^logout', logout),
    url(r'^signup', signup),
    url(r'^confirm_email/(?P<key>\w+)', confirm_email),
]
