Add to the base of your wsgi or rack app this .htaccess file:
```
RailsEnv development
```
i.e.
```
-bash-4.1$ cat ~/awesim_dev/django2/.htaccess
RailsEnv development
-bash-4.1$
```
This sets RAILS_ENV and RACK_ENV and WSGI_ENV to development. So this is what you would do for both Django and Rails apps.
Note: we are using a version of Passenger before the introduction of `PassengerAppEnv` if you are wondering why we aren't using `PassengerAppEnv`. The latest version of Passenger is 4.0.39 but 4.0.20 seems to be the one currently in use at OSC.