How to host Django 1.4 with Python 2.7 on OpenShift DIY

463 views
Skip to first unread message

surya

unread,
Aug 12, 2012, 7:54:45 AM8/12/12
to django...@googlegroups.com
I am really fed up with tutorials on web telling how to configure Django & Python 2.7 on OpenShift DIY.

So, can write a detailed step-by-step procedure on how to setup Django 1.4 with Python 2.7 on OpenShift using VirtualEnv??

Thanks a lot!!

Mario Lacunza

unread,
Aug 12, 2012, 10:03:42 AM8/12/12
to django...@googlegroups.com

Uhmm... Is not better ask the same to openshift support?

Mario Lacunza
Enviado desde mi Motorola Atrix2

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/gM7OFF1Bx_kJ.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

Surya Kasturi

unread,
Aug 12, 2012, 11:48:34 AM8/12/12
to django...@googlegroups.com
Haven't got any answer! So, I thought someone from Django users would be using it and might help.

Cal Leeming [Simplicity Media Ltd]

unread,
Aug 12, 2012, 1:13:46 PM8/12/12
to django...@googlegroups.com
Surya,

Your original question does not really explain what problem you are having.

From what I can tell, you have read tutorials on the web that explain how to set up Django on OpenShift, but you have not explained what is wrong with them, nor what specific problem you are having.

You'll need to explain in more detail the exact problem you are having before anyone will be able to help you with this.

Cal

surya

unread,
Aug 12, 2012, 1:56:41 PM8/12/12
to django...@googlegroups.com
Hi Cal,

Actually, I have followed this tutorial for deploying a basic Django app using Python 2.7 on Open Shift.

So, when I pushed the repo, the website showed me..

Service Temporarily Unavailable

The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.


Apache/2.2.15 (Red Hat) Server at appName-userID.rhcloud.com Port 80

Cal Leeming [Simplicity Media Ltd]

unread,
Aug 12, 2012, 2:10:28 PM8/12/12
to django...@googlegroups.com
You can't blindly follow a deployment tutorial and expect to not have to get your hands dirty - especially when it's not even an official tutorial ;)

First off - you need to find the error logs for your application and/or web server, and/or determine where the stack is breaking

Cal

To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/kCd8atMMgDwJ.

Cal Leeming [Simplicity Media Ltd]

unread,
Aug 12, 2012, 2:11:48 PM8/12/12
to django...@googlegroups.com
Sorry - hit send too fast.

Once you've found the logs, you can then have a look around on Google for what the errors mean.. if you get stuck, you can send the exact error messages into the mailing list to see if anyone else knows what it means.

Marcin Tustin

unread,
Aug 12, 2012, 2:33:22 PM8/12/12
to django...@googlegroups.com
I thought the point of a tutorial was that if you followed it blindly, and to the letter, it will work, and then you can pull it apart afterwards.
Marcin Tustin
Tel: 07773 787 105

Cal Leeming [Simplicity Media Ltd]

unread,
Aug 12, 2012, 4:04:52 PM8/12/12
to django...@googlegroups.com
It's more of a 'YMMV' thing - hence the "hands dirty" comment.

Pengfei Xue

unread,
Aug 13, 2012, 12:07:51 AM8/13/12
to django...@googlegroups.com

-- 
Sincerely,
Pengfei Xue





已使用 Sparrow

已使用 Sparrow
--

surya

unread,
Aug 13, 2012, 7:37:49 AM8/13/12
to django...@googlegroups.com
Hi Pengfei,

Thanks for your post. I figured out the problem to some extent. uwsgi 1.2.4 current version, is having some security bugs. So, I had to revert back to 1.2.3.

I followed this tutorial

However, I have some other problems with Jenkins!!

This is the following error Jenkins Console output is showing:

So, can you help me fixing it!!

Started by user Jenkins System Builder
Building remotely on pingbldr in workspace pingbldr/ci/jenkins/workspace/ping-build
Checkout:pingmee-build / pingmeebldr/ci/jenkins/workspace/pingmee-build - hudson.remoting.Channel@b45831:pingbldr
Using strategy: Default
Checkout:pingmee-build / pingbldr/ci/jenkins/workspace/pingmee-build - hun.remoting.Locnel@3976
Cloning the remote Git repository
Cloning repository origin
Fetching upstream changes from MY SSH
Seen branch in repository origin/HEAD
Seen branch in repository origin/master
Commencing build of Revision (EDIT ***) (origin/HEAD, origin/master)
Checking out Revision (EDIT ****) (origin/HEAD, origin/master)
No change to record in branch origin/HEAD
No change to record in branch origin/master
[pingmee-build] $ /bin/sh -xe /tmp/huon62.sh
+ alias 'rsync=rsync --delete-after -az -e '\''/usr/libexec/stickshift/cartridges/jenkins-1.4/info/bin/git_ssh_wrapper.sh'\'''
+ . ci_build.sh
++ set +x
Running .openshift/action_hooks/pre_build
Running .openshift/action_hooks/build
/var/lib/stickshift/688174c010/app-root/runtime/repo/.openshift/action_hooks/build: line 7: /var/lib/stickshift/680e98b8570/pingmeebldr/runtime//bin/pip: No such file or directory
Build step 'Execute shell' marked build as failure
Archiving artifacts
Finished: FAILURE
* code is edited in some areas for security reasons. 

Cal Leeming [Simplicity Media Ltd]

unread,
Aug 13, 2012, 7:40:04 AM8/13/12
to django...@googlegroups.com
/var/lib/stickshift/688174c010/app-root/runtime/repo/.openshift/action_hooks/build: line 7: /var/lib/stickshift/680e98b8570/pingmeebldr/runtime//bin/pip: No such file or directory

Tbh, I think you need to speak with OpenShift....

To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/RkGxjFu5DWkJ.
Reply all
Reply to author
Forward
0 new messages