summaryrefslogtreecommitdiff
path: root/docs/faq.txt
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2005-07-20 01:34:08 +0000
committerAdrian Holovaty <adrian@holovaty.com>2005-07-20 01:34:08 +0000
commit039d121227313306a5cbd5805fba63e1e62996e1 (patch)
tree6982c3dd2ac2f06bdf50340ac71dcdc2432e5353 /docs/faq.txt
parenta88119369329c63cc53d9a309db19a867b81f91f (diff)
Added 'How can I customize the functionality of the admin interface?' to FAQ
git-svn-id: http://code.djangoproject.com/svn/django/trunk@237 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/faq.txt')
-rw-r--r--docs/faq.txt17
1 files changed, 17 insertions, 0 deletions
diff --git a/docs/faq.txt b/docs/faq.txt
index f208ab771b..81d5497b5e 100644
--- a/docs/faq.txt
+++ b/docs/faq.txt
@@ -267,6 +267,23 @@ If you're sure your username and password are correct, make sure your user
account has ``is_active`` and ``is_staff`` set to True. The admin site only
allows access to users with those two fields both set to True.
+How can I customize the functionality of the admin interface?
+-------------------------------------------------------------
+
+You've got several options. If you want to piggyback on top of an add/change
+form that Django automatically generates, you can attach arbitrary JavaScript
+modules to the page via the model's ``admin.js`` parameter. That parameter is
+a list of URLs, as strings, pointing to JavaScript modules that will be
+included within the admin form via a <script> tag.
+
+If you want more flexibility than simply tweaking the auto-generated forms,
+feel free to write custom views for the admin. The admin is powered by Django
+itself, and you can write custom views that hook into the authentication
+system, check permissions and do whatever else they need to do.
+
+If you want to customize the look-and-feel of the admin interface, read the
+next question.
+
The dynamically-generated admin site is ugly! How can I change it?
------------------------------------------------------------------