From c8233db8fb984ea159d01b2a3335b19fe7a21cbd Mon Sep 17 00:00:00 2001
From: hardythe1
Date: Tue, 12 Nov 2013 11:44:03 +0530
Subject: editing category names in browse books
---
tbc/templates/tbc/browse-books.html | 2 +-
tbc/views.py | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/tbc/templates/tbc/browse-books.html b/tbc/templates/tbc/browse-books.html
index 0c6924d..8380982 100644
--- a/tbc/templates/tbc/browse-books.html
+++ b/tbc/templates/tbc/browse-books.html
@@ -18,7 +18,7 @@ function submitCategory()
-
+
diff --git a/tbc/views.py b/tbc/views.py
index 696b1e8..2a5b950 100644
--- a/tbc/views.py
+++ b/tbc/views.py
@@ -254,7 +254,8 @@ def ApproveBook(request, book_id=None):
file_path = os.path.abspath(os.path.dirname(__file__))
zip_path = "/".join(file_path.split("/")[1:-2])
zip_path = "/"+zip_path+"/Python-Textbook-Companions/"
- file_path = file_path+"/uploads/"
+ file_path = file_path+"/static/uploads/"
+ return HttpResponse(file_path)
directory = file_path+book.contributor.user.first_name
os.chmod(directory, 0777)
os.chdir(directory)
--
cgit