DZone
Web Dev Zone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
  • Refcardz
  • Trend Reports
  • Webinars
  • Zones
  • |
    • Agile
    • AI
    • Big Data
    • Cloud
    • Database
    • DevOps
    • Integration
    • IoT
    • Java
    • Microservices
    • Open Source
    • Performance
    • Security
    • Web Dev
DZone > Web Dev Zone > Installing DjangoCMS on Heroku in 13 Easy Steps

Installing DjangoCMS on Heroku in 13 Easy Steps

Ken Cochrane user avatar by
Ken Cochrane
·
Feb. 14, 12 · Web Dev Zone · Interview
Like (0)
Save
Tweet
7.85K Views

Join the DZone community and get the full member experience.

Join For Free

Do 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.

  1. Create a place to store your project
    $ mkdir -p ~/projects
    
  2. Go into the projects directory
    $ cd ~/projects
  3. Clone git repo from github, requires git client.
    $ git clone git://github.com/kencochrane/django-cms-heroku.git
  4. Go into the new project directory
    $ cd django-cms-heroku
  5. Creating the virtualenv (using virtualenvwrapper, virtualenv, and pip)
    $ mkvirtualenv --no-site-packages --distribute django-cms-heroku
  6. Sign-Up for a Heroku account. https://api.heroku.com/signup

  7. Install the Heroku client. http://devcenter.heroku.com/articles/quickstart

  8. 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
  9. Create your heroku application
    $ heroku create --stack cedar
  10. Push your code into heroku
    $ git push heroku master
  11. Sync your database and create your admin account.
    $ heroku run python mycms/manage.py syncdb --all
  12. Run your database migrations.
    $ heroku run python mycms/manage.py migrate --fake
  13. 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

  • http://devcenter.heroku.com/categories/platform-basics
  • https://www.django-cms.org/en/documentation/


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/

 

Git application Directory GitHub Database Template Debug (command) Testing

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • Getting Started With RSocket Kotlin
  • Data Statistics and Analysis With Java and Python
  • Vaadin Apps as Native Executables Using Quarkus Native
  • Monolith vs Microservices Architecture: To Split or Not to Split?

Comments

Web Dev Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • MVB Program
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends:

DZone.com is powered by 

AnswerHub logo