urls.py
from django.urls import path
from . import views
urlpatterns = [
path('', views.index, name='index'),
]
after visiting https://username.pythonanywhere.com/polls its showing page not found.
plz helppp
[edit by admin: formatting]
urls.py
from django.urls import path
from . import views
urlpatterns = [
path('', views.index, name='index'),
]
after visiting https://username.pythonanywhere.com/polls its showing page not found.
plz helppp
[edit by admin: formatting]
You haven't defined a URL pattern with "/polls" as its path -- your pattern there is for https://username.pythonanywhere.com/
(unless you're including it from some other urls.py
file).