<reponame>future21star/ShowRoom<filename>website_showroom/urls.py
from django.conf.urls import include, url
from website_showroom.feeds import RssFeed
import website_showroom.views

from django.contrib import admin
admin.autodiscover()


urlpatterns = [
    url(r'^admin/', include(admin.site.urls)),
    url(r'^(?P<ed_country>[-\w]+)/rss/$', RssFeed()), 
    url(r'^search/', include('haystack.urls')),

    url(r'^$', website_showroom.views.act_edition_redirect),
    url(r'^(?P<ed_country>[-\w]+)/$', website_showroom.views.index),
    url(r'^(?P<ed_country>[-\w]+)/contact/', website_showroom.views.contact),
    url(r'^(?P<ed_country>[-\w]+)/(?P<url_name>[-\w]+)/$', website_showroom.views.category)
]

from django.conf.urls import include, url
from website_showroom.feeds import RssFeed
import website_showroom.views

from django.contrib import admin
admin.autodiscover()


urlpatterns = [
    url(r'^admin/', include(admin.site.urls)),
    url(r'^(?P<ed_country>[-\w]+)/rss/$', RssFeed()), 
    url(r'^search/', include('haystack.urls')),

    url(r'^$', website_showroom.views.act_edition_redirect),
    url(r'^(?P<ed_country>[-\w]+)/$', website_showroom.views.index),
    url(r'^(?P<ed_country>[-\w]+)/contact/', website_showroom.views.contact),
    url(r'^(?P<ed_country>[-\w]+)/(?P<url_name>[-\w]+)/$', website_showroom.views.category)
]