mirror of
https://github.com/DarrenOfficial/dpaste.git
synced 2024-12-23 23:23:06 +11:00
Removed Django admin. It was never useful anyway.
This commit is contained in:
parent
8089e829fc
commit
1e0b32b7d1
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.sites',
|
||||
'django.contrib.staticfiles',
|
||||
'django.contrib.admin',
|
||||
'mptt',
|
||||
'south',
|
||||
'gunicorn',
|
||||
|
|
|
@ -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')),
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue