from django.conf.urls import patterns, include, url
from dsrt.views import hello, worklist, uploadForm, matchAlgo, visualComp, saveFlagged, downloadFlagged, getPixelData, dataReview
from django.template import RequestContext
from django.contrib.auth import authenticate
from django.contrib.auth.views import login, logout
from django.conf import settings
from django.conf.urls.static import static
from django.contrib import admin
admin.autodiscover()

# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()

#Adding static files 

urlpatterns = patterns('',
	url(r'^hello/$',hello),
	url(r'^worklist/$',worklist),
        url(r'^uploadForm/$',uploadForm),
	url(r'^login/$',login),
	url(r'^logout/$',logout),
        url(r'^admin/', include(admin.site.urls)),
        url(r'^matchAlgo/',matchAlgo),
        url(r'^visualComp/',visualComp),
        url(r'^saveFlagged/',saveFlagged),
        url(r'^downloadFlagged/',downloadFlagged),
        url(r'^getPixelData/',getPixelData),
        url(r'^dataReview/',dataReview),
    # Examples:
    # url(r'^$', 'rtds.views.home', name='home'),
    # url(r'^rtds/', include('rtds.foo.urls')),

    # Uncomment the admin/doc line below to enable admin documentation:
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    # url(r'^admin/', include(admin.site.urls)),
) + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
