On Dec 21, 12:54 pm, Jeff Anderson <jeffe...@programmerq.net> wrote:
> MS wrote:
> > I am learning Django under Windows Vista.
>
> > I am using Python 2.5 and Wamp5. The document root for Apache is set
> > to c:/wamp/www/
>
> > I have a project under c:/wamp/www/DjangoProjects/mysite
>
> Don't do that. You don't need your python code in the document root, and
> it's a bad idea to make it available to the world.> If I run it using the 
> Django built-in server it works fine. If I run
> > it using Apache and wsgi-python the application works fine but the
> > admin does not look the same, I suspect it does not make use of the
> > admin css files.
>
> Correct. You have to tell apache that the location of the admin media
> should be handled with the default handler, and then make an alias for
> that location to point to the correct location on disk. This is in the
> docs:http://docs.djangoproject.com/en/dev/howto/deployment/modpython/#id1

If when they say 'wsgi-python' they mean Apache/mod_wsgi, then the
information on the mod_python documentation will not be of use.

For mod_wsgi see:

  http://code.google.com/p/modwsgi/wiki/IntegrationWithDjango
  
http://code.google.com/p/modwsgi/wiki/ConfigurationGuidelines#Hosting_Of_Static_Files

When using mod_wsgi you do not need to do the Location/SetHandler None
hack that is required in mod_python to have Alias directive honoured.
In mod_wsgi for case of static media at sub URL of Django site, just
use Alias directives and they will correctly take precedence.

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