mirror of
https://github.com/DarrenOfficial/dpaste.git
synced 2024-11-15 16:12:51 +11:00
Removed Django admin. It was never useful anyway.
This commit is contained in:
parent
ecf7653bf9
commit
22bce7a008
3 changed files with 0 additions and 15 deletions
|
@ -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)
|
|
|
@ -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',
|
||||||
|
|
|
@ -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')),
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue