|
|
10 years ago | |
|---|---|---|
| .sti/bin | 10 years ago | |
| project | 10 years ago | |
| scripts | 10 years ago | |
| .gitignore | 10 years ago | |
| README.md | 10 years ago | |
| application-template.json | 10 years ago | |
| manage.py | 10 years ago | |
| requirements.txt | 10 years ago | |
This project is meant to be forked and used to quickly deploy a Django web application to an OpenShift cluster. It assumes you have access to an existing OpenShift installation.
You can use this as a starting point to build your own application.
(optional) Create and activate a virtualenv (you may want to use virtualenvwrapper).
Fork this repo and clone your fork:
git clone https://github.com/rhcarvalho/openshift-django-quickstart.git
Install dependencies:
pip install -r requirements.txt
If everything is alright, you should be able to start the Django development server:
./manage.py runserver
Open your browser and go to http://127.0.0.1:8000, you will be greeted with a welcome page.
This is a minimal Django 1.8 project. It was created with these steps:
pip freeze > requirements.txtdjango-admin startproject PROJECT_NAME .project/settings.py to configure SECRET_KEY, DATABASE and STATIC_ROOT entries../manage.py startapp openshift, to create the welcome page's appAdd your own code, commit and redeploy. hack (create app) & redeploy
Your OpenShift administrator should provide you ... Change the configuration to point to your PostgreSQL database server.
osc resize dc/web ...
see gunicorn logs