From 2f4915d0b2468da78fab2e31fe7ed7b8fcf7c000 Mon Sep 17 00:00:00 2001 From: hardythe1 Date: Tue, 7 Apr 2015 16:28:55 +0530 Subject: changed path for zip generation --- tbc/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tbc/views.py b/tbc/views.py index bf272ea..9a451e4 100755 --- a/tbc/views.py +++ b/tbc/views.py @@ -942,7 +942,7 @@ def generateZip(book_id): book = Book.objects.get(id=book_id) files_to_zip = [] file_path = os.path.abspath(os.path.dirname(__file__)) - file_path = file_path+"/static/uploads/" + file_path = file_path+"/static/Python-Textbook-Companions/" notebooks = Chapters.objects.filter(book=book) for notebook in notebooks: files_to_zip.append(file_path+str(notebook.notebook)) -- cgit