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 load are blank.

I've got
<h1>{{ flatpage.title }}</h1>
<p>{{ flatpage.content }}</p>

In my page but still just white.


Any suggestions?

On Nov 24, 3:16 pm, mongoose <darrenma1...@gmail.com> wrote:
> 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 load when I
> put in their URL.
>
> There is something very simple I'm just not getting isn't there?
>
> On Nov 23, 4:35 pm, mongoose <darrenma1...@gmail.com> wrote:
>
> > 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 (Driftwood Cove Designs)"
>
> > <powderfl...@gmail.com> wrote:
> > > mongoose -
> > >   all you need to do is specify the url:  /
> > >   for theflatpageyou want to be homepage.
>
> > >   aflatpagecan 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, mongoose <darrenma1...@gmail.com> wrote:
>
> > > > Hi there,
>
> > > > I've created some flatpages and they work great. For 
> > > > examplehttp://127.0.0.1:8000/home/andhttp://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 
> > > > forhttp://127.0.0.1:8000/home/tocomeupashttp://127.0.0.1:8000/
> > > > How can I do this?
>
> > > > Thanks

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