Mercurial > public > madeira
comparison news/management/commands/import_old_news.py @ 89:b7cdfdde3999
For Django 1.5: replace django's simplejson with json.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Tue, 27 Aug 2013 19:53:31 -0500 |
parents | e2868ad47a1e |
children |
comparison
equal
deleted
inserted
replaced
87:978a08c838d8 | 89:b7cdfdde3999 |
---|---|
2 import_old_news.py - For importing news stories from the older version of this | 2 import_old_news.py - For importing news stories from the older version of this |
3 website. | 3 website. |
4 | 4 |
5 """ | 5 """ |
6 import datetime | 6 import datetime |
7 import json | |
7 | 8 |
8 from django.conf import settings | 9 from django.conf import settings |
9 from django.core.management.base import LabelCommand | 10 from django.core.management.base import LabelCommand |
10 from django.utils import simplejson as json | |
11 from django.utils.html import linebreaks | 11 from django.utils.html import linebreaks |
12 import textile | 12 import textile |
13 | 13 |
14 from news.models import News | 14 from news.models import News |
15 | 15 |