2👍
I found this post this afternoon by somebody having the same problem. It looks like Openshift changed some things on us. I didn’t get the memo :(.
Read here:
Openshift March Blog post
@MSDOS, it is similar to your answer but I wanted to post the generic answer that is probably affecting most people.
For me, I just had to rename app.py (my old wsgi entry point) to wsgi.py and everything worked as it should. 🙂 Now I have to figure what they changed to the cron jobs 🙁
1👍
Solved by executing ‘rhc app force-stop’, then ‘rhc app start’. I don’t know what caused the problem, but force-stopping it killed the website, and it worked with the new code after starting it again.
- [Django]-Google App Engine w/ Django – InboundMailHandler appears to only work once
- [Django]-Django with django-nose: two identical settings files with different behavior in running test command
- [Django]-Retrieve related field's object in GET requests, otherwise use only ID of the object in POST, PUT, DELETE etc
- [Django]-Django post_save and south migrations
- [Django]-Django REST Framework – Custom Permissions not Evaluating
1👍
I think I solved the problem.
I was using an old django repository, based on https://github.com/openshift/openshift-community-cartridge-python-3.3/blob/master/template/app.py (the link is dead, I mentioned here just for information).
In these old community cartridges, there was a app.py
file that started CherryPy or httpd, but now the official django repository doesn’t have app.py anymore. (check https://github.com/openshift/django-example)
The app.py
doesn’t exist anymore because httpd
service was added automatically. That’s why we were having OSError: [Errno 98] Address already in use
.
Removing the app.py
from my repository solved the problem.
I was receiving error 500 because my Django application was having errors, not my Python cartridge. That’s why I wasn’t understanding what was happening. I did a find . -name *.log*
in my cartridge and read all logs.
Now my app is working. Good luck!
- [Django]-Another Cannot set values on a ManyToManyField which specifies an intermediary model
- [Django]-Change label of a form field Django