差分
このページの2つのバージョン間の差分を表示します。
| 次のリビジョン | 前のリビジョン | ||
| python:mezzanine [2017/03/10 14:57] – 作成 ともやん | python:mezzanine [2019/08/19 07:03] (現在) – ともやん | ||
|---|---|---|---|
| 行 1: | 行 1: | ||
| ====== Mezzanine ====== | ====== 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/ | ||
| + | </ | ||
| + | <code python> | ||
| + | # -*- encoding: utf-8 -*- | ||
| + | |||
| + | # Domains for public site | ||
| + | ALLOWED_HOSTS = [' | ||
| + | |||
| + | LANGUAGE_CODE = ' | ||
| + | TIME_ZONE = ' | ||
| + | |||
| + | SITE_TITLE = ' | ||
| + | </ | ||
| + | |||
| + | ===== プロジェクトの起動 ===== | ||
| + | < | ||
| + | $ python manage.py runserver | ||
| + | </ | ||
| + | http:// | ||
| + | |||
| + | ===== テンプレートの修正 ===== | ||
| + | < | ||
| + | $ python manage.py collecttemplates | ||
| + | </ | ||