Opened 6 years ago
Closed 6 years ago
#31346 closed Bug (worksforme)
Without adding this, got an error.
| Reported by: | Hadisur Rahman | Owned by: | nobody |
|---|---|---|---|
| Component: | Documentation | Version: | 3.0 |
| Severity: | Normal | Keywords: | |
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
== Given that :
from django.urls import path
from . import views
app_name = 'polls'
urlpatterns = [
path(, views.index, name='index'),
path('<int:question_id>/', views.detail, name='detail'),
path('<int:question_id>/results/', views.results, name='results'),
path('<int:question_id>/vote/', views.vote, name='vote'),
]
== We need to edit and add like this (see below):
from mysite import urls
urls.app_name='polls'
Change History (1)
comment:1 by , 6 years ago
| Component: | Error reporting → Documentation |
|---|---|
| Owner: | set to |
| Resolution: | → worksforme |
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
The current form works for me. Try to use one of support channels.