from django.conf.urls import patterns, include, url
from django.views.generic import TemplateView

from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.conf import settings

from users.views import *


urlpatterns = patterns('',
    # Examples:
    # url(r'^$', 'scrum.views.home', name='home'),
    # url(r'^blog/', include('blog.urls')),

    url(r'^', include('django.contrib.auth.urls')),
    url(r'^profile/$', dashboard),
    url(r'^view-profile/(?P<uid>\d+)/$', view_profile),
    url(r'^edit-profile/(?P<uid>\d+)/$', edit_profile),
    url(r'^dashboard/$', dashboard),
    url(r'^new-message/$', new_message),
    url(r'^get-messages/$', get_messages),
    url(r'^messages/$', messages),
    url(r'^messages/(?P<convoPK>\d+)/$', messages),
    url(r'^associates/$', associates),
    url(r'^accept-associate/$', accept_associate),
    url(r'^decline-associate/$', remove_associate),
    url(r'^remove-associate/$', remove_associate),
    url(r'^projects/$', projects),
    url(r'^requests/$', requests),
    url(r'^logged-out/$', TemplateView.as_view(template_name = "registration/logout.html")),
)
