from django.conf.urls import patterns, url
from . import views

urlpatterns = patterns('',
    url(r'^$', views.dashboard, name="dashboard"),
    url(r'^(?P<name>[\w\.]*)$', views.history, name="history"),
)

from django.conf.urls import patterns, url
from . import views

urlpatterns = patterns('',
    url(r'^$', views.dashboard, name="dashboard"),
    url(r'^(?P<name>[-\w\._]*)$', views.history, name="history"),
)

Fix bug with valid hostnames with dashes. I added underscores even though they aren't valid just for good measure