Guest User

Untitled

a guest
Aug 20th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. How do i pass parameters to a class based view in django?
  2. class myClassView():
  3. def get(self):
  4. # lots of code ...
  5. return response
  6.  
  7. (r^'call_myClassView/', myClassView.as_view())
  8.  
  9. (r'call_myClassView/(?P<id>w+)/$',myClassView.as_view())
Add Comment
Please, Sign In to add comment