Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 789405
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T21:31:12+00:00 2026-05-14T21:31:12+00:00

I’m having a devil of a time getting Phusion Passenger to work with django-nonrel

  • 0

I’m having a devil of a time getting Phusion Passenger to work with django-nonrel for Google’s App Engine. I can seem to get it to work for GoogleAppEngineLauncher and for the production server but not Passenger; or for Passenger and GoogleAppEngineLauncher but not the production server; or for Passenger and the production server but not GoogleAppEngineLauncher.

How do I get my app to deploy on all three?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T21:31:13+00:00Added an answer on May 14, 2026 at 9:31 pm

    Here’s what I needed to do on Mac OS X Snow Leopard:

    1. Put the djangoappengine directory directly in ‘ROOT/common-apps’. If you put it outside of your common-apps directory, appengine may get confused and use the djangoappengine dir as your PROJECT_DIR instead of using ROOT as your PROJECT_DIR. You may also need to add an init.py to your common-apps directory.
    2. Put the django-nonrel OUTSIDE of the ROOT directory, and make a symlink from ROOT/common-apps/django to NONROOT/django-nonrel/django. If you put django-nonrel directly into your common-apps directory you’ll probably exceed the 3000 file upload limit on app-engine when you go to deploy.
    3. Create an empty ROOT/public directory. Passenger uses the parent of this directory as the project root.
    4. Configure your apache vhost as below, assuming that MYAPPNAME.local is your /etc/hosts
    5. Create passenger_wsgi.py and put it in your ROOT directory as below.

    vhosts:

    <VirtualHost *:80>
       ServerName MYAPPNAME.local
       DocumentRoot /Users/mike/Projects/ROOT/public
        <Directory  /Users/mike/Projects/ROOT/public>
          AllowOverride all
          Options -MultiViews
          Order allow,deny
          Allow from all
        </Directory>
    </VirtualHost>
    

    passenger_wsgi.py:

    import os, sys
    
    # BUG there must be a better way than listing everything individually...
    sys.path.append('/Users/mike/Projects/ROOT/')
    sys.path.append('/Users/mike/Projects/ROOT/common-apps/')
    sys.path.append('/Users/mike/Projects/NONROOT/django-nonrel/')
    sys.path.append('/usr/local/google_appengine/')
    sys.path.append('/usr/local/google_appengine/lib/yaml/lib/')
    sys.path.append('/usr/local/google_appengine/lib/antlr3/')
    sys.path.append('/usr/local/google_appengine/lib/django/')
    sys.path.append('/usr/local/google_appengine/lib/cacerts/')
    sys.path.append('/usr/local/google_appengine/lib/ipaddr/')
    sys.path.append('/usr/local/google_appengine/lib/webob/')
    sys.path.append('/usr/local/google_appengine/google/appengine/api/')
    
    os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
    import django.core.handlers.wsgi
    application = django.core.handlers.wsgi.WSGIHandler()
    

    Hopefully I didn’t leave anything significant out.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
We're building an app, our first using Rails 3, and we're having to build
I have a jquery bug and I've been looking for hours now, I can't
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
Does anyone know how can I replace this 2 symbol below from the string
I'm having trouble keeping the paragraph square between the quote marks. In firefox the
I am writing an app with both english and french support. The app requests
I am using Paperclip to handle profile photo uploads in my app. They upload
I'm making a simple page using Google Maps API 3. My first. One marker

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.