[Answer]-Django openshift import error

0👍

I didn’t know I have to reload config. So rhc app reload -a $your_app did the trick. And may be this line as well: sys.path.append(os.path.join(os.environ['OPENSHIFT_REPO_DIR'], 'wsgi')). Thanks bezidejni for help, pointing out enabling debug is useful as well 🙂

1👍

Read this blog post
http://appsembler.com/blog/django-deployment-using-openshift/

it has the best explanation of bringing up a django application on OpenShift

Leave a comment