urlpatterns = patterns( "data.views", url(r"^$", "index", name="data"), # Entries: ## Class-Views url(r"^entries/list/$", EntryList.as_view(paginate_by=20), name="list-entries"), url(r"^entry/table/$", Entries.as_view(template_name="data/entry_table.html"), name="entry-table"), # url(r'^entry/table/$', EntryList.as_view(template_name='data/entry_table.html'), name='entry-table'), url( r"^entry/(?P<pk>\d+)", DetailView.as_view(model=Entry), name="detail-entry" ), # User generic class-based view # template_name='entry_detail.html' # use defaults url(r"^entry/view/(?P<slug>.+)", EntryView.as_view(), name="view-entry"), url(r"^entry/create/$", EntryCreate.as_view(), name="create-entry"), url(r"^entry/generate/(?P<title>.+)", Generate.as_view(), name="generate-entry"), url(r"^entry/update/(?P<pk>\d+)", login_required(EntryUpdate.as_view()), name="update-entry"), url(r"^entry/update/(?P<slug>.+)", login_required(EntryUpdate.as_view()), name="update-entry"), url(r"^entry/delete/(?P<pk>\d+)", login_required(EntryDelete.as_view()), name="delete-entry"), url(r"^entry/feed/$", EntryFeed(), name="data-entry-feed"), url(r"^entry/(?P<slug>.+)", EntryView.as_view(), name="detail-entry"), # Alternative detail entry accepting slug. url(r"^hierarchy/list/$", HierarchyList.as_view(), name="list-hierarchy"), ## Function-Views: url(r"^entries/$", "entries", name="entries"), url(r"^hierarchy/$", "hierarchy", name="hierarchy"), url(r"^entry/(?P<slug>.+)", "entry", name="data_entry"), # Classic view. url(r"^entry/add", "add_entry", name="add_entry"), url(r"^entry/edit", "edit_entry", name="edit_view"), url(r"^entry/remove", "remove_entry", name="remove_entry"), url( r"^entry/breadcrump/(?P<slug>.+)", "breadcrump", name="breadcrump"
from feeds import EntryFeed, ChangeFeed, RelationFeed, AlterationFeed, CategoryFeed urlpatterns = patterns('data.views', url(r'^$', 'index', name='data'), # Entries: ## Class-Views url(r'^entries/list/$', EntryList.as_view(paginate_by=20), name='list-entries'), url(r'^entry/table/$', Entries.as_view(template_name='data/entry_table.html'), name='entry-table'), #url(r'^entry/table/$', EntryList.as_view(template_name='data/entry_table.html'), name='entry-table'), url(r'^entry/(?P<pk>\d+)', DetailView.as_view(model=Entry), name='detail-entry'), # User generic class-based view # template_name='entry_detail.html' # use defaults url(r'^entry/view/(?P<slug>.+)', EntryView.as_view(), name='view-entry'), url(r'^entry/create/$', EntryCreate.as_view(), name='create-entry'), url(r'^entry/generate/(?P<title>.+)', Generate.as_view(), name='generate-entry'), url(r'^entry/update/(?P<pk>\d+)', login_required(EntryUpdate.as_view()), name='update-entry'), url(r'^entry/update/(?P<slug>.+)', login_required(EntryUpdate.as_view()), name='update-entry'), url(r'^entry/delete/(?P<pk>\d+)', login_required(EntryDelete.as_view()), name='delete-entry'), url(r'^entry/feed/$', EntryFeed(), name='data-entry-feed'), url(r'^entry/(?P<slug>.+)', EntryView.as_view(), name='detail-entry'), # Alternative detail entry accepting slug. url(r'^hierarchy/list/$', HierarchyList.as_view(), name='list-hierarchy'), ## Function-Views: url(r'^entries/$', 'entries', name='entries'), url(r'^hierarchy/$', 'hierarchy', name='hierarchy'), url(r'^entry/(?P<slug>.+)', 'entry', name='data_entry'), # Classic view. url(r'^entry/add', 'add_entry', name='add_entry'), url(r'^entry/edit', 'edit_entry', name='edit_view'), url(r'^entry/remove', 'remove_entry', name='remove_entry'), url(r'^entry/breadcrump/(?P<slug>.+)', 'breadcrump', name='breadcrump'), # An experimental view to display breadcrump.
from feeds import EntryFeed, ChangeFeed, RelationFeed, AlterationFeed, CategoryFeed urlpatterns = patterns('data.views', url(r'^$', 'index', name='data'), # Entries: ## Class-Views url(r'^entries/list/$', EntryList.as_view(paginate_by=10), name='list-entries'), url(r'^entry/table/$', Entries.as_view(template_name='data/entry_table.html'), name='entry-table'), #url(r'^entry/table/$', EntryList.as_view(template_name='data/entry_table.html'), name='entry-table'), url(r'^entry/(?P<pk>\d+)$', DetailView.as_view(model=Entry), name='detail-entry'), # User generic class-based view # template_name='entry_detail.html' # use defaults url(r'^entry/view/(?P<slug>.+)', EntryView.as_view(), name='view-entry'), url(r'^entry/create/$', EntryCreate.as_view(), name='create-entry'), url(r'^entry/generate/(?P<title>.+)', login_required(Generate.as_view()), name='generate-entry'), url(r'^entry/update/(?P<pk>\d+)', login_required(EntryUpdate.as_view()), name='update-entry'), url(r'^entry/update/(?P<slug>.+)', login_required(EntryUpdate.as_view()), name='update-entry'), url(r'^entry/delete/(?P<pk>\d+)', login_required(EntryDelete.as_view()), name='delete-entry'), url(r'^entry/feed/$', EntryFeed(), name='data-entry-feed'), url(r'^entry/(?P<slug>.+)', EntryView.as_view(), name='detail-entry'), # Alternative detail entry accepting slug. url(r'^hierarchy/list/$', HierarchyList.as_view(), name='list-hierarchy'), ## Function-Views: url(r'^entries/$', 'entries', name='entries'), url(r'^hierarchy/$', 'hierarchy', name='hierarchy'), url(r'^entry/(?P<slug>.+)/?$', 'entry', name='data_entry'), # Classic view. url(r'^entry/add', 'add_entry', name='add_entry'), url(r'^entry/edit', 'edit_entry', name='edit_view'), url(r'^entry/remove', 'remove_entry', name='remove_entry'),
url(r'^entries/list/$', EntryList.as_view(paginate_by=10), name='list-entries'), url(r'^entry/table/$', Entries.as_view(template_name='data/entry_table.html'), name='entry-table'), #url(r'^entry/table/$', EntryList.as_view(template_name='data/entry_table.html'), name='entry-table'), url( r'^entry/(?P<pk>\d+)$', DetailView.as_view(model=Entry), name='detail-entry' ), # User generic class-based view # template_name='entry_detail.html' # use defaults url(r'^entry/view/(?P<slug>.+)', EntryView.as_view(), name='view-entry'), url(r'^entry/create/$', EntryCreate.as_view(), name='create-entry'), url(r'^entry/generate/(?P<title>.+)', login_required(Generate.as_view()), name='generate-entry'), url(r'^entry/update/(?P<pk>\d+)', login_required(EntryUpdate.as_view()), name='update-entry'), url(r'^entry/update/(?P<slug>.+)', login_required(EntryUpdate.as_view()), name='update-entry'), url(r'^entry/delete/(?P<pk>\d+)', login_required(EntryDelete.as_view()), name='delete-entry'), url(r'^entry/feed/$', EntryFeed(), name='data-entry-feed'), url(r'^entry/(?P<slug>.+)', EntryView.as_view(), name='detail-entry'), # Alternative detail entry accepting slug. url(r'^hierarchy/list/$', HierarchyList.as_view(), name='list-hierarchy'),