Removed Django admin. It was never useful anyway.

This commit is contained in:
Martin Mahner 2013-03-21 19:40:48 +01:00
parent ecf7653bf9
commit 22bce7a008
3 changed files with 0 additions and 15 deletions

View file

@ -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)

View file

@ -107,7 +107,6 @@ INSTALLED_APPS = (
'django.contrib.sessions', 'django.contrib.sessions',
'django.contrib.sites', 'django.contrib.sites',
'django.contrib.staticfiles', 'django.contrib.staticfiles',
'django.contrib.admin',
'mptt', 'mptt',
'south', 'south',
'gunicorn', 'gunicorn',

View file

@ -1,13 +1,9 @@
from django.conf.urls.defaults import url, patterns, include from django.conf.urls.defaults import url, patterns, include
from django.contrib import admin
from django.views.generic import TemplateView from django.views.generic import TemplateView
admin.autodiscover()
urlpatterns = patterns( urlpatterns = patterns(
'', '',
url(r'^about/$', TemplateView.as_view(template_name='dpaste/about.html'), name='about'), 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_api')),
url(r'^', include('dpaste.urls.dpaste')), url(r'^', include('dpaste.urls.dpaste')),
) )