Verified Commit 5471dc7c authored by Jonathan Weth's avatar Jonathan Weth

Fix path of default.pdf

parent f67c4aa4
import os
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
......@@ -8,7 +8,7 @@ from django.shortcuts import render, redirect
from django.utils import timezone
from .models import Menu
from django.conf import settings
from .settings import BASE_DIR
from .forms import MenuUploadForm
......@@ -54,7 +54,7 @@ def return_pdf(filename):
def return_default_pdf():
"""Response the default PDF"""
return return_pdf(os.path.join(settings.BASE_DIR, "menu", "default.pdf"))
return return_pdf(os.path.join(BASE_DIR, "default.pdf"))
def show_current(request):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment