"""Richmond URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/1.8/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  url(r'^$', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  url(r'^$', Home.as_view(), name='home')
Including another URLconf
    1. Add a URL to urlpatterns:  url(r'^blog/', include('blog.urls'))
"""
from django.conf.urls import include, url
from django.contrib import admin
# custom
from index.views import index_view
from trade.views import select_stock_view, stock_view, add_trade, trade_record_view
from players.views import login, register_view, register, player_view, subscribe
from dailyGame.views import daily_game_view, join_game, playground_view, add_game_record
from notification.views import notification_view, invite_pk, reply_invitation, read_notification
from rank.views import rank_view

urlpatterns = [
	url(r'^admin/', include(admin.site.urls)),
	url(r'^$', index_view),
	url(r'^trade/$', select_stock_view),
	url(r'^stock/$', stock_view),
	url(r'^addTrade/$', add_trade),
	url(r'^accounts/login/$', login),
	url(r'^accounts/login/register/$', register_view),
	url(r'^register/$', register),
	url(r'^accounts/logout/$', 'django.contrib.auth.views.logout', {'next_page': '/accounts/login'}),
	url(r'^tradeRecord/$', trade_record_view),
	url(r'^userList/$', player_view),
	url(r'^dailyGame/$', daily_game_view),
	url(r'^joinDaily/$', join_game),
	url(r'^dailyPlayground/$', playground_view),
	url(r'^addGameRecord/$', add_game_record),
	url(r'^invite_pk/$', invite_pk),
	url(r'^notification/$', notification_view),
	url(r'^reply/$', reply_invitation),
	url(r'^readNotification/$', read_notification),
	url(r'^subscribe/$', subscribe),
	url(r'^rank/$', rank_view)
]
