Changeset 7 for bitstructures

Show
Ignore:
Timestamp:
10/09/07 08:02:40 (15 months ago)
Author:
simon
Message:

Fixed module references to work with mod_python.

Location:
bitstructures/trunk/substructure
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • bitstructures/trunk/substructure/urls.py

    r6 r7  
    22 
    33urlpatterns = patterns('', 
    4     (r'^$', 'substructure.views.blog'), 
     4    (r'^$', 'bitstructures.substructure.views.blog'), 
    55    (r'^(?P<year>\d{4})/(?P<month>\d{2})/(?P<slug>[a-z0-9-]+)$', 
    6         'substructure.views.entry_page'), 
    7     (r'^drafts/(?P<slug>[a-z0-9-]+)$', 'substructure.views.draft_page') 
     6        'bitstructures.substructure.views.entry_page'), 
     7    (r'^drafts/(?P<slug>[a-z0-9-]+)$', 'bitstructures.substructure.views.draft_page') 
    88) 
  • bitstructures/trunk/substructure/views.py

    r6 r7  
    22from django.shortcuts import get_object_or_404, render_to_response 
    33from bitstructures.substructure.models import Entry 
    4 import settings 
     4import bitstructures.settings 
    55 
    66def blog(request): 
     
    3232 
    3333def get_context_data(request): 
    34     data = { 'MEDIA_URL': settings.MEDIA_URL } 
     34    data = { 'MEDIA_URL': bitstructures.settings.MEDIA_URL } 
    3535    if user_can_change_entry(request): 
    3636        data['user_can_change_entry'] = True