#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
from django.conf.urls.defaults import patterns, url
from django.conf.urls import include

from opps.article.views import OppsDetail



urlpatterns = patterns('',
        url(r'^redactor/', include('redactor.urls')),
        url(r'(?P<channel__long_slug>[\w//-]+)/(?P<slug>[\w-]+)$',
            OppsDetail.as_view(), name='home'),
)

#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
from django.conf.urls.defaults import patterns, url
from django.conf.urls import include

from opps.article.views import OppsDetail, OppsList



urlpatterns = patterns('',
        url(r'^redactor/', include('redactor.urls')),
        url(r'(?P<channel__long_slug>[\w//-]+)/(?P<slug>[\w-]+)$',
            OppsDetail.as_view(), name='open'),
        url(r'(?P<channel__long_slug>[\w//-]+)$',
            OppsList.as_view(), name='channel'),
)

add oppslist on articles urls