Hi, > Is there a recommended way to go about this? Do I have to recreate all > my views? Mobile sites are usually just alternate templates on the same views. So, the question is how to work out what it is that wants to 'view' your 'views'?. For this look at http://code.google.com/p/minidetector/ which is an application which adds a ".mobile" attribute to your request objects, which means the requester is coming to you from a mobile phone (cellphone), PDA, or other device that should be considered small screened. Once you know this in main_site.settings:
TEMPLATE_DIRS = ( '/path/to/templates/mainsite.com/', '/path/to/templates/default/', ) and in mobile_site.settings: from main_site.settings import * TEMPLATE_DIRS = ( '/path/to/templates/mobile.mainsite.com/', '/path/to/templates/default/' ) The first line imports all of the settings from your main site. Then overwrite the TEMPLATE_DIRS setting to point to the mobile version of the templates (and fall back to default templates if there isn't a mobile specific version). Because every app also gets a default template you can have a complete mobile site up and running by creating just one or two mobile base templates. Finally in apache's vhost configuration, for the main site you do: SetEnv DJANGO_SETTINGS_MODULE main_site.settings and in the vhost for the mobile site, you do: SetEnv DJANGO_SETTINGS_MODULE mobile_site.settings HTH Ian -- http://ianlawrence.info --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---