Changeset 6332


Ignore:
Timestamp:
Oct 3, 2008, 8:09:18 PM (16 years ago)
Author:
roland
Message:

Fixed missing file problem

Location:
trunk/exodus
Files:
3 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/exodus/admin.py

    r6256 r6332  
    11from django.contrib import admin
     2from django.contrib import databrowse
    23from exodus.models import *
    34
     
    1112admin.site.register(PublicAP)
    1213admin.site.register(DhcpStatic)
     14
     15databrowse.site.register(Antenna)
     16databrowse.site.register(Location)
     17databrowse.site.register(DnsServer)
     18databrowse.site.register(Network)
     19databrowse.site.register(Node)
     20databrowse.site.register(Interface)
     21databrowse.site.register(PublicAP)
     22databrowse.site.register(DhcpStatic)
  • trunk/exodus/urls.py

    r6325 r6332  
    66from django.conf import settings
    77from django.views.generic.simple import direct_to_template
     8from django.contrib import databrowse
     9from django.contrib import admin
     10admin.autodiscover()
    811
    912#
    1013# experimental databrowse code
    11 from django.contrib import databrowse
    12 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)
    2014
    2115urlpatterns = patterns('',
     
    3428        (r'^dhcp/(?P<mode>(add|edit|delete))/(?P<node>.+)/(?P<interface>.+)/(?P<publicAP>.+)/$', 'exodus.views.genericPublicAP'),
    3529
    36         # 3th party/embedded databsse thingy
     30        # 3th party/embedded database browser
    3731        (r'^databrowse/(.*)', databrowse.site.root),
     32
     33    (r'^admin/(.*)', admin.site.root),
    3834)
    3935
     
    4137        urlpatterns += patterns('',
    4238        url(r'^static/(?P<path>.*)$$', 'django.views.static.serve', {'document_root':
    43          settings.DJANGOROOT + '/exodus/static'}, "static"),
     39         'exodus/static'}, "static"),
    4440        )
Note: See TracChangeset for help on using the changeset viewer.