Answer the question
In order to leave comments, you need to log in
How to get named arguments from url in django in generic views?
#urls.py
urlpatterns = patterns(
"",
url(r'^test/(?P<advert_id>[0-9]+)/$', views.EditTestView.as_view(), name='test'),
)
#view.py
class EditTestView(FormView):
template_name = 'my/template.html'
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question