Re: How can I set a flatpage to be my homepage?

2010-11-24 Thread mongoose
Hi Jason, That fixed everything. Thanks On Nov 24, 3:32 pm, Jason Mayfield wrote: > Is there a reason you are adding the flatpages to your urls.py rather than > using the FlatpageFallbackMiddleware, as specified in the docs? > >

Re: How can I set a flatpage to be my homepage?

2010-11-24 Thread Jason Mayfield
Is there a reason you are adding the flatpages to your urls.py rather than using the FlatpageFallbackMiddleware, as specified in the docs? http://docs.djangoproject.com/en/1.2/ref/contrib/flatpages/#installation On Nov 24, 2010, at 8:23 AM, mongoose wrote: > OK further updates. > > I updated

Re: How can I set a flatpage to be my homepage?

2010-11-24 Thread mongoose
OK further updates. I updated my URLs to have the following. urlpatterns += patterns('', (r'', 'django.views.generic.simple.direct_to_template', {'template': 'flatpages/default.html'}), ) This now loads all my flatpages and has the deisred effect on the homepage. But still the pages that

Re: How can I set a flatpage to be my homepage?

2010-11-24 Thread mongoose
I tried this approach urlpatterns += patterns('', (r'^$', 'django.views.generic.simple.direct_to_template', {'template': 'flatpages/homepage.html'}), ) Good news is it's loads the homepage. Bad news is that it loads a blank page. Other bad news is that now all the other flatpages don't

Re: How can I set a flatpage to be my homepage?

2010-11-23 Thread mongoose
Hi There, I've specified the URL as / in the admin. Now I get an error from firefox telling me "The page isn't redirecting properly". This is what I'm using for the URLs.py urlpatterns += patterns('', (r'^$', include('django.contrib.flatpages.urls')), ) On Nov 21, 8:43 pm, "Joseph

How can I set a flatpage to be my homepage?

2010-11-21 Thread mongoose
Hi there, I've created some flatpages and they work great. For example http://127.0.0.1:8000/home/ and http://127.0.0.1:8000/blog/ I'm catching my flatpages with urlpatterns += patterns('', (r'', include('darren_web.flatpages.urls')), ) What I want though is for http://127.0.0.1:8000/home/

Re: How can I set a flatpage to be my homepage?

2010-11-21 Thread Joseph (Driftwood Cove Designs)
mongoose - all you need to do is specify the url: / for the flatpage you want to be homepage. a flatpage can only have one URL - if you want it to show up on 2 urls (e.g. / and /home/), you'll need a re-direct, a view, a re-write rule, or some other trick. good luck. On Nov 21, 2:48 am,

Re: How can I set a flatpage to be my homepage?

2010-11-21 Thread vikalp sahni
Hi, If i understood ur question properly you need a URL rewrite. you can try either Apache Rewrite (1st Preference) or you can also import a django app "django.contrib.redirects" which will help u in redirecting URL's Regards //Vikalp On Sun, Nov 21, 2010 at 4:18 PM, mongoose