1👍
You can pass extra arguments to your view functions like this:
url(r'^$', 'homepage', , {'signin': True}, name='homepage'),
url(r'^$', 'homepage', , {'signin': False}, name='signin'),
0👍
There is a third parameter in a URL pattern, which is a dict of arguments to pass straight to the view. So:
url(r'^signin/$',
'homepage',
{'signin': True},
name='homepage'),
- [Answer]-Post json to django but get 500 error
- [Answer]-Is it possible to extend Django admin with views not related to the database tables content?
- [Answer]-Django rest framework view does'nt show related table data
Source:stackexchange.com