Skip to content

Commit

Permalink
corrects django.utils.simplejson import error for Django>=1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
LGD-Fr committed Aug 21, 2015
1 parent 308ee4b commit fa4b12f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion paiji2_weather/templatetags/weather_fetcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
import socket
from datetime import date

import django.utils.simplejson as json
try:
import django.utils.simplejson as json
except:
import simplejson as json


class WeatherFetcher(object):
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
Django>=1.6
simplejson

0 comments on commit fa4b12f

Please sign in to comment.