diff options
-rw-r--r-- | tbc/templates/tbc/book-review-details.html | 4 | ||||
-rw-r--r-- | tbc/views.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tbc/templates/tbc/book-review-details.html b/tbc/templates/tbc/book-review-details.html index 704441f..5ea3f5b 100644 --- a/tbc/templates/tbc/book-review-details.html +++ b/tbc/templates/tbc/book-review-details.html @@ -13,7 +13,7 @@ <hr> <ol> {% for chapter in chapters %} - <li><a href="https://www.nbviewer.ipython.org/url/fosseeapps.in{% static 'uploads/' %}{{ chapter.notebook }}">{{ chapter.name }}</a> + <li><a href="https://nbviewer.ipython.org/url/dev.fossee.in{% static 'uploads/' %}{{ chapter.notebook }}">{{ chapter.name }}</a> {% endfor %} </ol> <hr> @@ -28,7 +28,7 @@ </form> <table> <tr><td>Author: <td>{{ book.author }} -<tr><td>Publisher: <td>{{ book.publisher }} +<tr><td>Publisher: <td>{{ book.publisher_place }} <tr><td>ISBN: <td>{{ book.isbn }} <tr><td>Contributor: <td>{{ book.contributor.user.first_name }} {{ book.contributor.user.last_name }} <tr><td>Email: <td>{{ book.contributor.user.email }}<br> diff --git a/tbc/views.py b/tbc/views.py index 1e5d0cf..696b1e8 100644 --- a/tbc/views.py +++ b/tbc/views.py @@ -254,7 +254,7 @@ 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+"/static/uploads/" + file_path = file_path+"/uploads/" directory = file_path+book.contributor.user.first_name os.chmod(directory, 0777) os.chdir(directory) |