Ejemplo n.º 1
0
urlpatterns = [
    re_path(
        r"^api/",
        include([
            re_path(
                r"^auth/",
                include(('rest_framework.urls', 'rest_framework'),
                        namespace="rest_framework")),
            re_path(r"^search/autocomplete/",
                    SearchAutoCompleteView.as_view(),
                    name="autocomplete"),
            re_path(r"^search/", SearchView.as_view(), name="search"),
            re_path(
                r"^statistics/", StatisticsView.as_view(), name="statistics"),
            re_path(r"^documents/post_document/",
                    PostDocumentView.as_view(),
                    name="post_document"),
            re_path(r"^documents/bulk_edit/",
                    BulkEditView.as_view(),
                    name="bulk_edit"),
            re_path(r"^documents/selection_data/",
                    SelectionDataView.as_view(),
                    name="selection_data"),
            re_path(r"^documents/bulk_download/",
                    BulkDownloadView.as_view(),
                    name="bulk_download"),
            path('token/', views.obtain_auth_token)
        ] + api_router.urls)),
    re_path(r"^favicon.ico$", FaviconView.as_view(), name="favicon"),
    re_path(r"admin/", admin.site.urls),
    re_path(
Ejemplo n.º 2
0
                include(('rest_framework.urls', 'rest_framework'),
                        namespace="rest_framework")),

        re_path(r"^search/autocomplete/",
                SearchAutoCompleteView.as_view(),
                name="autocomplete"),

        re_path(r"^search/",
                SearchView.as_view(),
                name="search"),

        re_path(r"^statistics/",
                StatisticsView.as_view(),
                name="statistics"),

        re_path(r"^documents/post_document/", PostDocumentView.as_view(),
                name="post_document"),

        re_path(r"^documents/bulk_edit/", BulkEditView.as_view(),
                name="bulk_edit"),

        re_path(r"^documents/selection_data/", SelectionDataView.as_view(),
                name="selection_data"),

        path('token/', views.obtain_auth_token)

    ] + api_router.urls)),

    re_path(r"^paperless/favicon.ico$", FaviconView.as_view(), name="favicon"),

    re_path(r"paperless/admin/", admin.site.urls),