Setting Up the URLs on Registration Redux


#1

Hi!

I’m on the chapter about registration-redux and I’m not sure where this needs to be in urls.py:

08 PM

It looks like there should be something after the first include? In the line "from django.urls import path, include "

I assumed the second part goes in the urlpatterns:

path(‘collectible//edit’, views.edit_collectible, name=‘edit_collectible’),
path(‘accounts/’, include(‘registration.backends.simple.urls’)),
path(‘admin/’, admin.site.urls),
]

But I’m not really sure. Thanks!


#2

Hi there! Can you let me know where you got this version? Just curious since the formatting looks confusing and there should have been comments. :)

You can stick it at the bottom, right above admin: https://github.com/hellowebbooks/hellowebapp-code/blob/master/hellowebapp/urls.py

Hope that helps!