Re: Flatpage on first page of a website

2009-10-16 Thread Lars Stavholm

Alessandro Ronchi wrote:
> I need to put a flatpage on /
> and make www.example.com
> return the flatpage.
> 
> Is it possible? What url must I put in flatpage admin?

No flatpages in admin as far as I know.

At the frontend (your web site www.example.com) however:

1. Create a flatpage for with URL /
2. Add django.contrib.flatpages.middleware.FlatpageFallbackMiddleware
   to MIDDLEWARE_CLASSES in settings.py
3. Add django.contrib.flatpages to INSTALLED_APPS.

That should do it.

/L


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



Flatpage on first page of a website

2009-10-16 Thread Alessandro Ronchi

I need to put a flatpage on /
and make www.example.com
return the flatpage.

Is it possible? What url must I put in flatpage admin?

-- 
Alessandro Ronchi

SOASI
Sviluppo Software e Sistemi Open Source
http://www.soasi.com

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