Code

Changes between Version 24 and Version 25 of NewformsHOWTO


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

--

Legend:

Unmodified
Added
Removed
Modified
  • NewformsHOWTO

    v24 v25  
    583583The messy way is as follows. 
    584584Create a file called extras.py in your project's root directory (where urls.py lives). 
    585 In it create a copy of the index method from django.contrib.admin.sites (from the class AdminSite). 
     585In it create a copy of the index method from django.contrib.admin.sites (from the class ``AdminSite``). 
    586586Modify the method to add in your extra context variables. 
    587587 
     
    602602this isn't that pretty but it works. 
    603603 
    604 The 'proper' way will be to create your own AdminSite instance and register your models to it. The problem with this method is that you will also need to register all of the models from the auth app if you want to manage your users. 
     604The 'proper' way will be to create your own ``AdminSite`` instance and register your models to it. The problem with this method is that you will also need to register all of the models from the auth app if you want to manage your users. 
    605605 
    606606{{{