display of external recipes

This commit is contained in:
vabene1111
2021-01-13 02:16:16 +01:00
parent 1bb412e007
commit bb43ed203a
9 changed files with 76 additions and 18 deletions

View File

@ -32,12 +32,8 @@ urlpatterns = [
JavaScriptCatalog.as_view(domain='django'),
name='javascript-catalog'
),
url(r'^jsreverse.json$', reverse_views.urls_js, name='js_reverse'),
]
if settings.GUNICORN_MEDIA or settings.DEBUG:
urlpatterns += url(
r'^media/(?P<path>.*)$',
serve,
{'document_root': settings.MEDIA_ROOT}
),
urlpatterns += url(r'^media/(?P<path>.*)$', serve, {'document_root': settings.MEDIA_ROOT}),
urlpatterns += url(r'^jsreverse.json$', reverse_views.urls_js, name='js_reverse'),