예제 #1
0
from django.conf.urls import include, url
from django.contrib import admin
from stats.views import StatsView


# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
admin.autodiscover()

urlpatterns = [

    # sample stats pages
    
    url(r'^$', StatsView.as_view(template_name='statistics/p_report.html')),
    url(r'^custom.html$', StatsView.as_view(template_name='statistics/sgvizler.html')),
    url(r'^age.html$', StatsView.as_view(template_name='statistics/age.htm')),
    url(r'^birthplaces.html$', StatsView.as_view(template_name='statistics/birthplaces.htm')),
    url(r'^culture.html$', StatsView.as_view(template_name='statistics/culture.htm')),
    url(r'^gender.html$', StatsView.as_view(template_name='statistics/gender.htm')),
    url(r'^help.html$', StatsView.as_view(template_name='statistics/help_page.htm')),
    url(r'^language.html$', StatsView.as_view(template_name='statistics/language.htm')),
    url(r'^professional_category.html$', StatsView.as_view(template_name='statistics/professional_category.htm')),
    url(r'^query.html$', StatsView.as_view(template_name='statistics/query.htm')),
    url(r'^stats.html$', StatsView.as_view(template_name='statistics/stats.htm'))
    #url(r'^$', login_required(StatsView.as_view(template_name='statistics/p_report.html'))),

    #url(r'^$', StatsView.as_view(template_name='statistics/p_report.html')), 
    
   ]
예제 #2
0
from django.urls import path

from stats.views import StatsView


urlpatterns = [
    path("stats/", StatsView.as_view())
]
예제 #3
0
from django.urls import path

from stats.views import StatsView

urlpatterns = [
    path('', StatsView.as_view(), name='stats_view'),
]
예제 #4
0
                        AboutView, HelpView, GenerateSecretView,
                        DomainOverwievView, DeleteDomainView, ThankYouView,
                        RegistrationSuccessView)
from stats.views import StatsView

urlpatterns = patterns(
    '',
    url(r'^$', HomeView.as_view(), name="home"),
    url(r'^about/$', AboutView.as_view(), name="about"),
    url(r'^thank_you/$', ThankYouView.as_view(), name="thank_you"),
    url(r'^welcome/$', RegistrationSuccessView.as_view(), name="welcome"),
    url(r'^legal/$',
        TemplateView.as_view(template_name='main/legal.html'),
        name="legal"),
    url(r'^help/$', HelpView.as_view(), name="help"),
    url(r'^stats/$', StatsView.as_view(), name="stats"),
    url(r'^overview/$', OverviewView.as_view(), name='overview'),
    url(r'^host/(?P<pk>\d+)/$', HostView.as_view(), name='host_view'),
    url(r'^generate_secret/(?P<pk>\d+)/$',
        GenerateSecretView.as_view(),
        name='generate_secret_view'),
    url(r'^host/(?P<pk>\d+)/delete/$',
        DeleteHostView.as_view(),
        name='delete_host'),
    url(r'^domain_overview/$',
        DomainOverwievView.as_view(),
        name='domain_overview'),
    url(r'^domain/(?P<pk>\d+)/delete/$',
        DeleteDomainView.as_view(),
        name='delete_domain'),
    url(r'^myip$', MyIpView),
예제 #5
0
# coding=utf-8
from django.conf.urls import url

from stats.views import StatsView

urlpatterns = [
    url(r'^$', StatsView.as_view(), name="tamStats"),
]
예제 #6
0
    GenerateSecretView, DomainOverwievView, DeleteDomainView, ThankYouView,
    RegistrationSuccessView
)
from stats.views import StatsView


urlpatterns = patterns(
    '',
    url(r'^$', HomeView.as_view(), name="home"),
    url(r'^about/$', AboutView.as_view(), name="about"),
    url(r'^thank_you/$', ThankYouView.as_view(), name="thank_you"),
    url(r'^welcome/$', RegistrationSuccessView.as_view(), name="welcome"),
    url(r'^legal/$',
        TemplateView.as_view(template_name='main/legal.html'), name="legal"),
    url(r'^help/$', HelpView.as_view(), name="help"),
    url(r'^stats/$', StatsView.as_view(), name="stats"),
    url(r'^overview/$', OverviewView.as_view(), name='overview'),
    url(r'^host/(?P<pk>\d+)/$', HostView.as_view(), name='host_view'),
    url(r'^generate_secret/(?P<pk>\d+)/$',
        GenerateSecretView.as_view(), name='generate_secret_view'),
    url(r'^host/(?P<pk>\d+)/delete/$',
        DeleteHostView.as_view(), name='delete_host'),
    url(r'^domain_overview/$',
        DomainOverwievView.as_view(), name='domain_overview'),
    url(r'^domain/(?P<pk>\d+)/delete/$',
        DeleteDomainView.as_view(), name='delete_domain'),
    url(r'^myip$', MyIpView),
    url(r'^detectip/$', DetectIpView),
    url(r'^detectip/(?P<secret>\w+)/$', DetectIpView),
    url(r'^nic/update$', NicUpdateView),
    url(r'^nic/update_authorized$',
예제 #7
0
from django.conf.urls import url

from stats.views import StatsView

urlpatterns = [
    url(r'^stats/$', StatsView.as_view()),
]
예제 #8
0
from django.conf.urls import patterns, include, url
from django.contrib import admin

from stats.views import ScoreboardView, StatsView

admin.autodiscover()

urlpatterns = patterns(
    '',
    url(r'^$', StatsView.as_view()),
    url(r'^scoreboard.json', ScoreboardView.as_view()),
    url(r'^admin/', include(admin.site.urls)),
)
예제 #9
0
from django.conf.urls import patterns, include, url
from django.contrib import admin

from stats.views import ScoreboardView, StatsView


admin.autodiscover()


urlpatterns = patterns(
    "",
    url(r"^$", StatsView.as_view()),
    url(r"^scoreboard.json", ScoreboardView.as_view()),
    url(r"^admin/", include(admin.site.urls)),
)