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

urlpatterns = patterns('',
    url(r'^$', 'frontend.views.home', name='home'),
    url(r'^journals/(?P<username>[-\w\d]+)/$', 'frontend.views.journal', name='journal'),
    url(r'^api/create/', 'api.views.create', name='create'),
    url(r'^api/reorder/', 'api.views.reorder', name='reorder'),
    url(r'^api/delete/', 'api.views.delete', name='delete'),
    url(r'^api/save/', 'api.views.save', name='save'),
    url(r'^api/hide/', 'api.views.hiden', name='hiden'),
    url(r'^admin/', include(admin.site.urls)),
)

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

urlpatterns = patterns('',
    url(r'^$', 'frontend.views.home', name='home'),
    url(r'^journals/(?P<username>[-\w\d]+)/$', 'frontend.views.journal', name='journal'),
    url(r'^api/create/', 'api.views.create', name='create'),
    url(r'^api/reorder/', 'api.views.reorder', name='reorder'),
    url(r'^api/delete/', 'api.views.delete', name='delete'),
    url(r'^api/save/', 'api.views.save', name='save'),
    url(r'^api/hide/', 'api.views.hidden', name='hiden'),
    url(r'^admin/', include(admin.site.urls)),
)

fix typ