thanks! On Jun 22, 9:24 pm, Kelvin Nicholson <[EMAIL PROTECTED]> wrote: > Howdy Ivan: > > I'll try to take a stab at a few of your questions. > > [snip] > > > > > So for my root site, would I want to do this? > > <Location "/"> > > SetHandler python-program > > PythonHandler django.core.handlers.modpython > > SetEnv DJANGO_SETTINGS_MODULE foo.settings > > PythonDebug On > > </Location> > > If you wanted your entire site to be a Django project, this is what you > would do. You may need to add the PythonPath in there if the initial > configuration doesn't work: > > PythonPath "['/var/www/project'] + sys.path" > > > I want to store images and such in /var/www/images. Templates that > > refer to images and css can just refer to them in that fashion. So an > > <img src="/images/somePic.jpg"> in a template would load the right > > image -- though the template does not live in /var/www. Right? > > You have a couple of options. The docs suggest you setup static files > under a separate, non-mod_python server. If you *really* want to serve > the files under this apache process, you need to tell mod_python to > ignore them. > > <Location "/images"> > SetHandler None > </Location> > > To use /var/www/images, you may need to setup an alias... > > Alias /images /var/www/images > > Alternatively, you could setup virtualhosts, if your home network would work > with them. > > > Also, what is the easiest way to restart Apache so that changes to > > the /var/www/httpd.conf stick? > > The httpd.conf is located in /var/www? That seems to be a very > unorthodox place. Anyways, to make sure the changes stick you typically > need to do at least a: > > /etc/init.d/apache reload > > To get any changes in settings.py to stick, you'll need to restart > apache. > > /etc/init.d/apache restart > > or > > apache2ctl -k restart > > Sometimes under some circumstances you will actually need to stop and > start apache. > > > Any help would be greatly appreciated. > > I hope the above is somewhat helpful. Don't hesitate asking for > clarification, and I'm sure somebody else will chime in with their .02 > sometime. > > Cheers, > > Kelvin > > -- > Kelvin Nicholson > Voice: +886 9 52152 336 > Voice: +1 503 715 5535 > GPG Keyid: 289090AC > Data: [EMAIL PROTECTED] > Skype: yj_kelvin > Site:http://www.kelvinism.com
--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---