1 回答
TA贡献1891条经验 获得超3个赞
您应该include('formfiller.urls')只使用一次。
urls.py(用于应用程序)
from django.urls import path
from . import views
urlpatterns = [
path('', views.home, name='home'),
path('register', views.register, name='signup'),
path('login', views.login, name='login'),
path('download', views.download, name='download'),
path('forgotpw', views.forgotpw, name='forgotpw'),
path('learnmore', views.learnmore, name='learnmore'),
path('dashboard', views.dashboard, name='dashboard'),
path('success', views.success, name='success'),
]
urls.py(用于主项目)
from django.contrib import admin
from django.urls import path, include
urlpatterns = [
path('admin/', admin.site.urls),
path('', include('formfiller.urls')),
]
添加回答
举报