Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>In the directory <code>/home/user/example.com</code> you need to add a symlink to your database file too.</p> <p>Also:</p> <ul> <li>You only need to append <code>/home/user/example.com/project</code> to the path. The other two are not necessary, though they should not cause problems.</li> <li><p>Instead of hardcoding the path <code>/home/user/example.com/project</code> you can use <code>os.getcwd()</code>:</p> <pre><code>sys.path.append(os.path.join(os.getcwd(), 'project')) </code></pre></li> </ul> <p>After you make changes to this file or other files in your project, don't forget to do <code>touch tmp/restart.txt</code> to notify Passenger.</p> <p>By the way, at the moment Django works with Python versions 2.6.5 to 2.7 with experimental support for 3.2 and 3.3. According to the <a href="http://wiki.dreamhost.com/Python" rel="nofollow">Python wiki</a> on DreamHost, most servers should be using Python 2.6.6 as of February 2012, except <em>some</em> servers. Check your version of Python with <code>python --version</code> and if it's not 2.6.6 then you can ask the support team to upgrade it on your server.</p> <p>I tried using Django with Python 3.2 or 3.3 on DreamHost but it's problematic. It doesn't work with 3.2 because the <code>mod_wsgi</code> module of Apache does not seem to work with this version at the moment. It could work if you install it from source, but being a shared hosting, we don't have control over that. I don't know for sure but if <code>mod_wsgi</code> doesn't work with 3.2 then it won't work with 3.3 either. So I think it's best to stick to a supported version of 2.x version if you want to use Django on Dreamhost.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload