Sunday, November 21, 2010

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

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, 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/to come up ashttp://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-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate