import logging

from django.conf.urls import patterns, include, url
from django.conf.urls.static import static
from django.contrib import admin

from chat import settings

logger = logging.getLogger(__name__)

admin.autodiscover()
urlpatterns = patterns(
	'',
	url(r'^admin/', include(admin.site.urls)),
	url(r'^home$', 'chat.views.home'),
	url(r'^$', 'chat.views.home'),  # url(r'^login$', 'story.views.login'),
	url(r'^logout$', 'chat.views.logout'),
	url(r'^auth$', 'chat.views.auth'),
	url(r'^register$', 'chat.views.register'),
	url(r'^register_page$', 'chat.views.get_register_page'),
	url(r'^confirm_email$', 'chat.views.confirm_email'),
	# story/register.js uses link below
	url(r'^validate_user$', 'chat.views.validate_user'),
	url(r'^validate_email$', 'chat.views.validate_email'),
	url(r'^profile$', 'chat.views.change_profile'),
	url(r'^profile/(\d{1,5})$', 'chat.views.show_profile'),
	url(r'^save_profile$', 'chat.views.save_profile'),
	url(r'^report_issue$', 'chat.views.report_issue'),
) + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
