From a303d1056df6712817c0d22f72c105311ee79a06 Mon Sep 17 00:00:00 2001 From: rizwanisready Date: Wed, 5 Jun 2024 19:39:23 +0530 Subject: [PATCH] report problem 2 --- goodtimes/settings/staging.py | 4 +++- manage_events/report.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/goodtimes/settings/staging.py b/goodtimes/settings/staging.py index 30b9c16..0ecc8f2 100644 --- a/goodtimes/settings/staging.py +++ b/goodtimes/settings/staging.py @@ -73,7 +73,8 @@ MEDIA_ROOT = os.path.join(BASE_DIR, "media") STATIC_URL = "/static/" -STATICFILES_DIRS = [BASE_DIR.joinpath("static")] +# STATICFILES_DIRS = [BASE_DIR.joinpath("static")] +STATICFILES_DIRS = os.path.join(BASE_DIR, "static") STRIPE_CHECKOUT_URL = ( "https://staging.goodtimesltd.co.uk/subscriptions/stripe-subscription/" @@ -81,3 +82,4 @@ STRIPE_CHECKOUT_URL = ( STRIPE_FINAL_URL = ( "https://staging.goodtimesltd.co.uk/subscriptions/create-checkout-session/" ) + diff --git a/manage_events/report.py b/manage_events/report.py index afc893a..0ebce15 100644 --- a/manage_events/report.py +++ b/manage_events/report.py @@ -158,7 +158,7 @@ def generate_event_report_pdf_three(user, report_data): ) # Insert company logo - logo_path = os.path.join("static", "images", "icon.png") # Path to the logo + logo_path = os.path.join("static/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