Hi! After running into problem with my first try I completely deleted the installation and started blank. But, once again, I am running into problems: "Page not found" for the /admin and /polls subpages. My mysite/urls.py
from django.contrib import admin from django.urls import include, path
urlpatterns = [ path('polls/', include('polls.urls')),
path('admin/', admin.site.urls), ]
polls/urls.py
from django.urls import path
from . import viewsurlpatterns = [ path('', views.index, name='index'), ]
and btw, here I get an error for the "from . import":
Traceback (most recent call last): File "/home/magus/django_projects/mysite/polls/urls.py", line 3, in <module> from . import views ImportError: attempted relative import with no known parent package
I went back and through all steps multiple times but I cannot figure out what I did wrong!
Please help me. Thanks.