From 19fc742050051cb6ade9e9a94836f734239fc863 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felipe=20Mart=C3=ADn?= Date: Mon, 20 May 2013 14:00:23 +0200 Subject: [PATCH] Added django-grappelli --- config/requirements.pip | 1 + minecraftcodex/herobrine/settings.py | 5 +++++ minecraftcodex/herobrine/urls.py | 1 + 3 files changed, 7 insertions(+) diff --git a/config/requirements.pip b/config/requirements.pip index 2e5a716..5caf33d 100644 --- a/config/requirements.pip +++ b/config/requirements.pip @@ -1,2 +1,3 @@ Django==1.5.1 jingo==0.6.1 +django-grappelli==2.4.4 diff --git a/minecraftcodex/herobrine/settings.py b/minecraftcodex/herobrine/settings.py index b63ca50..57511d6 100644 --- a/minecraftcodex/herobrine/settings.py +++ b/minecraftcodex/herobrine/settings.py @@ -122,9 +122,14 @@ INSTALLED_APPS = ( 'django.contrib.sites', 'django.contrib.messages', 'django.contrib.staticfiles', + 'grappelli', 'django.contrib.admin', ) +# Admin +GRAPPELLI_ADMIN_TITLE = 'Minecraft Codex' +AUTOCOMPLETE_LIMIT = 10 + # A sample logging configuration. The only tangible logging # performed by this configuration is to send an email to # the site admins on every HTTP 500 error when DEBUG=False. diff --git a/minecraftcodex/herobrine/urls.py b/minecraftcodex/herobrine/urls.py index 5d65b6f..5fc3d9b 100644 --- a/minecraftcodex/herobrine/urls.py +++ b/minecraftcodex/herobrine/urls.py @@ -13,5 +13,6 @@ urlpatterns = patterns('', # url(r'^admin/doc/', include('django.contrib.admindocs.urls')), # Uncomment the next line to enable the admin: + (r'^grappelli/', include('grappelli.urls')), url(r'^management/', include(admin.site.urls)), )