...
The next action you should do is creating another URLconf for adding following two lines to url.py on your project like below.
| Code Block |
|---|
from django.conf.urls import include |
| Code Block |
|---|
path('polls/', include('polls.urls')), |
So, the final code should be like below
| Code Block |
|---|
from django.contrib import admin from django.urls import include, path from django.conf.urls import include urlpatterns = [ path('pollsadmin/', include('pollsadmin.site.urls')), path('adminpolls/', admin.site.urls)include('polls.urls')), ] |
Now index view is integrated with URLconf. Time for you to check your server by following command like
...
If you face an error like below, you should check if your python is latest or notis properly installed and django is running on virtual environment like I mentioned at "1. How do I setup Django development environment on Mac?" or not.
