test page
This commit is contained in:
parent
b558ba55b4
commit
315b4521b6
@ -0,0 +1 @@
|
||||
{{ test }}
|
@ -27,6 +27,7 @@ urlpatterns = [
|
||||
path('shopping/', views.shopping_list, name='view_shopping'),
|
||||
path('settings/', views.user_settings, name='view_settings'),
|
||||
path('history/', views.history, name='view_history'),
|
||||
path('test/', views.test, name='view_test'),
|
||||
|
||||
path('import/', import_export.import_recipe, name='view_import'),
|
||||
path('export/', import_export.export_recipe, name='view_export'),
|
||||
|
@ -308,3 +308,10 @@ def markdown_info(request):
|
||||
@group_required('guest')
|
||||
def api_info(request):
|
||||
return render(request, 'api_info.html', {})
|
||||
|
||||
|
||||
def test(request):
|
||||
if not settings.DEBUG:
|
||||
return HttpResponseRedirect(reverse('index'))
|
||||
|
||||
return render(request, 'test.html', {'test': None})
|
||||
|
Loading…
Reference in New Issue
Block a user