Opensift is a great service for placing Django applications in the internet. To create account and web application, do next steps: Register an account (it's really easy :)) Create first application After you push button "Create application", service will prorpose you choosing for a web programming cartridge. Type Django and click on Django cartrige below. Then you will need to specify application name and domain name. Note: domain name is specified only while creating first application. For all further applications saved domain name will be used. Add cartridge to application After finishing process of application creating you will h...
Published ago by AnaPana

1) Show all ssh-keys: $ rhc sshkey list 2) Show information about domain and applications: $ rhc domain show 3) Connecting to server via ssh: $ ssh 4) Add ssh-key to account: $ rhc setup 5) Change account of openshift: $ vi ~/.openshift/express.conf Change variable default_rhlogin to your new login and save changes. Run $ rhc setup
Published ago by AnaPana

This article assumes that you have already rhc client installed on your local machine. If it's not, you can read about it here. 1. Adding crontab cartridge to you application Login into openshift and choose your application. Click on "Or, see the entire list of cartridges you can add" link and add Cron cartridge. 2. Creating folder for backups on server Run command  $ rhc domain show and find Git URL line, e.g.: Git URL: ssh:// Use only inner part of URL for ssh connection and type: $ ssh $ mkdir $OPENSHIFT_DATA...
Published ago by AnaPana

The most simpliest way to copy files from openshift server is via ssh connection. You need to get url of your application, then type: $ rhc domain show and copy url from "Git URL" line like Use URL of your application and type the following: $ scp\ /var/lib/openshift/52jldfk5g6fu7ig8958fh0227/app-root/data/some_file /some/local/directory
Published ago by AnaPana

Let's assume that we already have working application on OpenShift (available on url, even it is empty. And we've bought domain name for it (let it be ""). In this article I will describe how to set up domain mail on service and configure domain itself. 1. Create of CNAME record The main problem is to choose and use right record type for mail. More info about it here. As OpenShift doesn't support records of A-type (but at least one record of this type is required for domain), this simple step became a little quest. First of all we need to create CNAME record for subdomain "www" and set the value. Here is exampl...
Published ago by andrusha

Hello everyone! Today I was trying to add captcha field to my form and faced with little problem with PIL. By default it doesn't support a lot of needed libraries! I've got many useful info from here and here. With this docu I was afraid that I couldn't setup PIL correctly on my host mashine on Openshift. But result was successful. So I'd like to share with you my experience. First af all we need to create for PIL all required symlinks. For 32-bit Ubuntu: sudo apt-get install libjpeg62 libjpeg-dev libfreetype6 libfreetype6-dev zlib1g-dev ln -s /usr/lib/i386-linux-gnu/ /usr/lib/ ln -s /usr/lib/i386-linux-gnu/ /usr/lib/ ln -s /usr/lib...
Published ago by AnaPana

Hello everyone! A default cartridge for Django on Openshift has a very old version: 1.4. To fix it, the file "" can only be modified. Navigate to your root project directory and find Add required packages or change their versions: # #!/usr/bin/env python from setuptools import setup setup( name='my-app', version='1.0', description='OpenShift App', author='Anastasia Panchenko', author_email='', url='', install_requires=['Django>=1.6'], # change version here from 1.4 to 1.6 ) ...
Published ago by AnaPana

There were few changes in application structure on Openshift after its last release ( Because of this I had some troubles with creating new Django application. Here I will describe steps for creating Django 1.7 application using Python 2.7 cartridge on Openshift. 1. Create application There are two options for creating application on Openshift: using command line tools  using GUI  Both of these are described here 2. Clone application to development machine Create empty Git repository on your machine: mkdir ...
Published ago by AnaPana

Web development
Review Linux
Provisioning CVS
Windows AWS
Continuous Integration
NoSql Logging Web Servers FileSystems Scala
accurev ansible apach2 apache api application approaches architecture archivation argparse arguments artifactory automation awk aws backup bash batch-scripting beaver block build built-in caching call captcha cartridge case certificates cgi chain client cloud cloudformation cluster cmd coding collections command-line commands compression conditionals conversion convert cookbook copy counter cron crud css cut cygwin daemon datatype date dd debpackage decorator delattr deploy deque dict distributed-file-systems django DNS domain driver dropbox dump elasticcache elasticsearch encryption exit ext4 extra-tags failover file filename filters for form format freetds functions gerrit getattribute gid git globals glusterfs hardware hook iam indexing inheritance init install job-interview jquery ldap linux list locals logging logs logstash lookup magicmethods mail main-menu metadata metalogger mongodb moosefs mount mssql multiplatform multithreading mysql netcat nginx nosql open-ssh openldap openshift os packaging parse partition path pattern patterns permissions pid pil pip pipe playbook pool post post-commit processes production provisioning proxy putty python python-mysql recursively redirection redis register replication repr restore return review rotation scala script search selenium server setattr settings setup shipper signals singleton slots snapshot socket splunk ssh ssh-key ssl storage str string style subprocess sugar super switch syntactic syntaxhighlighter systeminfo tail tar templatetags time tls tune2fs tuple ubuntu unicode unique unix unixodbc usage usecases uuid uwsgi variable vars version vi virtualenv volume web web-server windows with_items __getattr__