<filename>pyclub/urls.py
# -*- coding: utf-8 -*-

from django.conf.urls import include, url
from django.contrib import admin

from .content.views import PostDetailView, PostListView


urlpatterns = [
    url(r'^dashboard/', include('pyclub.dashboard.urls', namespace='dashboard')),
    url(r'^content/', include('pyclub.content.urls', namespace='content')),
    url(r'^account/', include('pyclub.accounts.urls', namespace='accounts')),

    url(r'', include('django.contrib.auth.urls')),
    url(r'', include('social.apps.django_app.urls', namespace='social')),

    url(r'^admin/', include(admin.site.urls)),

    url(r'^$', PostListView.as_view(), name='index'),
    url(r'^(?P<slug>[-\w]+)/$', PostDetailView.as_view(), name='post'),
]
