November 2015
Beginner to intermediate
840 pages
26h 30m
English
Startup List PageIn /organizer/urls.py, we begin by creating a URL pattern for a startup list page, as shown in Example 5.43. Our new URL pattern will direct requests for URL path startup/ to the function view startup_list().
Example 5.43: Project Code
organizer/urls.py in 69767312bf
3 from .views import ( 4 startup_list, tag_detail, tag_list) . ... 6 urlpatterns = [ 7 url(r'^startup/$', 8 startup_list, 9 name='organizer_startup_list'), . ... 16 ]
In /organizer/views.py, we may follow the example of our Tag object list view when building one for Startup objects. In Example 5.44, we load and render the template we built for this purpose and pass ...
Read now
Unlock full access