from django.conf.urls import patterns, url from storybase_story.views import StoryWidgetView urlpatterns = patterns( '', url(r'^widget/$', StoryWidgetView.as_view(), name='story_widget'), url(r'^widget/0.1/$', StoryWidgetView.as_view(), {'version': '0.1'}, name='story_widget'), )
{'template': settings.STORYBASE_CONNECTED_STORY_TEMPLATE}, name='connected_story_builder'), url(r'stories/(?P<source_slug>[0-9a-z-]+)/build-connected/$', StoryBuilderView.as_view(), {'template': settings.STORYBASE_CONNECTED_STORY_TEMPLATE}, name='connected_story_builder'), url(r'stories/(?P<source_story_id>[0-9a-f]{32,32})/build-connected/(?P<story_id>[0-9a-f]{32,32})/$', StoryBuilderView.as_view(), {'template': settings.STORYBASE_CONNECTED_STORY_TEMPLATE}, name='connected_story_builder'), url(r'stories/(?P<source_slug>[0-9a-z-]+)/build-connected/(?P<story_id>[0-9a-f]{32,32})/$', StoryBuilderView.as_view(), {'template': settings.STORYBASE_CONNECTED_STORY_TEMPLATE}, name='connected_story_builder'), url(r'^stories/(?P<story_id>[0-9a-f]{32,32})/widget/$', StoryWidgetView.as_view(), name='story_widget'), url(r'^stories/(?P<slug>[0-9a-z-]+)/widget/$', StoryWidgetView.as_view(), name='story_widget'), url(r'^stories/(?P<story_id>[0-9a-f]{32,32})/share-widget/$', StoryShareWidgetView.as_view(), name='story_widget'), url(r'^stories/(?P<slug>[0-9a-z-]+)/share-widget/$', StoryShareWidgetView.as_view(), name='story_widget'), url(r'^stories/(?P<slug>[0-9a-z-]+)/unpublish/$', StoryUpdateView.as_view(), {'status': 'draft'}, name='story_unpublish'), url(r'^stories/(?P<slug>[0-9a-z-]+)/publish/$', StoryUpdateView.as_view(), {'status': 'published'}, name='story_publish'), url(r'^stories/(?P<slug>[0-9a-z-]+)/delete/$', StoryUpdateView.as_view(), {'status': 'deleted'}, name='story_delete'),
from django.conf.urls import patterns, url from storybase_story.views import StoryWidgetView urlpatterns = patterns('', url(r'^widget/$', StoryWidgetView.as_view(), name='story_widget'), url(r'^widget/0.1/$', StoryWidgetView.as_view(), {'version': '0.1'}, name='story_widget'), )