0
I need to make two pages
login and Challenge, where urls can be domain/login
and domain/challenge
or domain/login/challenge
Only the way I’m doing is giving 404
Files from the APP: py views.
from django.shortcuts import render
def login(request):
return render(request, 'login.html', {})
def challenge(request):
return render(request, 'challenge.html', {})
py.
from django.urls import path
from . import views
urlpatterns = [
path('login/', views.login, name='login'),
path('challenge/', views.challenge, name='challenge'),
]
Project files:
py.
from django.contrib import admin
from django.urls import path, include
urlpatterns = [
path('admin/', admin.site.urls),
path('login/', include('login.urls')),
]
What am I doing wrong?
Remembering that I’m a beginner in python, and I’m studying.
Resolvei buddy vlw.
– user148010