summaryrefslogtreecommitdiff
path: root/lib/grappelli/context_processors.py
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2012-09-22 22:27:04 -0400
committerluxagraf <sng@luxagraf.net>2012-09-22 22:27:04 -0400
commitefb623af0bcb47d510501c282e1326b11343a29c (patch)
tree3a35fb19f5eba3b219c65277a5fb712cbe9604ac /lib/grappelli/context_processors.py
parent0b481fd7931c2ae20ca21f89a87f2ba6a6c01e10 (diff)
site reorg
Diffstat (limited to 'lib/grappelli/context_processors.py')
-rw-r--r--lib/grappelli/context_processors.py22
1 files changed, 0 insertions, 22 deletions
diff --git a/lib/grappelli/context_processors.py b/lib/grappelli/context_processors.py
deleted file mode 100644
index 60a56bb..0000000
--- a/lib/grappelli/context_processors.py
+++ /dev/null
@@ -1,22 +0,0 @@
-# coding: utf-8
-
-from django.conf import settings
-
-def admin_template_path(request):
-
- # default templates for "grappelli standalone"
- template_path = "admin/_grappelli/"
-
- if getattr(settings, 'ADMIN_TOOLS_INDEX_DASHBOARD', False):
- apps = getattr(settings, 'INSTALLED_APPS')
- if apps.count("admin_tools.dashboard"):
- # seems to be a grappelli+admin_tools setup
- # so we use the other templates
- template_path = "admin/_grappelli_admin_tools/"
-
- return {
- "admin_template_index": "%sindex.html" % template_path,
- "admin_template_app_index": "%sapp_index.html" % template_path,
- "admin_template_base": "%sbase.html" % template_path,
- "admin_template_base_site": "%sbase_site.html" % template_path,
- }