|
@@ -14,14 +14,15 @@ Including another URLconf
|
|
|
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
|
|
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
|
|
|
"""
|
|
"""
|
|
|
from django.contrib import admin
|
|
from django.contrib import admin
|
|
|
-from django.urls import path
|
|
|
|
|
|
|
+from django.urls import include, path
|
|
|
from django.conf.urls import url
|
|
from django.conf.urls import url
|
|
|
from movies import views as movie_views
|
|
from movies import views as movie_views
|
|
|
from accounts import views as account_views
|
|
from accounts import views as account_views
|
|
|
|
|
|
|
|
urlpatterns = [
|
|
urlpatterns = [
|
|
|
path('admin/', admin.site.urls),
|
|
path('admin/', admin.site.urls),
|
|
|
|
|
+ path('accounts/', include('django.contrib.auth.urls')),
|
|
|
url(r'^$', movie_views.home_page, name='home'),
|
|
url(r'^$', movie_views.home_page, name='home'),
|
|
|
path('libraries/<str:username>/', movie_views.view_list),
|
|
path('libraries/<str:username>/', movie_views.view_list),
|
|
|
- url(r'^register/?$', account_views.register, name='register'),
|
|
|
|
|
|
|
+ url(r'^accounts/register/$', account_views.register, name='register'),
|
|
|
]
|
|
]
|