diff options
Diffstat (limited to 'tbc/views.py')
-rw-r--r-- | tbc/views.py | 3 |
1 files changed, 2 insertions, 1 deletions
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) |