Skip to content

Commit

Permalink
update urls to 2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
CaseyFaist committed Oct 18, 2018
1 parent cdc4e0a commit f70b997
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions gettingstarted/urls.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
from django.conf.urls import include, url
from django.urls import path
from django.urls import path, include

from django.contrib import admin

admin.autodiscover()

import hello.views

# Examples:
# url(r'^$', 'gettingstarted.views.home', name='home'),
# url(r'^blog/', include('blog.urls')),
# To add a new path, first import the app:
# import blog
#
# Then add the new path:
# path('blog/', blog.urls, name="blog")
#
# Learn more here: https://docs.djangoproject.com/en/2.1/topics/http/urls/

urlpatterns = [
url(r"^$", hello.views.index, name="index"),
url(r"^db", hello.views.db, name="db"),
path("", hello.views.index, name="index"),
path("db/", hello.views.db, name="db"),
path("admin/", admin.site.urls),
]

0 comments on commit f70b997

Please sign in to comment.