Пример #1
0
from django.conf.urls.defaults import *

from utils.shortcuts import route

urlpatterns = patterns('game_config.views',

    route(r'^$', GET='all_games', POST='create_game', name='root'),
    route(r'(?P<uuid>[\w-]+)/$', POST='join_game', GET='game_info', DELETE='leave_or_delete_game', name='game_info'),

)
Пример #2
0
from django.conf.urls.defaults import *

from utils.shortcuts import route

urlpatterns = patterns('team_management.views',

    route(r'^$', GET='all_teams', name='root'),
    route(r'(?P<team_uuid>[\w-]+)/$', GET='team_info', POST='buy_team', name='single_team'),
    route(r'(?P<team_uuid>[\w-]+)/(?P<game_uuid>[\w-]+)$', GET='team_info', name='game_team_info'),

)
Пример #3
0
from django.conf.urls.defaults import *

from utils.shortcuts import route

urlpatterns = patterns('project_management.views',

    route(r'new/(?P<game_uuid>[\w-]+)/$', GET='get_new_project', name='get_project'),
    route(r'info/(?P<proj_uuid>[\w-]+)/$', GET='get_info', name='project_info'),
    route(r'work/(?P<game_uuid>[\w-]+)/$', GET='work_pontuation', name='calc_pontuation')

)