from django.conf.urls import include, url
from django.views import generic

from stardate.models import Blog
from stardate.views import (
    BlogCreate,
    select_backend,
    process_webhook,
)


urlpatterns = [
    url(r'^new/$', select_backend, name='blog-new'),
    url(r'^create/(?P<provider>[-\w]+)/$', BlogCreate.as_view(), name='blog-create'),
    url(r'^providers/$', select_backend, name='provider-select'),
    url(r'^webhook/$', process_webhook, name='webhook'),
    url(r'^$', generic.ListView.as_view(model=Blog), name='blog-list'),
]

from django.conf.urls import include, url
from django.views import generic

from stardate.models import Blog
from stardate.views import (
    BlogCreate,
    select_backend,
    process_webhook,
)


urlpatterns = [
    url(r'^new/$', select_backend, name='blog-new'),
    url(r'^create/(?P<provider>[-\w]+)/$', BlogCreate.as_view(), name='blog-create'),
    url(r'^providers/$', select_backend, name='provider-select'),
    url(r'^webhook/$', process_webhook, name='webhook'),
    url(r'^(?P<blog_slug>[-\w]+)/', include('stardate.urls.blog_urls')),
    url(r'^$', generic.ListView.as_view(model=Blog), name='blog-list'),
]

Revert "remove blog urls from index urls"
Revert "remove blog urls from index urls"

This reverts commit f8d5541a8e5de124dcec62a32bd19a8226869622.
