Code

Changes between Version 22 and Version 23 of NewformsHOWTO


Ignore:
Timestamp:
03/04/08 08:05:35 (6 years ago)
Author:
Lllama <f.ingram.lists@…>
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • NewformsHOWTO

    v22 v23  
    579579You can't. At least not in the same way as above. The index page has a fairly 
    580580simple view, so you should just recreate it and add in the extra variables you need. 
    581 Here's an example 
    582  
    583  
     581You'll also need to make sure that you override the approriate URL in urls.py 
     582Here's an example: 
    584583{{{ 
    585584#!python 
     
    598597new_admin_index = staff_member_required(never_cache(new_admin_index)) 
    599598}}} 
     599 
     600Here's the overriding in urls.py 
     601{{{ 
     602#!python 
     603from your_project.extras import new_admin_index 
     604... 
     605urlpatterns = patterns('', 
     606    # Override index page to add in fortune output 
     607    (SITE_BASE+r'/$', new_admin_index), 
     608... 
     609}}}