Installing DjangoCMS on Heroku in 13 Easy Steps
Join the DZone community and get the full member experience.
Join For FreeDo you want to use Django-cms on Heroku but don't know where to
start? All you need to do is follow these 13 easy steps, and they will
get you on your way.
- Create a place to store your project
$ mkdir -p ~/projects
- Go into the projects directory
$ cd ~/projects
- Clone git repo from github, requires git client.
$ git clone git://github.com/kencochrane/django-cms-heroku.git
- Go into the new project directory
$ cd django-cms-heroku
- Creating the virtualenv (using virtualenvwrapper, virtualenv, and pip)
$ mkvirtualenv --no-site-packages --distribute django-cms-heroku
- Sign-Up for a Heroku account. https://api.heroku.com/signup
- Install the Heroku client. http://devcenter.heroku.com/articles/quickstart
- The first time you use the Heroku client you will need
to login using the same information you used when you signed up. Follow
the prompts, and it will finish your install.
$ heroku login
- Create your heroku application
$ heroku create --stack cedar
- Push your code into heroku
$ git push heroku master
- Sync your database and create your admin account.
$ heroku run python mycms/manage.py syncdb --all
- Run your database migrations.
$ heroku run python mycms/manage.py migrate --fake
- Open application in your browser and start using djangoCMS on heroku.
$ heroku open
Once you get comfortable with how things work, you could add more
plug-ins, create your own custom templates and then change your DEBUG
setting to False. So go ahead fork my project on github and get started.
After you make changes to your local project directory, you can test it on the server by running the git push command again.
For more info about Heroku and django-cms and what you can do with with it. check out their docs
Links:- Virtualenv : http://pypi.python.org/pypi/virtualenv
- pip : http://www.pip-installer.org/
- virtualenvwrapper : http://www.doughellmann.com/projects/virtualenvwrapper/
- git : http://git-scm.com/
Source: http://kencochrane.net/blog/2011/12/installing-djangocms-on-heroku-in-13-easy-steps/
Opinions expressed by DZone contributors are their own.
Comments