diff options
author | hardythe1 | 2013-11-12 11:44:03 +0530 |
---|---|---|
committer | hardythe1 | 2013-11-12 11:44:03 +0530 |
commit | c8233db8fb984ea159d01b2a3335b19fe7a21cbd (patch) | |
tree | f944d462d5e97617edd6c0d5c0f219511875a805 /tbc | |
parent | 89e31c3fb3e8e8d0133038ebb4c64eda46f2ba37 (diff) | |
download | Python-TBC-Interface-c8233db8fb984ea159d01b2a3335b19fe7a21cbd.tar.gz Python-TBC-Interface-c8233db8fb984ea159d01b2a3335b19fe7a21cbd.tar.bz2 Python-TBC-Interface-c8233db8fb984ea159d01b2a3335b19fe7a21cbd.zip |
editing category names in browse books
Diffstat (limited to 'tbc')
-rw-r--r-- | tbc/templates/tbc/browse-books.html | 2 | ||||
-rw-r--r-- | 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() <option value="computer science">Computer Science</option> <option value="chemical engg">Chemical Engg</option> <option value="aerospace engg">Aerospace Engg</option> - <option value="electrical engg">Electrical Engg</option> + <option value="electrical engg">Electronics Engg</option> <option value="thermodynamics">Thermodynamics</option> <option value="mechanical engg">Mechanical Engg</option> <option value="mathematics">Mathematics</option> 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) |