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 1671a4f..5b02127 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')), )