I think the problem is not in your wsgi file, but in your apache's vhost
configuration.
You should have this in your vhost configuration, to use your django
application with mod_wsgi :

WSGIScriptAlias / /var/www/conf/myconf.wsgi

So, you should add this line (if your admin/media is url /admin/media, you
can override this in your project's settings file, with ADMIN_MEDIA_PREFIX)
:

Alias /admin/media
/usr/lib/python2.5/site-packages/django/contrib/admin/media

As you could have this for other local media :

Alias /media /var/www/media

All path depend on your installation, of course. :)

F.


2009/10/13 Nilesh Patel <nileshpatel....@gmail.com>

> here is my apache config file for wsgi,
>
> import os, sys
> apache_configuration= os.path.dirname(__file__)
> project = os.path.dirname(apache_configuration)
> sys.path.append('/var/www')
> sys.path.append('/var/www/myproj/cms')
> os.environ['DJANGO_SETTINGS_MODULE'] = 'myproj.settings'
> import django.core.handlers.wsgi
> from django.conf import settings
> settings.DEBUG=False
> application = django.core.handlers.wsgi.WSGIHandler()
>
>
>
> 2009/10/11 Kenneth Gonsalves <law...@thenilgiris.com>
>
>>
>> On Sunday 11 Oct 2009 12:14:13 pm lafada wrote:
>> > Apache says,
>> >
>> > File does not exist: /var/lib/python-support/python2.5/django/contrib/
>> > admin/media/js/actions.js
>> >
>> > When I tried to locate server says,
>> > /usr/lib/python2.5/site-packages/django/contrib/admin/media/js/
>> > actions.js
>> >
>> > what may be the cause ???
>>
>> you have not given the correct path to django/contrib/admin in your apache
>> config.
>> --
>> regards
>> kg
>> http://lawgon.livejournal.com
>>
>>
>>
>
>
> --
> #Japan Shah
> Sent from Gujarat, India
> >
>

--~--~---------~--~----~------------~-------~--~----~
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