Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Mattia Rizzolo
nm.debian.org
Commits
1758473f
Commit
1758473f
authored
Apr 21, 2020
by
Enrico Zini
Browse files
Use path in wizard urls. refs:
#9
parent
8f048572
Changes
1
Hide whitespace changes
Inline
Side-by-side
wizard/urls.py
View file @
1758473f
from
django.
conf.
urls
import
url
from
django.urls
import
path
from
backend.mixins
import
VisitorTemplateView
from
.
import
views
urlpatterns
=
[
url
(
r
'^$'
,
VisitorTemplateView
.
as_view
(
template_name
=
"wizard/home.html"
),
name
=
"wizard_home"
),
url
(
r
'^
advocate
$'
,
views
.
Advocate
.
as_view
(),
name
=
"wizard_advocate"
),
url
(
r
'^
process/
(?P
<applying_for>
[^/]+)$'
,
views
.
NewProcess
.
as_view
(),
name
=
"wizard_newprocess"
),
path
(
""
,
VisitorTemplateView
.
as_view
(
template_name
=
"wizard/home.html"
),
name
=
"wizard_home"
),
path
(
"
advocate
/"
,
views
.
Advocate
.
as_view
(),
name
=
"wizard_advocate"
),
path
(
"
process/<applying_for>
/"
,
views
.
NewProcess
.
as_view
(),
name
=
"wizard_newprocess"
),
]
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment