Changeset 6332
- Timestamp:
- Oct 3, 2008, 8:09:18 PM (16 years ago)
- Location:
- trunk/exodus
- Files:
-
- 3 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/exodus/admin.py
r6256 r6332 1 1 from django.contrib import admin 2 from django.contrib import databrowse 2 3 from exodus.models import * 3 4 … … 11 12 admin.site.register(PublicAP) 12 13 admin.site.register(DhcpStatic) 14 15 databrowse.site.register(Antenna) 16 databrowse.site.register(Location) 17 databrowse.site.register(DnsServer) 18 databrowse.site.register(Network) 19 databrowse.site.register(Node) 20 databrowse.site.register(Interface) 21 databrowse.site.register(PublicAP) 22 databrowse.site.register(DhcpStatic) -
trunk/exodus/urls.py
r6325 r6332 6 6 from django.conf import settings 7 7 from django.views.generic.simple import direct_to_template 8 from django.contrib import databrowse 9 from django.contrib import admin 10 admin.autodiscover() 8 11 9 12 # 10 13 # experimental databrowse code 11 from django.contrib import databrowse12 databrowse.site.register(Antenna)13 databrowse.site.register(Location)14 databrowse.site.register(DnsServer)15 databrowse.site.register(Network)16 databrowse.site.register(Node)17 databrowse.site.register(Interface)18 databrowse.site.register(PublicAP)19 databrowse.site.register(DhcpStatic)20 14 21 15 urlpatterns = patterns('', … … 34 28 (r'^dhcp/(?P<mode>(add|edit|delete))/(?P<node>.+)/(?P<interface>.+)/(?P<publicAP>.+)/$', 'exodus.views.genericPublicAP'), 35 29 36 # 3th party/embedded datab sse thingy30 # 3th party/embedded database browser 37 31 (r'^databrowse/(.*)', databrowse.site.root), 32 33 (r'^admin/(.*)', admin.site.root), 38 34 ) 39 35 … … 41 37 urlpatterns += patterns('', 42 38 url(r'^static/(?P<path>.*)$$', 'django.views.static.serve', {'document_root': 43 settings.DJANGOROOT + '/exodus/static'}, "static"),39 'exodus/static'}, "static"), 44 40 )
Note:
See TracChangeset
for help on using the changeset viewer.