# Path: twobuntu/articles/views.py
# def view(request, article):
# def search(request):
# def editor(request, id):
# def markdown(request):
# def modify(request, action, id):
# def schedule(request, id):
# def delete(request, id):


from django.conf.urls import url
from twobuntu.articles import views



urlpatterns = [
    url(r'^(?P<id>\d+)/(?:(?P<slug>[\w-]+)/)?$', views.view, name='view'),

    url(r'^editor/(?:(?P<id>\d+)/)?$', views.editor, name='editor'),

# Path: twobuntu/articles/views.py
# def view(request, article):
# def search(request):
# def editor(request, id):
# def markdown(request):
# def modify(request, action, id):
# def schedule(request, id):
# def delete(request, id):


# Path: twobuntu/articles/urls.py
from django.conf.urls import url
from twobuntu.articles import views




urlpatterns = [
    url(r'^(?P<id>\d+)/(?:(?P<slug>[\w-]+)/)?$', views.view, name='view'),

    url(r'^editor/(?:(?P<id>\d+)/)?$', views.editor, name='editor'),

    url(r'^(?P<action>submit|publish|release)/(?P<id>\d+)/$', views.modify, name='modify'),