thats because you are serving your static media with django on
debug=True but you don't serve it over apache on debug=False
http://docs.djangoproject.com/en/dev/howto/static-files/
http://docs.djangoproject.com/en/dev/howto/deployment/modpython/#serving-media-files



Pep wrote:
> Hi everybody !
>
> I didn't find the answer. I deployed my django project on a webserver
> with apache. First, I started with Debug =  True and the website
> worked fine.
>
> So, I decided to do it with Debug = False. I could see my project but
> not my CSS and other medias.
>
> In the httpd.conf I just put the ServerName. I just configured the
> file mysite in /etc/apache/sites-available/ with some Alias for the
> media.
>
> Here my virtualhost :
>   1 <VirtualHost *:80>
>   2   ServerAdmin i...@domain.com
>   3   ServerName  92.XXX.XX.XXX
>   4   ServerAlias *.domain.com
>   5   DocumentRoot /path/to/myproject
>   6   <Location "/">
>   7     SetHandler python-program
>   8     PythonHandler django.core.handlers.modpython
>   9     PythonPath "['/path/to/'] + sys.path"
>  10     SetEnv DJANGO_SETTINGS_MODULE myproject.settings
>  11     PythonDebug Off
>  12   </Location>
>  13
>  14   Alias /web /path/to/myproject/web
>  15   <Location "/path/to/myproject/web/">
>  16     SetHandler None
>  17   </location>
>  18 </VirtualHost>
>
>
> Thanks for your help
>
> PEP
>
>   

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@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