Changeset 6238 for exodus/urls.py


Ignore:
Timestamp:
Sep 2, 2008, 11:03:46 PM (16 years ago)
Author:
RIck van der Zwet
Message:

Removed absolute URL calls and converted them to relative ones

File:
1 edited

Legend:

Unmodified
Added
Removed
  • exodus/urls.py

    r6215 r6238  
    3333
    3434        # views
    35         (r'^$', 'django.views.generic.simple.direct_to_template', {'template': 'index.html'}) ,
    36         (r'^nodelist/$', 'django.views.generic.list_detail.object_list', dict(node_dict, template_name='node-list.html')),
     35        url(r'^$', 'django.views.generic.simple.direct_to_template', {'template': 'index.html'}, "root") ,
     36        url(r'^nodelist/$', 'django.views.generic.list_detail.object_list', dict(node_dict, template_name='node-list.html'), "nodelist"),
    3737        (r'^(?P<slug>.+)/node/$', 'django.views.generic.list_detail.object_detail', dict(node_dict,slug_field='name',template_name='node-detail.html')),
    3838
     
    5151        (r'^addomni/$', 'exodus.views.addomni'),
    5252
    53         (r'^static/(.*)$', 'django.views.static.serve', {'document_root':
    54          settings.DJANGOROOT + '/exodus/static'}),
     53        url(r'^static/(?P<path>.*)$$', 'django.views.static.serve', {'document_root':
     54         settings.DJANGOROOT + '/exodus/static'}, "static"),
    5555)
Note: See TracChangeset for help on using the changeset viewer.