1. György Kohut
  2. hbwebui

Source

hbwebui / hbwebui / urls.py

from django.conf.urls import patterns, include, url

urlpatterns = patterns('hbwebui.views',
    url(r'^$', 'dashboard', name='dashboard'),
    url(r'^stats/binaries$', 'stats_binaries', name='stats_binaries'),
    url(r'^stats/source_ips$', 'stats_source_ips', name='stats_source_ips'),
    url(r'^stats/asns$', 'stats_asns', name='stats_asns'),
    url(r'^stats/countries$', 'stats_countries', name='stats_countries'),
    
    url(r'^r/stats/binaries$', 'r_stats_binaries', name='r_stats_binaries'),
    url(r'^r/stats/binaries/summary$', 'r_stats_binaries_summary', name='r_stats_binaries_summary'),
    
    url(r'^r/stats/source_ips$', 'r_stats_source_ips', name='r_stats_source_ips'),
    url(r'^r/stats/source_ips/summary$', 'r_stats_source_ips_summary', name='r_stats_source_ips_summary'),
    
    url(r'^r/stats/asns$', 'r_stats_asns', name='r_stats_asns'),
    url(r'^r/stats/asns/summary$', 'r_stats_asns_summary', name='r_stats_asns_summary'),
    
    url(r'^r/stats/countries$', 'r_stats_countries', name='r_stats_countries'),
    url(r'^r/stats/countries/summary$', 'r_stats_countries_summary', name='r_stats_countries_summary'),


    
    url(r'^r/myidents', 'myidents', name='myidents'),
    
    url(r'^r/sensoractivity_24', 'sensoractivity', {'hours': 24}, name='sensoractivity_24'),
    url(r'^r/sensoractivity_168', 'sensoractivity', {'hours': 168}, name='sensoractivity_168'),
    
    url(r'^r/ts/sensoractivity_x_168', 'ts_sensoractivity_x', {'hours': 168}, name='ts_sensoractivity_x_168'),    
    
)

urlpatterns += patterns('',
    url(r'^login$', 'django.contrib.auth.views.login',
        {
            'template_name': 'login.html',
        },
        name='login'
    ),
    url(r'^logout$', 'django.contrib.auth.views.logout',
        {
            'next_page': 'login'
        },
        name='logout'
    ),
)