Skip to content
This repository
Fetching contributors…

Cannot retrieve contributors at this time

file 31 lines (24 sloc) 0.756 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
# -*- coding: utf-8 -*-

import os.path

from django.conf import settings
from django.conf.urls.defaults import patterns, include, handler404, handler500
from django.views.generic.simple import redirect_to
from django.core.urlresolvers import reverse
from django.contrib import admin

admin.autodiscover()

urlpatterns = patterns('',
    (r'^admin/', include(admin.site.urls)),
)

urlpatterns += patterns(
    '',
    #('^$', redirect_to, {'url': '/speed/'}),
)

urlpatterns += patterns(
    '',
    (r'^', include('codespeed.urls')),
    #(r'^speed/', include('codespeed.urls')),
)

if settings.DEBUG:
    # needed for development server
    from django.contrib.staticfiles.urls import staticfiles_urlpatterns
    urlpatterns += staticfiles_urlpatterns()
Something went wrong with that request. Please try again.