Skip to content

Commit

Permalink
Fix docs build
Browse files Browse the repository at this point in the history
  • Loading branch information
yakky committed Oct 11, 2015
1 parent 3d466d4 commit e4706c9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions djangocms_installer/share/starting_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,13 @@
import json
from distutils.version import LooseVersion

import django
from django.conf import settings
from django.contrib.auth.models import User
from django.utils.translation import ugettext_lazy as _


def create_pages():
from cms.models import Placeholder
from cms.api import create_page, add_plugin, publish_page
from django.conf import settings
from django.contrib.auth.models import User
from django.utils.translation import ugettext_lazy as _

placeholder = {}

Expand Down Expand Up @@ -58,6 +56,8 @@ def create_pages():
publish_page(page, User.objects.all()[0])

if __name__ == '__main__':
import django

if LooseVersion(django.get_version()) >= LooseVersion('1.7'):
django.setup()
create_pages()
4 changes: 2 additions & 2 deletions djangocms_installer/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ def query_yes_no(question, default=None): # pragma: no cover
:param question: A string that is presented to the user.
:param default: The presumed answer if the user just hits <Enter>.
It must be "yes" (the default), "no" or None (meaning
an answer is required of the user).
It must be "yes" (the default), "no" or None (meaning
an answer is required of the user).
The "answer" return value is one of "yes" or "no".
Expand Down

0 comments on commit e4706c9

Please sign in to comment.