In this second part we are going to create the URLs and the views for our ToDo application. Let’s get started!
Step 1 – Creating URLs to the
home app and
todoapp folder (which is the project) we have a file named
urls.py. I modify it to look like shown below:
from django.conf.urls import url, include from django.contrib import admin import home.views as home_views from todo import urls as todo_urls urlpatterns = [ url(r'^admin/', admin.site.urls), url(r'^$', home_views.get_index, name="home"), url(r'^todo/', include(todo_urls)), ]