Changeset 6426
- Timestamp:
- Dec 10, 2008, 12:24:56 PM (16 years ago)
- Location:
- trunk/exodus
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/exodus/admin.py
r6424 r6426 1 from django.contrib import admin1 from django.contrib.admin.sites import AdminSite 2 2 from django.contrib import databrowse 3 3 from django import forms … … 5 5 from exodus.forms import NodeForm 6 6 from exodus.contrib import ReadOnlyAdminFields 7 8 advanced_admin = AdminSite() 9 plain_admin = AdminSite() 7 10 8 11 class PublicAPInline(admin.TabularInline): … … 43 46 inlines = [ NodeInline, ] 44 47 45 admin.site.register(Antenna) 46 admin.site.register(Location, LocationAdmin) 47 admin.site.register(DnsServer) 48 admin.site.register(Network) 49 admin.site.register(Node, NodeAdmin) 50 admin.site.register(Interface) 51 admin.site.register(PublicAP) 52 admin.site.register(DhcpStatic) 48 advanced_admin.register(Antenna) 49 advanced_admin.register(Location, LocationAdmin) 50 advanced_admin.register(DnsServer) 51 advanced_admin.register(Network) 52 advanced_admin.register(Node, NodeAdmin) 53 advanced_admin.register(Interface) 54 advanced_admin.register(PublicAP) 55 advanced_admin.register(DhcpStatic) 56 57 plain_admin.register(Antenna) 58 plain_admin.register(Location, LocationAdmin) 59 plain_admin.register(DnsServer) 60 plain_admin.register(Network) 61 plain_admin.register(Node, NodeAdmin) 62 plain_admin.register(Interface) 63 plain_admin.register(PublicAP) 64 plain_admin.register(DhcpStatic) 53 65 54 66 databrowse.site.register(Antenna) -
trunk/exodus/urls.py
r6424 r6426 3 3 from django.conf.urls.defaults import * 4 4 from exodus.models import * 5 from os import path as os_path6 5 from django.conf import settings 7 6 from django.views.generic.simple import direct_to_template 8 7 from django.contrib import databrowse 9 from django.contrib import admin 10 admin.autodiscover() 8 from exodus.admin import advanced_admin, plain_admin 11 9 12 10 urlpatterns = patterns('', … … 30 28 (r'^databrowse/(.*)', databrowse.site.root), 31 29 32 (r'^admin/(.*)', admin.site.root), 30 (r'^admin/(.*)', advanced_admin.root), 31 (r'^plain-admin/(.*)', plain_admin.root), 33 32 ) 34 33
Note:
See TracChangeset
for help on using the changeset viewer.