Opened 10 years ago

Last modified 8 years ago

#14829 closed

Documentation for url() with class-based generic views — at Version 1

Reported by: Andrew Willey <andrew@…> Owned by: nobody
Component: Documentation Version: 1.3-alpha
Severity: Normal Keywords: url
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by Alex Gaynor)

It would be nice to update the url() documentation here

to reflect that using class-based generic views means you pass the class object instead of view='some_view' and that class-based views must be imported as opposed to included in the patterns arguments.


from myapp.views import *

urlpatterns += patterns('', 
    url(GenericViewClass.as_view(), name='the_url_name'),

Change History (1)

comment:1 Changed 10 years ago by Alex Gaynor

Description: modified (diff)

Fixed up the formatting.

Note: See TracTickets for help on using tickets.
Back to Top