Search code examples
djangodjango-flatpages

How to set a Flatpage as the Homepage in Django


How can I set a Flatpage as the Homepage?

My urls.py is

    (r'', include('django.contrib.flatpages.urls')),

In the admin section I set the URL of the Flatpage to "/".

I get this error

Firefox has detected that the server is redirecting the request for this address in a way that will never complete.

I'm guessing setting the URL to "/" is wrong, but can't find an example of the proper way to do it.


Solution

  • I removed the entry from the urls.py and this seems to have fixed it.