diff options
author | Trupti Rajesh Kini | 2016-11-18 11:50:50 +0530 |
---|---|---|
committer | GitHub | 2016-11-18 11:50:50 +0530 |
commit | 678088b5871bac0152d343bfc9ef9d9599b8553e (patch) | |
tree | 52ef694ea604d29d05de624bcfe9a2725b14ec2d /tbc_error_page | |
parent | c5c3c7b6c4794d960ead6137d251cd9b8f423aa4 (diff) | |
parent | 19793cdf2025bb2a4560a0718ed5d6bce175e7b8 (diff) | |
download | Python-TBC-Interface-678088b5871bac0152d343bfc9ef9d9599b8553e.tar.gz Python-TBC-Interface-678088b5871bac0152d343bfc9ef9d9599b8553e.tar.bz2 Python-TBC-Interface-678088b5871bac0152d343bfc9ef9d9599b8553e.zip |
Merge pull request #3 from kinitrupti/hitcount-updated
Hitcount updated
Diffstat (limited to 'tbc_error_page')
-rw-r--r-- | tbc_error_page/models.py | 4 | ||||
-rw-r--r-- | tbc_error_page/views.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tbc_error_page/models.py b/tbc_error_page/models.py index 82c4da6..3f9b820 100644 --- a/tbc_error_page/models.py +++ b/tbc_error_page/models.py @@ -1,12 +1,12 @@ from django.db import models import os -import cPickle +import pickle def get_json_from_file(filename): path = os.path.join(os.path.dirname(os.path.abspath(__file__)), filename) if os.path.isfile(path): with open(path) as json_dump: - json_data =cPickle.load(json_dump) + json_data =pickle.load(json_dump) return json_data else: return False diff --git a/tbc_error_page/views.py b/tbc_error_page/views.py index d788afa..b165f1c 100644 --- a/tbc_error_page/views.py +++ b/tbc_error_page/views.py @@ -1,7 +1,7 @@ from django.shortcuts import render_to_response from .models import Error, Broken, get_json_from_file from django.contrib.auth.decorators import login_required -from django.core.context_processors import csrf +from django.template.context_processors import csrf from django.http import Http404 from tbc.views import is_reviewer |