comparison core/management/commands/make_flatpage.py @ 587:7ed2101df789

Add a __future__ import for with for production server.
author Brian Neal <bgneal@gmail.com>
date Thu, 10 May 2012 20:26:57 -0500
parents ef4ef8c8ec8d
children
comparison
equal deleted inserted replaced
586:a7ef954298ea 587:7ed2101df789
1 """make_flatpage.py 1 """make_flatpage.py
2 2
3 A management command to update flatpage objects from restructured text files. 3 A management command to update flatpage objects from restructured text files.
4 4
5 """ 5 """
6 from __future__ import with_statement
6 import os.path 7 import os.path
7 8
8 import docutils.core 9 import docutils.core
9 from django.core.management.base import LabelCommand, CommandError 10 from django.core.management.base import LabelCommand, CommandError
10 from django.conf import settings 11 from django.conf import settings