-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathurls.py
133 lines (114 loc) · 5.55 KB
/
urls.py
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
import os
from django.conf import settings
from django.conf.urls import *
from django.contrib import admin
#from helpdesk import admin as helpdesk_admin
from django.db.backends.postgresql_psycopg2.base import DatabaseFeatures
DatabaseFeatures.can_return_id_from_insert = False
from ajax_select import urls as ajax_select_urls
from billservice.views import SelectPaymentView
from django.conf.urls.static import static
import autocomplete_light
autocomplete_light.autodiscover()
admin.autodiscover()
urlpatterns = patterns('',
# Example:
# (r'^ebscab/', include('ebscab.foo.urls')),
#(r'^$','ebscab.billing.views.index'),
#url('^helpdesk/admin/(.*)', helpdesk_admin.site.urls, name='helpdesk_admin'),
(r'^media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}),
(r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.STATIC_ROOT}),
# Uncomment this for admin:
(r'^objectlog/', include('object_log.urls')),
(r'^helpdesk/', include('helpdesk.urls')),
(r'^webmoney/', include('paymentgateways.webmoney.urls')),
(r'^ebsadmin/', include('ebsadmin.urls')),
url(r'^cassa/', include('ebsadmin.cashier.urls')),
(r'^reports/', include('ebsadmin.reportsystem.urls')),
(r'^admin/lookups/', include(ajax_select_urls)),
(r'^admin/', include(admin.site.urls)),
(r'^admin_media/jsi18n', 'django.views.i18n.javascript_catalog'),
(r'^i18n/', include('django.conf.urls.i18n')),
url(r'', include('getpaid.urls')),
#url(r'^webcab/pay/(?P<pk>\d+)/$', OrderView.as_view(), name='order-payment-view'),
#url(r'^webcab/pay/$', PaymentView.as_view(), name='payment-view'),
url(r'^webcab/pay/$', SelectPaymentView.as_view(), name='payment-view'),
url(r'^autocomplete/', include('autocomplete_light.urls')),
(r'^selectable/', include('selectable.urls')),
url(r'^captcha/', include('captcha.urls')),
#(r'^static/(?P<path>.*)$', 'django.contrib.staticfiles.views.serve')
) #+ patterns((r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.STATIC_ROOT}))
#urlpatterns += staticfiles_urlpatterns()
urlpatterns += patterns('billservice.views',
# Uncomment this for admin:
#(r'^$', 'index'),
url(r'^$', 'index', name='billservice_index'),
url(r'^login/$', 'login', name='login'),
url(r'^register/$', 'register', name='register'),
(r'^simple_login/$', 'simple_login'),
(r'^get_ballance/$', 'get_ballance'),
(r'^prepaid/$', 'account_prepays_traffic'),
url(r'^accounts/logout/$', 'login_out', name='account_logout'),
(r'^promise/$', 'get_promise'),
(r'^payment/$', 'make_payment'),
(r'^qiwi_payment/$', 'qiwi_payment'),
(r'^qiwi_payment/balance/$', 'qiwi_balance'),
(r'^transaction/$', 'transaction'),
(r'^session/info/$', 'vpn_session'),
(r'^password/change/$', 'change_password'),
(r'^email/change/$', 'change_email'),
(r'^password/form/$', 'password_form'),
(r'^tariff/change/$', 'change_tariff'),
(r'^tariff/form/$', 'change_tariff_form'),
(r'^card/activation/$', 'card_acvation'),
(r'^card/form/$', 'card_form'),
(r'^traffic/limit/$', 'traffic_limit'),
(r'^statistics/$', 'statistics'),
(r'^services/$', 'addon_service'),
(r'^service/(?P<action>set|del)/(?P<id>\d+)/$', 'service_action'),
(r'^services/info/$', 'services_info'),
(r'^service/history/info/$', 'periodical_service_history'),
(r'^addon/services/transaction/info/$', 'addon_service_transaction'),
(r'^traffic/transaction/info/$', 'traffic_transaction'),
(r'^traffic/volume/info/$', 'traffic_volume'),
(r'^one/time/history/info/$', 'one_time_history'),
(r'^news/delete/$', 'news_delete'),
(r'^subaccount/password/form/(?P<subaccount_id>\d+)/$', 'subaccount_password_form'),
(r'^subaccount/password/change/$', 'subaccount_change_password'),
(r'^service/(?P<action>set|del)/(?P<id>\d+)/$', 'service_action'),
(r'^account/block/$', 'user_block'),
(r'^account/block/action/$', 'userblock_action'),
)
urlpatterns = urlpatterns + patterns('helpdesk.views.account',
url(r'^account/helpdesk/$', 'list_tickets', name='helpdesk_account_tickets'), # list user's tickets
url(r'^account/helpdesk/add$', 'create_ticket', name='helpdesk_account_tickets_add'), # create new ticket
url(r'^account/helpdesk/(?P<ticket_id>[\d]+)/$', 'view_ticket', name='helpdesk_account_tickets_view'), #change/post comment,
)
urlpatterns += patterns('statistics.views',
#(?P<id>\d+)
(r'^statistics/account/$', 'account_stat'),
(r'^statistics/subaccount/$', 'subaccounts_stat'),
(r'^statistics/subaccount_filter/$', 'subaccounts_filter_stat'),
(r'^statistics/nasses_filter/$', 'nasses_filter_stat'),
(r'^statistics/subaccount_period_filter/$', 'subaccounts_period_stat'),
(r'^statistics/overall/$', 'overall_stat'),
(r'^statistics/nasses_stat/$', 'nasses_stat'),
(r'^statistics/nasses_period_filter/$', 'nasses_period_stat'),
(r'^statistics/nas_stat/$', 'nas_stat'),
)
urlpatterns += patterns('cassa.views',
#(?P<id>\d+)
(r'^cassa/$', 'index'),
)
urlpatterns += patterns('paymentgateways.quickpay.views',
(r'^quickpay/payment/$', 'payment'),
)
urlpatterns += patterns('paymentgateways.osmp_customproviders.views',
(r'^osmp_custom/payment/$', 'payment'),
)
urlpatterns += patterns('paymentgateways.rapida.views',
(r'^pg/rapida/payment/$', 'payment'),
)
urlpatterns += patterns('paymentgateways.sberbank.views',
(r'^pg/sberbank/payment/$', 'payment'),
)