GithubHelp home page GithubHelp logo

django-cms-openshift's Introduction

DjangoCMS on OpenShift Express

This git repository helps you get up and running quickly w/ a Django CMS installation on OpenShift Express. The Django project name used in this repo is 'mycms' but you can feel free to change it. Right now the backend is mysql.

When you push this application up for the first time, the mysql database is created, synced and migrated. It will then check to see if you have a django admin user, if not it will create one and give it a default password. You should immediately login to the django admin and change the password.

This repo was inspired by https://github.com/openshift/django-example and http://blog.ianweller.org/2011/05/12/openshift-express-first-thoughts/ Check them out, they were very helpful to me.

For more details, I have written a full blog post covering all of these steps in more detail at http://kencochrane.net/blog/2012/01/installing-django-application-on-openshift/

Running on OpenShift

Create an account at http://openshift.redhat.com/

install the client (You need git installed first.) https://openshift.redhat.com/app/express#mac Here are my steps for Mac OSX

sudo gem install json_pure
sudo gem install rhc

Create a domain. replace $mydoman and $loginemail with your own domain and the login email you used when creating an account.

rhc-create-domain -n $mydomain -l $loginemail

Create a wsgi-3.2 application

rhc-create-app -a blog -t wsgi-3.2

Add mysql to your app.

rhc-ctl-app -a blog -e add-mysql-5.1

Add phpmyadmin to help you manage your database.

rhc-ctl-app -a blog -e add-phpmyadmin-3.4

Add this upstream repo from github

cd blog
git remote add upstream -m master git://github.com/kencochrane/django-cms-openshift.git
git pull -s recursive -X theirs upstream master

Then push the repo upstream

git push

That's it, you can now checkout your application at (default admin account is admin/):

http://blog-$yournamespace.rhcloud.com

django-cms-openshift's People

Contributors

kencochrane avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.