Source

wheezy.web / demos / template / src / urls.py

Full commit
"""
"""

from wheezy.routing import url

from membership.web.urls import membership_urls
from public.web.urls import error_urls
from public.web.urls import public_urls
from public.web.urls import static_urls
from public.web.views import home


locale_pattern = '{locale:(en|ru)}/'
locale_defaults = {'locale': 'en'}

locale_urls = public_urls + membership_urls
locale_urls.append(('error/', error_urls))
all_urls = [
    url('', home, locale_defaults, name='default'),
    (locale_pattern, locale_urls, locale_defaults),
]
all_urls += static_urls