report problem 5

This commit is contained in:
rizwanisready
2024-06-05 19:54:40 +05:30
parent 59a9a5eb98
commit e6ca0c5c71
4 changed files with 4 additions and 4 deletions

View File

@@ -57,4 +57,4 @@ STATICFILES_DIRS = [BASE_DIR.joinpath("static")]
STRIPE_CHECKOUT_URL = "http://localhost:8000/subscriptions/stripe-subscription/"
STRIPE_FINAL_URL = "http://localhost:8000/subscriptions/create-checkout-session/"
LOGO_PATH = "/static/images"
LOGO_PATH = "static"

View File

@@ -83,4 +83,4 @@ STRIPE_FINAL_URL = (
"https://admin.goodtimesltd.co.uk/subscriptions/create-checkout-session/"
)
LOGO_PATH = "/var/www/goodtimes_prod/goodtimes/static/images"
LOGO_PATH = "/var/www/goodtimes_prod/goodtimes/static"

View File

@@ -83,4 +83,4 @@ STRIPE_FINAL_URL = (
"https://staging.goodtimesltd.co.uk/subscriptions/create-checkout-session/"
)
LOGO_PATH = "/var/www/goodtimes/static/images"
LOGO_PATH = "/var/www/goodtimes/static"

View File

@@ -160,7 +160,7 @@ def generate_event_report_pdf_three(user, report_data):
# Insert company logo
logo_path = settings.LOGO_PATH
print("logo_path: ", logo_path)
logo_path = os.path.join(str(logo_path), "icon.png") # Path to the logo
logo_path = os.path.join(str(logo_path), "images/icon.png") # Path to the logo
logo = Image(logo_path)
logo.drawWidth = 200 # Adjust the width as needed
logo.drawHeight = 300 # Adjust the height as needed