Difference between revisions of "Mezzanine"
From Jon's Wiki
(New page: To get started: sudo apt-get install python-virtualenv python-dev Then: virtualenv mezzanine-projects cd mezzanine-projects source bin/activate Now we have an isolated Python envir...) |
m |
||
Line 19: | Line 19: | ||
python manage.py syncdb | python manage.py syncdb | ||
python manage.py runserver | python manage.py runserver | ||
− | xdg-open 'http://localhost:8000/' | + | <nowiki>xdg-open 'http://localhost:8000/'</nowiki> |
Mezzanine comes packed with a bunch of useful commands, like importing our Wordpress blog, for instance: | Mezzanine comes packed with a bunch of useful commands, like importing our Wordpress blog, for instance: | ||
python manage.py import_wordpress -u wordpress-export.xml -m username | python manage.py import_wordpress -u wordpress-export.xml -m username |
Revision as of 12:40, 13 November 2012
To get started:
sudo apt-get install python-virtualenv python-dev
Then:
virtualenv mezzanine-projects cd mezzanine-projects source bin/activate
Now we have an isolated Python environment (check out your prompt!), where we can install all sorts of stuff without contaminating the main system Python environment, and without needing sudo:
pip install mezzanine feedburner html5lib django-haystack pyelasticsearch
This should install Mezzanine and its various dependencies. Now we can create a project:
mezzanine-project mysite cd mysite python manage.py syncdb python manage.py runserver xdg-open 'http://localhost:8000/'
Mezzanine comes packed with a bunch of useful commands, like importing our Wordpress blog, for instance:
python manage.py import_wordpress -u wordpress-export.xml -m username