# Path: salmon/metrics/views.py
# class CreateMetricView(CreateAPIView):
#     def get_serializer(self, instance=None, data=None, files=None,
#                        many=False, partial=False):
# def dashboard(request):
# def history(request, name):


from django.conf.urls import patterns, url, include
from django.contrib import admin
from salmon.metrics import views as metrics_views


admin.autodiscover()

urlpatterns = patterns('',
    (r'^admin/', include(admin.site.urls)),
    url(r'^$', metrics_views.dashboard, name="dashboard"),

# Path: salmon/metrics/views.py
# class CreateMetricView(CreateAPIView):
#     def get_serializer(self, instance=None, data=None, files=None,
#                        many=False, partial=False):
# def dashboard(request):
# def history(request, name):


# Path: salmon/urls.py
from django.conf.urls import patterns, url, include
from django.contrib import admin
from salmon.metrics import views as metrics_views



admin.autodiscover()

urlpatterns = patterns('',
    (r'^admin/', include(admin.site.urls)),
    url(r'^$', metrics_views.dashboard, name="dashboard"),

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