# Path: webalyzer/collector/views.py
# def collect(request):
# def collect_check(request, source_hash, source_type, domain):


from django.conf.urls import patterns, url
from webalyzer.collector import views


urlpatterns = patterns(
    '',
    url(
        '^check/(?P<source_type>[\w]+)/'
        '(?P<domain>[\w\.]+)/'
        '(?P<source_hash>[\-\w\.]+)$',
        views.collect_check,
        name='collect_check'
    ),

# Path: webalyzer/collector/views.py
# def collect(request):
# def collect_check(request, source_hash, source_type, domain):


# Path: webalyzer/collector/urls.py
from django.conf.urls import patterns, url
from webalyzer.collector import views



urlpatterns = patterns(
    '',
    url(
        '^check/(?P<source_type>[\w]+)/'
        '(?P<domain>[\w\.]+)/'
        '(?P<source_hash>[\-\w\.]+)$',
        views.collect_check,
        name='collect_check'
    ),

    url(r'^$', views.collect, name='collect'),