stuff working
This commit is contained in:
@ -19,6 +19,19 @@ def index(request):
|
||||
return render(request, 'index.html')
|
||||
|
||||
|
||||
@login_required
|
||||
def import_recipes(request):
|
||||
if request.method == "POST":
|
||||
form = ImportForm(request.POST)
|
||||
if form.is_valid():
|
||||
|
||||
return redirect('index')
|
||||
else:
|
||||
form = ImportForm()
|
||||
|
||||
return render(request, 'storage/import.html', {'form': form})
|
||||
|
||||
|
||||
@login_required
|
||||
def edit_recipe(request, recipe_id):
|
||||
if request.method == "POST":
|
||||
|
Reference in New Issue
Block a user