-
Notifications
You must be signed in to change notification settings - Fork 200
Open
Description
The current version of Django has several changes from code outlined in this repo, resulting in the old code throwing errors.
Current Code:
from django.contrib import admin
from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^admin/', admin.site.urls),
url(r'^$', views.homepage) # Syntax error: Invalid syntax
]Corrected:
from django.contrib import admin
from django.urls import path
from . import views
urlpatterns = [
path('admin/', admin.site.urls),
path('about/', views.about),
path('', views.homepage)
]Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels