Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/philipsahli/mezzanine_example
mezzanine_example
https://github.com/philipsahli/mezzanine_example
Last synced: about 2 months ago
JSON representation
mezzanine_example
- Host: GitHub
- URL: https://github.com/philipsahli/mezzanine_example
- Owner: philipsahli
- Created: 2014-02-15T16:35:05.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-09-23T18:58:28.000Z (over 10 years ago)
- Last Synced: 2024-04-17T09:03:16.738Z (9 months ago)
- Language: Python
- Size: 3.46 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
Philip's "mezzanine template"
============================This template is a good starting point for an Mezzanine_ based project.
Your modifications should go to the app `_site` or the module `envs`.The template is prepared for use with:
- S3 Storage
- django-golive_ for deployment
- django-debugtoolbar_
- django-extensions_
- django-nose
- Redis cacheCreate a project
--------------Create a project from the template with following command. In your activated virtualenv only Django version 1.6.2 must be installed
.. code:: bash
virtualenv --no-site-packages $HOME/virtualenvs/myenv
. $HOME/virtualenvs/myenv/bin/activate
pip install Django==1.6.5.. code:: bash
V=v`curl https://raw.githubusercontent.com/fatrix/mezzanine_example/master/VERSION` && tempdir=`mktemp -d -t tmp` && mpwd=`pwd` && wget https://api.github.com/repos/fatrix/mezzanine_example/tarball/$V -O $tempdir/mezzanine_example-$V.tgz && cd $tempdir && tar -zxf $tempdir/mezzanine_example-$V.tgz --strip-components=1 '*/project_template' && cd - && django-admin.py startproject --template=$tempdir/project_template testsite && echo rm -rf $tempdir
URL's
-----Put additionals urls to
`_site/urls.py`
Additional modules
------------------Your required python modules goes to
`_site/requirements.txt`
Overwrite templates
-------------------Custom templates and overwrites in
`_site/templates/..`
Settings
--------Settings are in the envs module. There are for every stage a module.
`envs/ENV_ID` (See django-golive_.)
Start runserver with the option --settings:
.. code:: bash
python manage.py runserver --settings=envs.local
.. _django-golive: https://github.com/fatrix/django-golive
.. _Mezzanine: http://mezzanine.jupo.org/
.. _hyperlink-name: http://sahli.net
.. _django-extensions: http://django-extensions.readthedocs.org/en/latest/
.. _django-debugtoolbar: http://django-debug-toolbar.readthedocs.org/en/1.0/Versions
--------
Master
~~~~~~
Mezzanine 3.0.9... and some more ...