I've been looking to see how to create a mobile version of a project on Webfaction.
Some prerequisites: 1. Using virtualenv 2. mod_wsgi 3. Want to use the same views and models, but different templates 4. Templates will be grabbed by changing the template_dirs setting in different settings files. For example: settings and settings_mobile
So I thought I could do all this with VirtualHosts, but I keep getting stuck trying to get the wsgi files to see settings. It just keeps displaying the wsgi hello world message.
Anyone see something I'm doing wrong in my .conf file? Please let me know what you think.
asked Nov 05 '10 at 00:59
I think klynton means something like this as a middleware:
This way you can run one django app but still use two sets of templates.
answered Nov 05 '10 at 02:16
There is nothing in your configuration that looks glaringly wrong, however, most of the Django mobile setups I have seen use a middleware that looks at the browser agent and grabs the templates or directs the browser to the right templates.
answered Nov 05 '10 at 01:16