daniel-acuna / reviewer_assignment

Reviewer assignment and scoring system based on topic models
http:/pr.scienceofscience.org
5 stars 4 forks source link

Make the system work with Django 1.8 #40

Closed daniel-acuna closed 9 years ago

daniel-acuna commented 9 years ago

It now seems to work only with Django 1.7

bluenex commented 9 years ago

Here is the error on my pc

TemplateDoesNotExist at /
base.html
Request Method: GET
Request URL:    http://localhost:8000/
Django Version: 1.8
Exception Type: TemplateDoesNotExist
Exception Value:    
base.html
Exception Location: /usr/local/lib/python2.7/site-packages/django/template/engine.py in find_template, line 146
Python Executable:  /usr/local/opt/python/bin/python2.7
Python Version: 2.7.9
Python Path:    
['/Users/tulakan/OneDrive/Projects/reviewer_assignment/reviewer_assignment_website',
 '/usr/local/lib/python2.7/site-packages/setuptools-15.0-py2.7.egg',
 '/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python27.zip',
 '/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7',
 '/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin',
 '/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac',
 '/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages',
 '/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk',
 '/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old',
 '/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload',
 '/usr/local/lib/python2.7/site-packages',
 '/Library/Python/2.7/site-packages',
 '/Users/tulakan/OneDrive/Projects/reviewer_assignment/reviewer_assignment_website']
Server time:    Mon, 27 Apr 2015 07:32:56 +0000
Template-loader postmortem

Django tried loading these templates, in this order:
Using loader django.template.loaders.filesystem.Loader:
Using loader django.template.loaders.app_directories.Loader:
/usr/local/lib/python2.7/site-packages/django/contrib/admin/templates/base.html (File does not exist)
/usr/local/lib/python2.7/site-packages/django/contrib/auth/templates/base.html (File does not exist)
/Users/tulakan/OneDrive/Projects/reviewer_assignment/reviewer_assignment_website/home/templates/base.html (File does not exist)
/Users/tulakan/OneDrive/Projects/reviewer_assignment/reviewer_assignment_website/review_assign/templates/base.html (File does not exist)
/Users/tulakan/OneDrive/Projects/reviewer_assignment/reviewer_assignment_website/review_scoring/templates/base.html (File does not exist)
/usr/local/lib/python2.7/site-packages/crispy_forms/templates/base.html (File does not exist)
/usr/local/lib/python2.7/site-packages/django_tables2/templates/base.html (File does not exist)
Error during template rendering

In template /Users/tulakan/OneDrive/Projects/reviewer_assignment/reviewer_assignment_website/home/templates/home/index.html, error at line 1
base.html
11    {% extends "base.html" %}
2   {% block page_title %}Automated reviewer-article assignment and manuscript scoring{% endblock %}
3   {% block content %}
4   {% load staticfiles %}
5   <style>
6       .carousel-inner img {
7         margin: auto;
8       }
9       .carousel-indicators li {
10        background-color: #555;
11      }
daniel-acuna commented 9 years ago

I was able to fix this problem by changing how templates dirs are loaded in settings.py, however django_table2 does not work very well with Django 1.8 and therefore I am closing this issue until version 1.0 of django_table2 gets pushed to PIP.