# Django URLs in JS url(r"^jsreverse/$", urls_js, name="js_reverse"), # Admin pages url(settings.ADMIN_URL, admin.site.urls), url(r"^django-rq/", include("django_rq.urls")), # API url(r'^swagger(?P<format>\.json|\.yaml)$', schema_view.without_ui(cache_timeout=0), name='schema-json'), url(r'^api/swagger/$', schema_view.with_ui('swagger', cache_timeout=0), name='schema-swagger-ui'), url(r'^api/$', schema_view.with_ui('redoc', cache_timeout=0), name='schema-redoc'), url(r"^api/", include((router.urls, "api"))), url(r"^api/image-upload/$", ImageUploadView.as_view(), name="api-image-upload"), url(r"^api/streams/", include("socialhome.streams.urls.api", namespace="api-streams")), url(r"^api-auth/", include("rest_framework.urls", namespace="rest_framework")), url(r"^api-token-auth/", ObtainSocialhomeAuthToken.as_view(), name="api-token-auth"), # Account url(r"^account/", include("dynamic_preferences.urls")), # Search url(r"^search/", include("socialhome.search.urls", namespace="search")), # Policy docs path( 'privacy/', PolicyDocumentView.as_view(), {'document_type': PolicyDocumentType.PRIVACY_POLICY}, name="privacy-policy" ), path(
# Admin pages url(settings.ADMIN_URL, admin.site.urls), url(r"^django-rq/", include("django_rq.urls")), # API url(r"^api/$", schema_view, name="api-docs"), url(r"^api/", include((router.urls, "api"))), url(r"^api/image-upload/$", ImageUploadView.as_view(), name="api-image-upload"), url(r"^api/streams/", include("socialhome.streams.urls.api", namespace="api-streams")), url(r"^api-auth/", include("rest_framework.urls", namespace="rest_framework")), url(r"^api-token-auth/", ObtainSocialhomeAuthToken.as_view(), name="api-token-auth"), # Account url(r"^account/", include("dynamic_preferences.urls")), # Search url(r"^search/", include("socialhome.search.urls", namespace="search")), ] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) if settings.DEBUG: # This allows the error pages to be debugged during development, just visit # these url in browser to see how these error pages look like. urlpatterns += [ url(r"^400/$", default_views.bad_request,