Пример #1
0
from app.views.admin import AdminPeekListView, AdminPeekDetailView
from app.views.api import GraphView, NotificationCountAPIView
from app.views.auth import AuthorizeAPIView, AuthorizePostBackAPIView
from app.views.history import HistoryListView, HistoryDetailView, HistoryFollowersView
from app.views.leaderboard import LeaderBoardDailyView, LeaderBoardSpecificDayView
from app.views.live import LiveView
from app.views.public import IndexView, AboutView


urlpatterns = [
    url(r'^$', IndexView.as_view(), name="index_view"),
    url(r'^about/$', AboutView.as_view(), name="about_view"),
    url(r'^leaderboards/$', LeaderBoardDailyView.as_view(), name="leaderboard_daily_view"),
    url(r'^leaderboards/(?P<datestamp>\d{4}-\d{2}-\d{2})/$', LeaderBoardSpecificDayView.as_view(), name="leaderboard_specific_day_view"),
    url(r'^live/$', login_required(LiveView.as_view()), name="live_view"),
    url(r'^history/$', login_required(HistoryListView.as_view()), name="history_list_view"),
    url(r'^history/followers/$', login_required(HistoryFollowersView.as_view()), name="history_followers_view"),
    url(r'^history/(?P<datestamp>\d{4}-\d{2}-\d{2})/$', login_required(HistoryDetailView.as_view()), name="history_detail_view"),
    url(r'^timezone/$', login_required(SetTimezoneView.as_view()), name="timezone_view"),
    url(r'^alerts/$', login_required(NotificationListView.as_view()), name="notification_list_view"),

    url(r'^authorize-api/$', AuthorizeAPIView.as_view(), name="authorize_api_view"),
    url(r'^authorize-api/postback/', AuthorizePostBackAPIView.as_view(), name="authorize_api_postback_view"),

    url(r'^api/graph/$', login_required(GraphView.as_view()), name="graph_view"),
    url(r'^api/notifications/$', login_required(NotificationCountAPIView.as_view()), name="notification_count_api_view"),

    url(r'^a/(?P<user_slug>[a-z0-9-_]+)/$', login_required(AdminPeekListView.as_view()), name="admin_peek_list_view"),
    url(r'^a/(?P<user_slug>[a-z0-9-_]+)/(?P<datestamp>\d{4}-\d{2}-\d{2})/$', login_required(AdminPeekDetailView.as_view()), name="admin_peek_detail_view"),
]
Пример #2
0
from app.views.history import HistoryListView, HistoryDetailView
from app.views.live import LiveView
from app.views.public import IndexView, AboutView

urlpatterns = [
    url(r'^$', IndexView.as_view(), name="index_view"),
    url(r'^about/$', AboutView.as_view(), name="about_view"),
    url(r'^live/$', login_required(LiveView.as_view()), name="live_view"),
    url(r'^history/$',
        login_required(HistoryListView.as_view()),
        name="history_list_view"),
    url(r'^history/(?P<datestamp>\d{4}-\d{2}-\d{2})/$',
        login_required(HistoryDetailView.as_view()),
        name="history_detail_view"),
    url(r'^authorize-api/$',
        login_required(AuthorizeAPIView.as_view()),
        name="authorize_api_view"),
    url(r'^relink-api/$',
        login_required(RelinkAPIView.as_view()),
        name="relink_api_view"),
    url(r'^authorize-api/postback/',
        AuthorizePostBackAPIView.as_view(),
        name="authorize_api_postback_view"),
    url(r'^api/graph/$', GraphView.as_view(), name="graph_view"),
    url(r'^a/(?P<user_slug>[a-z0-9-]+)/$',
        login_required(AdminPeekListView.as_view()),
        name="admin_peek_list_view"),
    url(r'^a/(?P<user_slug>[a-z0-9-]+)/(?P<datestamp>\d{4}-\d{2}-\d{2})/$',
        login_required(AdminPeekDetailView.as_view()),
        name="admin_peek_detail_view"),
]
Пример #3
0
     login_required(HistoryListView.as_view()),
     name="history_list_view"),
 url(r'^history/followers/$',
     login_required(HistoryFollowersView.as_view()),
     name="history_followers_view"),
 url(r'^history/(?P<datestamp>\d{4}-\d{2}-\d{2})/$',
     login_required(HistoryDetailView.as_view()),
     name="history_detail_view"),
 url(r'^timezone/$',
     login_required(SetTimezoneView.as_view()),
     name="timezone_view"),
 url(r'^alerts/$',
     login_required(NotificationListView.as_view()),
     name="notification_list_view"),
 url(r'^authorize-api/$',
     AuthorizeAPIView.as_view(),
     name="authorize_api_view"),
 url(r'^authorize-api/postback/',
     AuthorizePostBackAPIView.as_view(),
     name="authorize_api_postback_view"),
 url(r'^api/viewer_graph/$',
     ViewerGraphView.as_view(),
     name="viewer_graph_view"),
 url(r'^api/graph/$',
     login_required(GraphView.as_view()),
     name="graph_view"),
 url(r'^api/notifications/$',
     login_required(NotificationCountAPIView.as_view()),
     name="notification_count_api_view"),
 url(r'^a/(?P<user_slug>[a-z0-9-_]+)/$',
     login_required(AdminPeekListView.as_view()),
Пример #4
0
from app.views.admin import AdminPeekListView, AdminPeekDetailView
from app.views.api import GraphView
from app.views.auth import AuthorizeAPIView, AuthorizePostBackAPIView, RelinkAPIView
from app.views.history import HistoryListView, HistoryDetailView
from app.views.live import LiveView
from app.views.public import IndexView, AboutView


urlpatterns = [
    url(r"^$", IndexView.as_view(), name="index_view"),
    url(r"^about/$", AboutView.as_view(), name="about_view"),
    url(r"^live/$", login_required(LiveView.as_view()), name="live_view"),
    url(r"^history/$", login_required(HistoryListView.as_view()), name="history_list_view"),
    url(
        r"^history/(?P<datestamp>\d{4}-\d{2}-\d{2})/$",
        login_required(HistoryDetailView.as_view()),
        name="history_detail_view",
    ),
    url(r"^authorize-api/$", login_required(AuthorizeAPIView.as_view()), name="authorize_api_view"),
    url(r"^relink-api/$", login_required(RelinkAPIView.as_view()), name="relink_api_view"),
    url(r"^authorize-api/postback/", AuthorizePostBackAPIView.as_view(), name="authorize_api_postback_view"),
    url(r"^api/graph/$", GraphView.as_view(), name="graph_view"),
    url(r"^a/(?P<user_slug>[a-z0-9-]+)/$", login_required(AdminPeekListView.as_view()), name="admin_peek_list_view"),
    url(
        r"^a/(?P<user_slug>[a-z0-9-]+)/(?P<datestamp>\d{4}-\d{2}-\d{2})/$",
        login_required(AdminPeekDetailView.as_view()),
        name="admin_peek_detail_view",
    ),
]