# Path: utils.py
# URL_ADVISORIES = 'updates'


from django.contrib import admin
from django.contrib.auth import views as auth_views
from django.conf.urls import patterns, include, url
from utils import URL_ADVISORIES
#   Copyright (c) 2011-2014, Alexander Todorov <atodorov@nospam.dif.io>
#
#   Licensed under the Apache License, Version 2.0 (the "License");
#   you may not use this file except in compliance with the License.
#   You may obtain a copy of the License at
#
#       http://www.apache.org/licenses/LICENSE-2.0
#
#   Unless required by applicable law or agreed to in writing, software
#   distributed under the License is distributed on an "AS IS" BASIS,
#   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#   See the License for the specific language governing permissions and
#   limitations under the License.
#
################################################################################


admin.autodiscover()


URL_INDEX = ''
URL_SEARCH = 'search'
URL_ANALYTICS = 'analytics'

urlpatterns = patterns('',
    url(r'^%s$' % URL_INDEX, 'difio.views.index', name='index'),
    url(r'^%s/$' % URL_SEARCH, 'difio.views.search_results', name='search_results'),
    url(r'^%s/$' % URL_ANALYTICS,  'difio.views.analytics', name='analytics'),

    # /updates/django-1.3/django-1.3.1/245

# Path: utils.py
# URL_ADVISORIES = 'updates'


# Path: urls.py
from django.contrib import admin
from django.contrib.auth import views as auth_views
from django.conf.urls import patterns, include, url
from utils import URL_ADVISORIES

#   Copyright (c) 2011-2014, Alexander Todorov <atodorov@nospam.dif.io>
#
#   Licensed under the Apache License, Version 2.0 (the "License");
#   you may not use this file except in compliance with the License.
#   You may obtain a copy of the License at
#
#       http://www.apache.org/licenses/LICENSE-2.0
#
#   Unless required by applicable law or agreed to in writing, software
#   distributed under the License is distributed on an "AS IS" BASIS,
#   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#   See the License for the specific language governing permissions and
#   limitations under the License.
#
################################################################################


admin.autodiscover()


URL_INDEX = ''
URL_SEARCH = 'search'
URL_ANALYTICS = 'analytics'

urlpatterns = patterns('',
    url(r'^%s$' % URL_INDEX, 'difio.views.index', name='index'),
    url(r'^%s/$' % URL_SEARCH, 'difio.views.search_results', name='search_results'),
    url(r'^%s/$' % URL_ANALYTICS,  'difio.views.analytics', name='analytics'),

    # /updates/django-1.3/django-1.3.1/245

    url(r'^%s/(?P<old>.*)/(?P<new>.*)/(?P<id>\d+)/$' % URL_ADVISORIES, 'difio.views.advisory', name='advisory'),