From 1e0b32b7d1117e827a0812e75f72b1b0adff78fd Mon Sep 17 00:00:00 2001 From: Martin Mahner Date: Thu, 21 Mar 2013 19:40:48 +0100 Subject: [PATCH] Removed Django admin. It was never useful anyway. --- dpaste/admin.py | 10 ---------- dpaste/settings.py | 1 - dpaste/urls/__init__.py | 4 ---- 3 files changed, 15 deletions(-) delete mode 100644 dpaste/admin.py diff --git a/dpaste/admin.py b/dpaste/admin.py deleted file mode 100644 index 8057fc0..0000000 --- a/dpaste/admin.py +++ /dev/null @@ -1,10 +0,0 @@ -from django.contrib import admin -from dpaste.models import Snippet - -class SnippetAdmin(admin.ModelAdmin): - list_display = ('published', 'expires', 'lexer', 'get_absolute_url') - date_hierarchy = 'published' - list_filter = ('published',) - raw_id_fields = ('parent',) - -admin.site.register(Snippet, SnippetAdmin) diff --git a/dpaste/settings.py b/dpaste/settings.py index 305b347..4a856ac 100644 --- a/dpaste/settings.py +++ b/dpaste/settings.py @@ -107,7 +107,6 @@ INSTALLED_APPS = ( 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.staticfiles', - 'django.contrib.admin', 'mptt', 'south', 'gunicorn', diff --git a/dpaste/urls/__init__.py b/dpaste/urls/__init__.py index 25b8fd5..c710b0f 100644 --- a/dpaste/urls/__init__.py +++ b/dpaste/urls/__init__.py @@ -1,13 +1,9 @@ from django.conf.urls.defaults import url, patterns, include -from django.contrib import admin from django.views.generic import TemplateView -admin.autodiscover() - urlpatterns = patterns( '', url(r'^about/$', TemplateView.as_view(template_name='dpaste/about.html'), name='about'), - url(r'^admin/', include(admin.site.urls)), url(r'^', include('dpaste.urls.dpaste_api')), url(r'^', include('dpaste.urls.dpaste')), )