title: Openshift + django: 503 Service Unavailable + project root
body: <p>I'm trying to set up openshift to publish my django project.
  I created a scalable python3.3 app with django preinstalled and I added postgres9.2 cartridge.</p>
  
  <p>I found the dirs structure quite complicated but in the end I noticed that the default example project was located under apps-root/runtime/repo/wsgi/openshift/ so I moved all files from this directory to a folder named 'backup' and I pasted here my project.</p>
  
  <p>Now when I visit my site I get:</p>
  
  <pre><code>503 Service Unavailable
  No server is available to handle this request.
  </code></pre>
  
  <p>I read that this can be due to HAproxy. I tried to restart my app through Openshift Online Web Interface but I still get the same error.</p>
  
  <p>So:</p>
  
  <p>1) How can I solve this issue?</p>
  
  <p>2) How can I change the root folder of my project from apps-root/runtime/repo/wsgi/openshift/ to the root of my git repo so that I don't have unwanted folder (i.e. /wsgi/openshift/) in my local and bitbucket repo?</p>
  
  <p>UPDATE:
  looking at my logs I get:</p>
  
  <pre><code>==&gt; python/logs/appserver.log &lt;==
      server = server_class((host, port), handler_class)
  File "/opt/rh/python33/root/usr/lib64/python3.3/socketserver.py", line 430, in __init__
      self.server_bind()
  File "/opt/rh/python33/root/usr/lib64/python3.3/wsgiref/simple_server.py", line 50, in server_bind
      HTTPServer.server_bind(self)
  File "/opt/rh/python33/root/usr/lib64/python3.3/http/server.py", line 135, in server_bind
      socketserver.TCPServer.server_bind(self)
  File "/opt/rh/python33/root/usr/lib64/python3.3/socketserver.py", line 441, in server_bind
      self.socket.bind(self.server_address)
  OSError: [Errno 98] Address already in use
  </code></pre>
  
  <p>If I visit HAProxy status page in Express table "Server Status" is DOWN both in "local-gear" and "backend" rows.</p>