thank you... i solved it using the django.wsgi script created by the
buildout!

its a lot easier deploy django with wsgi and not to mention how much
better it is with a buildout in a clean isolated folder!! love it!

Graham Dumpleton wrote:
>
> On Sep 22, 11:41 pm, andreas schmid <a.schmi...@gmail.com> wrote:
>   
>> hi,
>>
>> im expierencing a strange problem on my server with mod_pyton.
>>
>> while testing my project on the server launching it with runserver
>> everything looks fine.
>>
>> using apache and mod_python the templates at the root of the templates
>> dir in my project are loaded but all the others
>> (templates/myproject/template.html ,
>> templates/registration/template.html - for example) are not loaded. the
>> section content is not loaded and i really cant understand how this is
>> possible. the content area is empty.
>>
>> here is my apache configuration:
>>
>>     <VirtualHost xx.xxx.xxx.xxx:80>
>>
>>     <Location "/">
>>         SetHandler python-program
>>         PythonHandler django.core.handlers.modpython
>>         SetEnv DJANGO_SETTINGS_MODULE myproject.production
>>         PythonOption django.root /myproject
>>     
>
> Wrong. Delete the line setting 'django.root'. You are hosting at root
> site and don't need it.
>
> Graham
>
>   
>>         PythonDebug On
>>         PythonPath "['/var/www',
>>     '/opt/django/myproject/parts/site-packages' ] + sys.path"
>>     </Location>
>>
>>     LogLevel warn
>>     CustomLog /var/log/apache2/access.log combined
>>     ErrorLog /var/log/apache2/error.log
>>
>>     Alias /media/
>>     /usr/lib/python2.5/site-packages/django/contrib/admin/media/
>>     <Location "/adm_media/">
>>         SetHandler None
>>     </Location>
>>
>>     Alias /site_media/ /var/www/myproject/media/
>>     <Location "/media/">
>>         SetHandler None
>>     </Location>
>>
>>     </VirtualHost>
>>
>> the source in the browser for the content looks like:
>>
>>         <div id="subnav">
>>
>>         </div>
>>
>>           <div id="content">    
>>
>>           </div>
>>           <div id="paginator">
>>
>>           </div>
>>
>> i have another project on the same server working fine... can anybody
>> help me?
>>     
> >
>
>   


--~--~---------~--~----~------------~-------~--~----~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to