Commit 02251a2a authored by Okhin's avatar Okhin
Browse files

Basic declarations for the ManagerSite

parent d2b47ffc
from django.contrib import admin
from djago.contrib.admin import AdminSite
from bt import models
class CommentInline(admin.TabularInline):
......@@ -34,3 +36,6 @@ class OperatorAdmin(admin.ModelAdmin):
search_fields = ('name', )
pass, OperatorAdmin)
class ManagerSite(AdminSite):
site_header = 'Manager Site'
......@@ -2,10 +2,11 @@ from django.conf.urls import patterns, include, url
from django.views.generic import TemplateView, RedirectView
from django.conf import settings
from django.contrib import admin
from bt import views as bt
from bt.feeds import RssSiteNewsFeed, AtomSiteNewsFeed
from bt.api import APIResource, OperatorResource
from bt.admin import ManagerSite
api_resource = APIResource()
operator_api_resource = OperatorResource()
......@@ -84,6 +85,9 @@ urlpatterns = patterns('',
# Language switch
url(r'^i18n/', include('django.conf.urls.i18n')),
# Manager admin site
url('r^manager/', ManagerSite.urls),
if settings.DEV_SERVER == True:
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment