On Dec 15, 8:08 am, mongoose <darrenma1...@gmail.com> wrote:
> > I'm trying to run projects on the back of it. For 
> > examplehttp://baseurl.com/mongoose/
> > The projects run but the URL don't work properly because they all
> > reference the base url. So for 'About Me' page it points 
> > tohttp://baseurl.com/aboutinsteadofhttp://baseurl.com/mongoose/about
>
> > Is this something i need to change in django or apache? Is what I'm
> > trying to do even possible?

I wrestled with something like this - as we needed a static homepage
based on a django backend for one site.

Per my recollection what I did was.

* Apache httpd.conf required a location match adjustment something
like.

<LocationMatch "\.(jpg|gif|png|php|html)$">
      SetHandler None
</LocationMatch>

* My url.py file needed this line
      (r'^$', direct_to_template,{'template': 'index.html'}),

* As well I landed up having to put the index.html into both
  full static form in the .com root as well in the django template
folder.
  This was neccesary so people could load into the site as
  "www.somewhere.com"
   and while once in the django backend
  "www.somewhere.com/index.html" would load for further
   navigating.

I hope that makes sense, there was a downside to this in that
our web provider Verio's site management front end does not work
with us resetting the SetHandler in the root. In any case
most management of this site is done on the command line level.

Not a perfect solution but one that works, I'm open for other
suggestions.


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