-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathurls.py
More file actions
executable file
·36 lines (33 loc) · 1.38 KB
/
urls.py
File metadata and controls
executable file
·36 lines (33 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
'''
* iConquer - Online C&C-like game
* Copyright (C) 2009-2010 Adam Etienne <etienne.adam@gmail.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation version 3.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* $Id$
'''
from django.conf.urls.defaults import *
from django.contrib import admin
from django.conf import settings
admin.autodiscover()
urlpatterns = patterns('',
(r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}),
#(r'^media-admin/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}),
(r'^[a-z]*$', 'rts.views.menu'),
(r'^(?P<gameid>[0-9]+)$', 'rts.views.game'),
(r'^get_all_obj_tiles$', 'rts.views.get_all_obj_tiles'),
(r'^get_ground/(?P<gameid>.*)$', 'rts.views.get_ground'),
(r'^accounts/', include('registration.backends.default.urls')),
(r'^admin/', include(admin.site.urls)),
#url(r'^', include('socialregistration.urls')),
)