I have some flatpages with empty content field and their content inside the template (given with template_name field).
Why I am using django.contrib.flatpages
It allows me to serve (mostly) static pages with minimal URL configuration.
I don't have to write views for each of them.
Why I don't need the model FlatPage
I leave the con...
I’m working on a web application with Django, and I’m using the Flatpages app.
Now, I’m trying to embed the TinyMCE WYSIWYG editor in Flatpages. I’m following the steps mentioned in the Apress book: Practical Django Projects. And I’ve done everything right, but the TinyMCE app wouldn’t show up in the browser. When I asked the Django IRC...
I'm using flatpages in a site that I'm developing in a locally server. I need to backup the flatpage's data for use it in the final server. Does anyone know how to do it?
...
One of the features that makes a CMS like WordPress powerful is the ability to add additional fields that may be used in the template. WordPress has what it calls custom fields. Is there a way to do that using Django's flat pages? If not, is there another Django app that will allow page creation with the option of adding additional field...
I just want to do a basic site in Django and the flatpages app is super simple, but it doesn't support a couple of things that I need, namely custom fields and future-dating. That is setting a publish date to some point in the future rather than publishing immediately.
What's the best option for getting future-dated posts in Django?
...
Since Django urls are arbitrary, including those set when you create flatpages. How can you figure out what a page's parent is? That is if I create a page /about/contact/, then when I am on the contact page (in the template), how can I figure out what the parent page is?
Is there a standard way to do this? Or do I just split the slug on...
I was wondering if there's anything better than the flatpages app for Django, because flatpages doesn't even support things like status (draft, published) or publish date. Is there anything out there?
...
Django flatpages uses a many-to-many relationship with the django Site model
class FlatPage(Model)
...
sites = ManyToManyField(Site)
You must select a site when creating a new flatpage. While I might utilize multiple sites later, right now it's unnecessary an annoying. I want to have the current (and only) Site preselected o...
Apparently, the way Django flatpages works is that it handles the 404 thrown by other apps. I was wondering if I could do another flatpages-type app that gets a crack at the 404 before flatpages does. I tried this without success so far. A template gets rendered but the data doesn't come through.
Is it even possible?
...
The Django flatpages app has a well-known and oft-discussed-on-the-web bug related to a missing 404.html "Page Not Found" template in your project's templates directory. If you have DEBUG = False in your settings.py file, and you're missing the 404.html file, flatpages will generate a 500 server error instead of loading the flatpage beca...
How can I get the reverse url for a Django Flatpages template
...
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 ...
I want to make sure all of my flatpages have the "www" subdomain and redirect to it if they don't. I've looked at some middlewares that redirect to www, but 1. they usually redirect all urls to www and 2. the ones I've found don't work with flatpages.
I don't want all of my site urls to redirect to include the www subdomian, just the...
Is it possible to link specific templates for different flatpages in Django?
For example:
/about/ -> templates/flatpages/about.html
/contact/ -> templates/flatpages/contact.html
This is what I have but all these pages point to the default.html template
url(r'^(?P<url>about/)$', 'django.contrib.flatpages.views.flatpage'),
ur...
Using Flatpages with the default admin, I need to change the template field from a text input with to select or radio with predefined choices. It's easy to do this with one of my own apps - just use the choices attribute in the model.
I have tried a few things - I will add details about those attempts later if necessary - but does anyon...
Without going into too much detail, I'm building a Django site and I wanted to implement a CMS solution, while having a lot of flexibility with page layouts, navigation, and organization.
It'd be mainly used for our documentation, and so far I've had a lot of headaches trying to figure out the ins-and-outs of Django CMS.
Would an exp...
I have a client with a "Directions" page in their website and they wanted to add a Google map to the page, so they went to maps and put in their location and then used the "embed" link to get the html for the iframe. They then opened up the Flatpage for "Directions" page in the admin and went to html mode in TinyMCE and then pasted in th...
I have flatpage attached to multiple sites. Its admin preview chooses
arbitrary site, which is quite obvious after debugging up to lines 35-36 of
django.contrib.contenttypes.views.shortcut().
What would be the best way of fixing this problem?
I see that the shortcut() function takes a request object, so I could just extract host from...
can any one describe how to implement the ckeditor in django.contrib.flatpages...
Thanks in advance
...
I'm using Django 1.1.1 stable. When DEBUG is set to True Django flatpages works correctly; when DEBUG is False every flatpage I try to access raises a custom 404 error (my error template is obviously working correctly).
Searching around on the internet suggests creating 404 and 500 templates which I have done.
I've added to FlatpageFal...