文書の過去の版を表示しています。
Mezzanine
インストール
$ pip install mezzanine
$ pip freeze appdirs==1.4.3 beautifulsoup4==4.5.3 bleach==1.4 chardet==2.3.0 Django==1.10.6 django-contrib-comments==1.8.0 filebrowser-safe==0.4.6 future==0.16.0 grappelli-safe==0.4.5 html5lib==1.0b3 Mezzanine==4.2.2 oauthlib==2.0.1 olefile==0.44 packaging==16.8 Pillow==4.0.0 pyparsing==2.2.0 pytz==2016.10 requests==2.13.0 requests-oauthlib==0.8.0 six==1.10.0 tzlocal==1.3 webencodings==0.5
bleach と html5lib が最新だと動作しない。
プロジェクトの作成
$ mezzanine-project django_cms $ cd django_cms $ python manage.py createdb --noinput $ python manage.py createsuperuser
プロジェクトの設定
$ vi django_cms/local_settings.py
# -*- encoding: utf-8 -*- # Domains for public site ALLOWED_HOSTS = ['localhost'] LANGUAGE_CODE = 'ja' TIME_ZONE = 'Asia/Tokyo' SITE_TITLE = 'サイトタイトル'
プロジェクトの起動
$ python manage.py runserver
http://localhost:8000/ または http://localhost:8000/admin/ にアクセスする。
テンプレートの修正
$ python manage.py collecttemplates