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

merge changes

parent e110dc07
No related branches found
No related tags found
1 merge request!16update requirements txt to include library for pdf creation, comment out...
...@@ -27,7 +27,6 @@ urlpatterns = [ ...@@ -27,7 +27,6 @@ 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')
path('pricing/', pricing, name='pricing'), path('pricing/', pricing, name='pricing'),
path('generate_pdf/', generate_pdf, name='generate_pdf') path('generate_pdf/', generate_pdf, name='generate_pdf')
......
...@@ -96,15 +96,3 @@ def generate_pdf(request): ...@@ -96,15 +96,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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment