django-flatpages

Django.contrib.flatpages without models

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

Problem embedding TinyMCE in Django, any help?

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

Django flatpages backup?

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

How can you have Wordpress-like custom fields using Django flatpages?

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

How can you get future-dated posts in Django?

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

How to get page parent when using Django flatpages?

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

Is there anything better than flatpages for Django?

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

How can I specify a prepopulated value for many to many relationships in django 1.0 (flatpages)?

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

Can you have more than one app handle a 404 in Django?

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

Django 1.1 beta 1 - Flatpages Error, Debug = False, with 404.html

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 get the reverse url for a Django Flatpages template ...

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

django flatpage redirects

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

Specific templates for flatpages in Django

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

Change field in Django Flatpages Admin

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

Django FlatPages vs Django-CMS

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

Can't get Google map to show up in Flatpage using Django Flatpages

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

Best way to fix django admin preview of flatpage attached to multiple sites

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

how to implement ckeditor in django.contrib.flatpages

can any one describe how to implement the ckeditor in django.contrib.flatpages... Thanks in advance ...

Django flatpages raising 404 when DEBUG is False (404 and 500 templates exist)

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