Django

Code

Changeset 237

Show
Ignore:
Timestamp:
07/19/05 20:34:08 (3 years ago)
Author:
adrian
Message:

Added 'How can I customize the functionality of the admin interface?' to FAQ

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/docs/faq.txt

    r218 r237  
    268268allows access to users with those two fields both set to True. 
    269269 
     270How can I customize the functionality of the admin interface? 
     271------------------------------------------------------------- 
     272 
     273You've got several options. If you want to piggyback on top of an add/change 
     274form that Django automatically generates, you can attach arbitrary JavaScript 
     275modules to the page via the model's ``admin.js`` parameter. That parameter is 
     276a list of URLs, as strings, pointing to JavaScript modules that will be 
     277included within the admin form via a <script> tag. 
     278 
     279If you want more flexibility than simply tweaking the auto-generated forms, 
     280feel free to write custom views for the admin. The admin is powered by Django 
     281itself, and you can write custom views that hook into the authentication 
     282system, check permissions and do whatever else they need to do. 
     283 
     284If you want to customize the look-and-feel of the admin interface, read the 
     285next question. 
     286 
    270287The dynamically-generated admin site is ugly! How can I change it? 
    271288------------------------------------------------------------------