Skip to content
Snippets Groups Projects
Commit 69a07aaf authored by Brody Wilton's avatar Brody Wilton
Browse files

merge changes

parent ef0c46c8
No related branches found
No related tags found
1 merge request!16update requirements txt to include library for pdf creation, comment out...
...@@ -28,6 +28,5 @@ urlpatterns = [ ...@@ -28,6 +28,5 @@ urlpatterns = [
path('pricay_policy/', privacy_policy, name='privacy_policy'), path('pricay_policy/', privacy_policy, name='privacy_policy'),
path('pricing/', pricing, name='pricing'), path('pricing/', pricing, name='pricing'),
path('uploading_file/', handling_music_file, name='uploading_file'), path('uploading_file/', handling_music_file, name='uploading_file'),
,
path('generate_pdf/', generate_pdf, name='generate_pdf') path('generate_pdf/', generate_pdf, name='generate_pdf')
] ]
...@@ -90,15 +90,3 @@ def generate_pdf(request): ...@@ -90,15 +90,3 @@ def generate_pdf(request):
return response return response
#For testing the receipts ONLY. TODO: delete when working
def generate_pdf(request):
response = HttpResponse(content_type='application/pdf')
response['Content-Disposition'] = 'attachment; filename="example.pdf"'
p = canvas.Canvas(response)
p.drawString(100, 800, "Hello, this is a PDF!")
p.showPage()
p.save()
return response
\ No newline at end of file
...@@ -33,3 +33,4 @@ soxr==0.3.7 ...@@ -33,3 +33,4 @@ soxr==0.3.7
threadpoolctl==3.3.0 threadpoolctl==3.3.0
typing_extensions==4.10.0 typing_extensions==4.10.0
urllib3==2.2.1 urllib3==2.2.1
reportlab==4.1.0
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment