On Jan 27, 11:06 am, May <adles...@gmail.com> wrote:
> Hello,
>
> The tutorial suggests not serving the static pages with this method on
> a permanent basis.  Are you using this method for your production
> server?  I'm using windows/apache/modpython and I've tried using the
> IP address and still run into django url requests.  Do you know of a
> way to get apache to override django?
>
> Thanks,
>
> Ana

You might want to look into using the contributed app Flatpages for
these static pages.

http://docs.djangoproject.com/en/dev/ref/contrib/flatpages/

Alternatively, in an Apache environment, you could use the location
directive to tell Apache not to send requests for certain files in a
certain directory through mod_python. This would be similar to telling
Apache not to send media files through mod_python, as discussed here:

http://docs.djangoproject.com/en/dev/howto/deployment/modpython/#id1

Maybe something like:

<Location "/my_static_files">
    SetHandler None
</Location>

Then put all your static html files in that directory.

BN

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