old_contents: # -*- coding: utf-8 -*-
  
  from django.conf.urls.defaults import patterns, include, url
  from greenmine.views import main, config
  
  
  js_info_dict = {
      'packages': ('greenmine',),
  }
  
  urlpatterns = patterns('',
      url(r'^$', main.ProjectsView.as_view(), name='projects'),
      url(r'^login/$', main.LoginView.as_view(), name='login'),
      url(r'^config/profile/$', config.ProfileView.as_view(), name='profile'),
      url(r'^config/projects/$', config.AdminProjectsView.as_view(), name='admin-projects'),
      url(r'^config/projects/(?P<pslug>[\w\d\-]+)/export/$',
          config.AdminProjectExport.as_view(), name="admin-project-export"),
      url(r'^project/create/$', main.ProjectCreateView.as_view(), name='project-create'),
      url(r'^(?P<pslug>[\w\d\-]+)/dashboard/$', main.ProjectView.as_view(), name='project'),
      url(r'^(?P<pslug>[\w\d\-]+)/issue/(?P<iref>[\w\d]+)/$', main.IssueView.as_view(), name='issue'),
      #url(r'^media/', include('django_dbstorage.urls'))
  )
  
  urlpatterns += patterns('',
      url(r'^jsi18n/$', 'django.views.i18n.javascript_catalog', js_info_dict, name='jsi18n'),
  )
  
new_contents: # -*- coding: utf-8 -*-
  
  from django.conf.urls.defaults import patterns, include, url
  from greenmine.views import main, config
  from django.conf import settings
  
  
  js_info_dict = {
      'packages': ('greenmine',),
  }
  
  urlpatterns = patterns('',
      url(r'^$', main.ProjectsView.as_view(), name='projects'),
      url(r'^login/$', main.LoginView.as_view(), name='login'),
      url(r'^config/profile/$', config.ProfileView.as_view(), name='profile'),
      url(r'^config/projects/$', config.AdminProjectsView.as_view(), name='admin-projects'),
      url(r'^config/projects/(?P<pslug>[\w\d\-]+)/export/$',
          config.AdminProjectExport.as_view(), name="admin-project-export"),
      url(r'^project/create/$', main.ProjectCreateView.as_view(), name='project-create'),
      url(r'^(?P<pslug>[\w\d\-]+)/dashboard/$', main.ProjectView.as_view(), name='project'),
      url(r'^(?P<pslug>[\w\d\-]+)/issue/(?P<iref>[\w\d]+)/$', main.IssueView.as_view(), name='issue'),
      #url(r'^media/', include('django_dbstorage.urls'))
  )
  
  urlpatterns += patterns('',
      url(r'^jsi18n/$', 'django.views.i18n.javascript_catalog', js_info_dict, name='jsi18n'),
  )
  
  if settings.DEBUG:
      from django.views.static import serve
      _media_url = settings.MEDIA_URL
      if _media_url.startswith('/'):
          _media_url = _media_url[1:]
          urlpatterns += patterns('', 
              (r'^%s(?P<path>.*)$' % _media_url, serve, {'document_root': settings.MEDIA_ROOT})
          )
  
subject: Add media url handling to development environment.