How to use the wagtailmedia.views.media function in wagtailmedia

To help you get started, we’ve selected a few wagtailmedia examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github torchbox / wagtailmedia / wagtailmedia / admin_urls.py View on Github external
from django.conf.urls import url

from wagtailmedia.views import chooser, media

urlpatterns = [
    url(r'^$', media.index, name='index'),
    url(r'^(\w+)/add/$', media.add, name='add'),
    url(r'^edit/(\d+)/$', media.edit, name='edit'),
    url(r'^delete/(\d+)/$', media.delete, name='delete'),

    url(r'^chooser/$', chooser.chooser, name='chooser'),
    url(r'^chooser/(\d+)/$', chooser.media_chosen, name='media_chosen'),
    url(r'^usage/(\d+)/$', media.usage, name='media_usage'),
]
github torchbox / wagtailmedia / wagtailmedia / admin_urls.py View on Github external
from django.conf.urls import url

from wagtailmedia.views import chooser, media

urlpatterns = [
    url(r'^$', media.index, name='index'),
    url(r'^(\w+)/add/$', media.add, name='add'),
    url(r'^edit/(\d+)/$', media.edit, name='edit'),
    url(r'^delete/(\d+)/$', media.delete, name='delete'),

    url(r'^chooser/$', chooser.chooser, name='chooser'),
    url(r'^chooser/(\d+)/$', chooser.media_chosen, name='media_chosen'),
    url(r'^usage/(\d+)/$', media.usage, name='media_usage'),
]