Issue while running Djangorestframework api on Ubuntu Server
<p>I have developed an api using djangorestframework. It uses selenium and firefox driver. It works completely fine on my localhost. But it gives WebDriverException when I try to run it on server.</p>

<p>Server and host both have the same environment, as mentioned below:</p>

<pre><code>Ubuntu - 14.04;
python - 2.7.6;
Django - 1.9.6;
djangorestframework - 3.3.3;
selenium - 2.53.2;
Mozilla firefox - 46.0.1;
bs4 - 0.0.1;
</code></pre>

<p><a href="https://i.stack.imgur.com/sjlTm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sjlTm.png" alt="enter image description here"></a></p>

<p>The error message is:</p>

<pre><code>WebDriverException
Message: The browser appears to have exited before we could connect. If you specified a log_file in the FirefoxBinary constructor, check it
/home/Ubuntu/local/lib/pyhton2.7/site-packages/selenium/webdriver/firefox/firefox_binary in _wait_until_connectable, line 98 
</code></pre>