DZone
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
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones AWS Cloud
by AWS Developer Relations
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones
AWS Cloud
by AWS Developer Relations
The Latest "Software Integration: The Intersection of APIs, Microservices, and Cloud-Based Systems" Trend Report
Get the report
  1. DZone
  2. Testing, Deployment, and Maintenance
  3. Deployment
  4. 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 · Interview
Like (0)
Save
Tweet
Share
8.02K 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

  • What To Know Before Implementing IIoT
  • Benefits and Challenges of Multi-Cloud Integration
  • Keep Your Application Secrets Secret
  • 4 Best dApp Frameworks for First-Time Ethereum Developers

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • 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: