Help with FlatPages

2016-09-19 Thread Lekan Wahab
Good morning guys, I'm trying to locally set up an existing project on my machine. While I've set up most of the project, the part giving me a hard time are the ones using flatpages. Now, everytime I access those, I get a "No Flatpages matches the given query. " error. I

Re: Flatpages

2014-08-15 Thread Lee Hinde
I just logged into the backend to make sure the django_flatpage_sites table was populated and it is. On Fri, Aug 15, 2014 at 2:21 PM, Lee Hinde wrote: > Yes. > > > On Fri, Aug 15, 2014 at 2:10 PM, Collin Anderson > wrote: > >> SITE_ID is set, but is the correct site selected on the flatpage? >

Re: Flatpages

2014-08-15 Thread Lee Hinde
Yes. On Fri, Aug 15, 2014 at 2:10 PM, Collin Anderson wrote: > SITE_ID is set, but is the correct site selected on the flatpage? > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails fro

Re: Flatpages

2014-08-15 Thread Collin Anderson
SITE_ID is set, but is the correct site selected on the flatpage? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To p

Re: Flatpages

2014-08-15 Thread Lee Hinde
I don't have APPEND_SLASH in my settings and the default is True, so I don't think that's it. Also, I used the django extension show_urls and the flatpages url showed up in the output, so I think it's in the chain. On Fri, Aug 15, 2014 at 12:19 PM, C. Kirby wrote: > T

Re: Flatpages

2014-08-15 Thread C. Kirby
There is a warning about APPEND_SLASH = False in the flatpages documentation: Warning If you set APPEND_SLASH <https://docs.djangoproject.com/en/dev/ref/settings/#std:setting-APPEND_SLASH> to False, you must remove the slash in the catchall pattern or flatpages without a trailing slas

Re: Flatpages

2014-08-15 Thread Lee Hinde
Yes, it's a record in the flatpages table on the production side. On Fri, Aug 15, 2014 at 11:43 AM, Collin Anderson wrote: > I also assume you added the page to the production database and not just > your dev database (if they're different)? > > -- > You received thi

Re: Flatpages

2014-08-15 Thread Collin Anderson
I also assume you added the page to the production database and not just your dev database (if they're different)? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email

Re: Flatpages

2014-08-15 Thread Lee Hinde
Thanks. > > > On Fri, Aug 15, 2014 at 11:30 AM, C. Kirby wrote: > >> Is it only occurring on the flatpages test page or all your pages (or is >> that the only page)? Remember you need ALLOWED_HOSTS set in production[1] >> >> [1]https://docs.djangoproject.com

Re: Flatpages

2014-08-15 Thread Lee Hinde
It's the only page; I'll double-check allowed hosts... Thanks. On Fri, Aug 15, 2014 at 11:30 AM, C. Kirby wrote: > Is it only occurring on the flatpages test page or all your pages (or is > that the only page)? Remember you need ALLOWED_HOSTS set in production

Re: Flatpages

2014-08-15 Thread C. Kirby
Is it only occurring on the flatpages test page or all your pages (or is that the only page)? Remember you need ALLOWED_HOSTS set in production[1] [1]https://docs.djangoproject.com/en/dev/ref/settings/#allowed-hosts On Friday, August 15, 2014 12:40:43 PM UTC-5, Lee Hinde wrote: > > I

Re: Flatpages

2014-08-15 Thread Lee Hinde
It's /test/. The flatpages admin form won't accept a url that doesn't begin and end in a slash. On Fri, Aug 15, 2014 at 10:55 AM, Collin Anderson wrote: > What is your page's url? Does it end with a slash? > > -- > -- You received this message because you are

Re: Flatpages

2014-08-15 Thread Collin Anderson
What is your page's url? Does it end with a slash? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this gro

Flatpages

2014-08-15 Thread Lee Hinde
I added flatpages to a project and got it working fine locally, using dev server, but I get a 404 accessing my test page when I push to production. Googling the issue, most common complaints fixed by making sure SITE_ID was set, and that's in place in my site. I'm not using middl

Re: Flatpages - Django 1.5.1

2014-01-21 Thread James
Fixed. After some Google-fu I set SITE_ID = 2 and it worked. On Monday, January 20, 2014 4:41:05 PM UTC-8, James wrote: > > I’m having trouble implementing flatpages in Django 1.5.1 - I’m new to > Django/Python (~3 months) so any insight is appreciated. > > I’ve added flatpa

Flatpages - Django 1.5.1

2014-01-20 Thread James
I’m having trouble implementing flatpages in Django 1.5.1 - I’m new to Django/Python (~3 months) so any insight is appreciated. I’ve added flatpages in APPS and MIDDLEWARE_CLASSES and ran a syncdb: INSTALLED_APPS = ( 'django.contrib.auth', 'django.contr

Re: flatpages-tinymce

2013-07-29 Thread Karl Arunachal
Thank you. On Sun, Jul 28, 2013 at 7:03 PM, Roberto López López wrote: > > Your message is quite confusing and difficult to understand, I have to > say. What are you asking for? To show tinymce within your change_form or > within the admin app? What do you mean by "flat pages"? Which error are y

Re: flatpages-tinymce

2013-07-28 Thread Roberto López López
Your message is quite confusing and difficult to understand, I have to say. What are you asking for? To show tinymce within your change_form or within the admin app? What do you mean by "flat pages"? Which error are you getting? On 07/28/2013 08:35 AM, Karl Arunachal wrote: > Hello, > I am tryi

Re: flatpages-tinymce

2013-07-28 Thread Roberto López López
On 07/28/2013 08:35 AM, Karl Arunachal wrote: > || -- Roberto López López System Developer Parallab, Uni Computing +47 55584091 -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails

flatpages-tinymce

2013-07-27 Thread Karl Arunachal
Hello, I am trying to use tinymce in the flat pages. But i just can't show it up in my admin. Please help me out where am going wrong. The javascript file is in: C:\Users\Kakar\web\cms\static\js\tinymce\tinymce.min.js urls.py: (r'^tiny_mce/(?P.*)$', 'django.views.static.serve', { 'document_root

best way to track flatpages clicked by users?

2013-05-03 Thread frocco
Hello, I am looking for a way to track links clicked on my website, so I can see what is being used. Most pages are flat pages, so our my own design. Thanks Frank -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group

Re: css for flatpages

2013-04-21 Thread Michael Hernandez
Sunday, April 21, 2013 4:53:40 PM UTC-4, Carlos Aboim wrote: > > Hi > > tell me, where should live css files for flatpages, > these need a special folder for server to find them as for apps for > example? > > thank you! > -- You received this message because you are subs

css for flatpages

2013-04-21 Thread Carlos Aboim
Hi tell me, where should live css files for flatpages, these need a special folder for server to find them as for apps for example? thank you! -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop

ValueError at /admin/flatpages/flatpage/1/

2013-02-08 Thread frocco
If I add a record and do not select the sites dropdown, I get ValueError at /admin/flatpages/flatpage/1/ Cannot use None as a query value Request Method:POSTRequest URL: http://127.0.0.1:8000/admin/flatpages/flatpage/1/Django Version:1.4.3Exception Type:ValueErrorException Value: Cannot use

Re: Can't display data from app in flatpages

2012-12-20 Thread Jason Arnst-Goodrich
The flatpages view is not provided the context which includes 'posts'. IMO you are correct with the {% load posts %} technique because it is entirely as result of the template you are using that requires you display that information -- if that makes sense. In other words it's

Can't display data from app in flatpages

2012-12-19 Thread Frank Valcarcel
I have a Django app called blogengine which does exactly what the name implies. I can't seem to get data from blogengine (posts) to display in templates when they're called by flatpages. I'm new to Django but I assume this is a urls.py issue. My urls.py: from django.conf.urls.

Re: Cannot add/save flatpages via admin???

2012-04-28 Thread Karen Tracey
This was a bug in the flatpage form validation, where it would throw an exception rather than give you an error message if you did not specify any values for the required sites field. Fixed now on git master. You can also avoid it by being sure to select at least one site for the page. Karen -- h

Cannot add/save flatpages via admin???

2012-04-28 Thread DjangoKid
I dont know much about Python and Django. Whenever i try to save a flat page i got error: ValueError at /admin/flatpages/flatpage/add/ Exception Value: Cannot use None as a query value http://dpaste.com/739338/ I am using Python 2.7.3 and Django 1.4 ad sqlite3 as database -- You received this

django flatpages and model translations

2012-04-14 Thread maumercado
Hello everyone, What is your aproach or what app do you use in order to make translations for django flatpages and project apps models? -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web vi

Question about flatpages + registration required

2011-07-22 Thread eddie
Sorry for the question, but I can't seem to track down a place to start. I've got a fairly simple django site that includes flatpages. I'm trying to require authentication to view one or two of the flatpages (like I would with a .htaccess, for instance). When I go to the admin

Re: Flatpages do not work

2011-07-06 Thread Paul van der Vlis
e my. This helped. With regards, Paul. > On Wed, Jul 6, 2011 at 3:32 PM, Paul van der Vlis <mailto:p...@vandervlis.nl>> wrote: > > Hallo! > > I am a real beginner in Django, I try to install a new chat application > called HelpIM, you will not know it.

Re: Flatpages do not work

2011-07-06 Thread CareerDhaba tech
/urls/ On Wed, Jul 6, 2011 at 3:32 PM, Paul van der Vlis wrote: > Hallo! > > I am a real beginner in Django, I try to install a new chat application > called HelpIM, you will not know it. > > My problem is that the flatpages do not work. I can create a flatpage in > the admin-i

Flatpages do not work

2011-07-06 Thread Paul van der Vlis
Hallo! I am a real beginner in Django, I try to install a new chat application called HelpIM, you will not know it. My problem is that the flatpages do not work. I can create a flatpage in the admin-interface, but when I go to it, I always see a "page not found" message from Hel

Re: flatpages templatetags missing

2011-01-31 Thread Adi
I had my settings.py exactly like you suggested. I realized that the template tag loadflatpages is available in the Trunk, and not available in 1.2.3 or 1.2.4 I was confused because the documentation for 1.2.3 talks about the load flatpages tag (and there is a disclaimer there that says

Re: flatpages templatetags missing

2011-01-31 Thread GSV
ontrib.sites', 'django.contrib.messages', # Uncomment the next line to enable the admin: 'django.contrib.admin', # Uncomment the next line to enable admin documentation: 'django.contrib.admindocs', 'django.contrib.flatpages

flatpages templatetags missing

2011-01-30 Thread Adi
Hi: I am trying to use flatpages in my app, and i set up the settings.py correct, and I am able to create the flatpages using the admin site. However, when in my app I try to load the template tags for flatpages using: {% load flatpages %} I get a TemplateSyntaxError Exception Value: 'flat

Re: Adding a new collapsed form in Flatpages

2011-01-22 Thread TheRedRabbit
Thank you sooo much :) -- 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 opt

Re: Adding a new collapsed form in Flatpages

2011-01-22 Thread creecode
Hello TheRedRabbit, On Jan 22, 12:02 pm, TheRedRabbit wrote: > Instead of one form it displayed 3, is there a way to default it to > display only one > form? Perhaps this will do the trick < http://docs.djangoproject.com/en/dev/ref/contrib/admin/#django.contrib.admin.InlineModelAdmin.extra >.

Re: Adding a new collapsed form in Flatpages

2011-01-22 Thread TheRedRabbit
Hi Daniel Thanks for the response. I actually tried that and the only issue I had with stacked inline was it made the admin page look real ugly. Instead of one form it displayed 3, is there a way to default it to display only one form? Thanks again. -- You received this message because you are

Re: Adding a new collapsed form in Flatpages

2011-01-22 Thread Daniel Roseman
set'. Add a related_name argument to > the definition for 'sites'. > my_flatpages.flatpage: Accessor for m2m field 'my_sites' clashes with > related m2m field 'Site.flatpage_set'. Add a related_name argument to > the definition for 'my_sites'

Re: Adding a new collapsed form in Flatpages

2011-01-22 Thread TheRedRabbit
atpage: Accessor for m2m field 'my_sites' clashes with related m2m field 'Site.flatpage_set'. Add a related_name argument to the definition for 'my_sites'. Im not sure whats wrong here. I copied the flatpages app to my python path so I can modify it and now this is wher

Re: Adding a new collapsed form in Flatpages

2011-01-22 Thread TheRedRabbit
I found this http://groups.google.com/group/django-users/browse_thread/thread/865e1d3b52f18bb6 It explains that you would have to copy the flatpages module and modify it, instead of modifying the actual flatpage in the django installation. The link does not work so Il post my solution once I

Adding a new collapsed form in Flatpages

2011-01-22 Thread TheRedRabbit
I want to add a new form to the admin interface of the Flatpages app. The only way I can think of doing this is by hacking the actual django flatpages app. What Im trying to add is an optional form that can be filled in from the admin interface of the flatpages app and it will display an advert

Re: Flatpages incorrect 302 to 404

2010-09-27 Thread Josh
As far as I know I constructed the urls properly. For example one of them was /policy/ (that's how it looked in flatpages). I did find another work around though. I removed the flatpages middleware from my settings. And then I added this to my urls: urlpatterns += patterns('',

Re: Flatpages incorrect 302 to 404

2010-09-27 Thread Piotr Kilczuk
2010/9/27 Josh : > bump.  Does anyone have any ideas? Trailing slash issue? Just look into the middleware and see when the response code is modified. Regards, Piotr -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send e

Flatpages soft 404

2010-09-27 Thread Josh
bump. Does anyone have any ideas? On Sep 24, 3:56 pm, Josh wrote: > I have a django project, its a satchmo store.  I have noticed that > when the flatpages middleware is in my settings.py 404s seem to be > handled incorrectly.  i.e. if a page really does not exist the server > first

Re: Flatpages incorrect 302 to 404

2010-09-27 Thread Josh
bump. Does anyone have any ideas? On Sep 24, 3:56 pm, Josh wrote: > I have a django project, its a satchmo store.  I have noticed that > when the flatpages middleware is in my settings.py 404s seem to be > handled incorrectly.  i.e. if a page really does not exist the server > first

Flatpages incorrect 302 to 404

2010-09-24 Thread Josh
I have a django project, its a satchmo store. I have noticed that when the flatpages middleware is in my settings.py 404s seem to be handled incorrectly. i.e. if a page really does not exist the server first sends a 302 response, then a 404. When google crawls it only sees the 302 so it thinks

flatpages and views on home page

2010-09-11 Thread Bobby Roberts
hi group. Got an issue I need some help with asap. I have flatpages installed and a url at / for my home page. I've also got a form on my home page powered by a view. my urls portion for this view is: rr'^$','DoNewsLetter'), my issue is this... the view executes pe

Re: Overriding flatpages class meta

2010-08-31 Thread Owen Nelson
Actually, I would *avoid* modifying the flatpages source, but that does raise a good point -- look at the source and copy/paste the Meta defined inside the class, making the overrides you need in your subclass (redefine the Meta). You'll have to watch for changes if/when you switch django ver

Re: How to create a gerarchical list in admin for flatpages?

2010-08-31 Thread Karim Gorjux
On Tue, Aug 31, 2010 at 14:11, Karim Gorjux wrote: > I would like to > realize a easy admin page for my flat pages that in Django-CMS is > called "site map". I found what I need. Is here: http://code.google.com/p/django-mptt/ -- Karim Gojux www.karimblog.net -- You received this message becau

Re: Overriding flatpages class meta

2010-08-31 Thread Karim Gorjux
Try to modify the flatpages source! You can find it directly in your django installation. -- Karim Gojux www.karimblog.net -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegrou

Re: Overriding flatpages class meta

2010-08-31 Thread Owen Nelson
The meta class instance is accessed through ClassName._meta -- not ClassName.meta I tried this when I got back last night and had (other) issues myself, so this might not be the right approach anyway. -- You received this message because you are subscribed to the Google Groups "Django users" gro

Re: Overriding flatpages class meta

2010-08-31 Thread Goran
Thanks Owen but is doesn't work. The similar Error message: contribute_to_class if self.meta: AttributeError: 'Options' object has no attribute 'meta' On Aug 30, 8:03 pm, Owen Nelson wrote: > Sorry to be guessing here, but I was looking at something similar recently. > My attempt (untested a

How to create a gerarchical list in admin for flatpages?

2010-08-31 Thread Karim Gorjux
Hi all! I'm working to create my CMS on Django, I would like to realize a easy admin page for my flat pages that in Django-CMS is called "site map". How I can do that? Are there any tutorial or how to about that? Have you any advice? Thanks! The site map in Django-CMS: http://www.django-cms.org/m

Re: Overriding flatpages class meta

2010-08-30 Thread Owen Nelson
Sorry to be guessing here, but I was looking at something similar recently. My attempt (untested at this point) would be something like: from copy import copy class NewFlatpage(FlatPage): _meta = copy(FlatPage._meta) _meta.verbose_name_plural = "foo" -- You received this message because

Re: Overriding flatpages class meta

2010-08-30 Thread Goran
I was try class Meta(FlatPage.Meta): but when runserver there is following error: AttributeError: type object 'FlatPage' has no attribute 'Meta' any other solution to try? Thanks On Aug 30, 12:53 am, Steve Holden wrote: > On 8/29/2010 6:51 PM, Goran wrote: > > > Thanks for the answer Stev

Re: Overriding flatpages class meta

2010-08-29 Thread Steve Holden
On 8/29/2010 6:51 PM, Goran wrote: > Thanks for the answer Steve. I'm Django and Python novice and here is > what I was try. But it doesn't work. > > from django.contrib.flatpages.models import FlatPage > > class NewFlatpage(FlatPage): > > class Meta: The Meta class would need to subclass F

Re: Overriding flatpages class meta

2010-08-29 Thread Goran
Thanks for the answer Steve. I'm Django and Python novice and here is what I was try. But it doesn't work. from django.contrib.flatpages.models import FlatPage class NewFlatpage(FlatPage): class Meta: verbose_name_plural = "New_name" On Aug 26, 4:39 am, Steve Holden wrote: > On 8

Re: Overriding flatpages class meta

2010-08-25 Thread Steve Holden
On 8/25/2010 8:26 PM, Goran wrote: > I need another verbose_name_plural for Flat pages so i need to > override class meta for it right? How can I do that? > [Caveat: this is a guess from general Python knowledge] Have you tried creating a subclass of Flatpage, whose body simply declares a Meta cl

Overriding flatpages class meta

2010-08-25 Thread Goran
I need another verbose_name_plural for Flat pages so i need to override class meta for it right? How can I do that? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscrib

Re: flatpages and menu

2010-08-24 Thread Alec Shaner
want to hit the database for every page view. On Tue, Aug 24, 2010 at 3:00 AM, OliverMarchand wrote: > Dear all, > > I am thinking of creating a website that displays "mostly" database > content, but for special content I am using flatpages. Now somehow I > must put a l

flatpages and menu

2010-08-24 Thread OliverMarchand
Dear all, I am thinking of creating a website that displays "mostly" database content, but for special content I am using flatpages. Now somehow I must put a link to the flatpages somewhere, most likely in a menu. If I put the menu in my base template, then there is no way to insert th

Re: setting DEBUG=False disables flatpages

2010-06-08 Thread Michael
d and needs doc > improvement ... > > Directly from http://docs.djangoproject.com/en/dev/ref/contrib/flatpages/: > The middleware only gets activated for 404s – not for 500s or responses of > any other status code. It really is not good practice to convert a 404 or 500 error to a proper

Re: setting DEBUG=False disables flatpages

2010-06-08 Thread Dan Harris
You need to have a 500.html and a 404.html defined when DEBUG=False. See: http://code.djangoproject.com/ticket/3335 Hope this helps! Dan Harris dih0...@gmail.com On Jun 8, 2:56 pm, adrian wrote: > tracked the problem more down... > > the problem appeared when using own handler404/handler500 vi

Re: setting DEBUG=False disables flatpages

2010-06-08 Thread adrian
tracked the problem more down... the problem appeared when using own handler404/handler500 views and returning the invalid HttpResponse instead of HttpResponseNotFound/ HttpResponseServerError. This is not documented and needs doc improvement ... -- You received this message because you are subs

Re: setting DEBUG=False disables flatpages

2010-06-08 Thread Mike Dewhirst
On 8/06/2010 4:58pm, adrian wrote: Hello Guys, on all my projects I have the problem that setting DEBUG=False in settings.py disables flatpages (404 Pages are displayed). This also applies to newly created projects. This happens with Django version 1.2.1. Can someone confirm this with his

setting DEBUG=False disables flatpages

2010-06-07 Thread adrian
Hello Guys, on all my projects I have the problem that setting DEBUG=False in settings.py disables flatpages (404 Pages are displayed). This also applies to newly created projects. This happens with Django version 1.2.1. Can someone confirm this with his deployments? Additionally if running the

Re: don't work Flatpages

2010-06-01 Thread gerram
I decided this problem. The matter of it was SITE_ID in settings.py. The facto of the matter that Flatpages from box has default site example.com as default. If you create new your site before deleting example.com you get SITE_ID: 2 and etc for your site. After that you can delete example.com but

don't work Flatpages

2010-05-31 Thread gerram
Hi, everybody! I tried to set Flatpages about 3 days but I could get only "404" error in browser. If someone had a few time look at my settings: http://files.mail.ru/JXHUOU Enter for admin part: user:Django, pass:Django Regards. -- You received this message because you are subscri

Re: Providing flatpages initial data

2010-02-19 Thread Timothy Kinney
the general method I can apply it to all my database tables. Hope this helps someone. -Tim On Fri, Feb 19, 2010 at 1:09 PM, Timothy Kinney wrote: > I started playing with this last night and got about as far as you > mentioned here. What I want to be able to do, though, is write a python

Re: Providing flatpages initial data

2010-02-19 Thread Timothy Kinney
n Fri, Feb 19, 2010 at 11:13 AM, Rick Caudill wrote: > Hi all, > > I just came across a need to provide initial data for flatpages. I have > read before that people have asked to do this. It is easier than thought > :) > > 1. Create your content via the admin interface &

Providing flatpages initial data

2010-02-19 Thread Rick Caudill
Hi all, I just came across a need to provide initial data for flatpages. I have read before that people have asked to do this. It is easier than thought :) 1. Create your content via the admin interface 2. Run 'python manage.py dumpdata flatpages > data.json' 3. When you want t

Re: comments in flatpages

2010-02-16 Thread shaner
got some of this working, i'll leave this here so the next guy that searches can find some info install flatpages and comments, that much is easily found in the django docs flatpages comes with a field for enabling comments per flatpage, I'm not sure how that control works yet this

comments in flatpages

2010-02-16 Thread shaner
anyone setup comments with flatpages? doesn't appear to be documented anywhere other than each individually, maybe nobody wants it to be too easy -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send ema

Re: Cannot add inlines to Flatpages

2010-01-30 Thread Rodrigo
Ok, just restarted (I actually restarted many times) and it magically started working. On Jan 31, 12:47 am, Rodrigo wrote: > I'm following the tutorial on the book "Practical Django Projects", > and I just can't inline the SearchKeywords to Flatpages, maybe the >

Cannot add inlines to Flatpages

2010-01-30 Thread Rodrigo
I'm following the tutorial on the book "Practical Django Projects", and I just can't inline the SearchKeywords to Flatpages, maybe the problem lays in the fact that I'm using the development version of django. It doesn't output any error, it just shows the flatpage

hi.. supress the flatpages' fields' help texts

2010-01-06 Thread Ali Rıza Keleş
Hi all, How can I supress help_texts of flatpages' fields without modifying core code of django contrib. Thanks. -- Ali Rıza Keleş -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send ema

Storing flatpages outside the database?

2009-12-14 Thread Boris Schäling
I wonder if it's possible to store flatpages outside the database? It would be great if eg. the path to a title file and content file could be put into the flatpage database table (instead of entering the title and content directly). While I can simply copy files from a development computer

Re: FlatPages return 404 when attempting to edit.

2009-12-06 Thread TheLastBookworm
Correction: I meant fork and not "port". On Dec 6, 3:36 pm, TheLastBookworm wrote: > Hi, > > I'm getting a error when attempting to edit a flatpage. > > "Http404 at /admin/flatpages/flat/ > > App u'flatpages', model u'flat', not found

FlatPages return 404 when attempting to edit.

2009-12-06 Thread TheLastBookworm
Hi, I'm getting a error when attempting to edit a flatpage. "Http404 at /admin/flatpages/flat/ App u'flatpages', model u'flat', not found. " This is the same error I get when I try to edit a non-existent flatpage. After some googling I discovered that site I

Re: multilingual flatpages

2009-12-01 Thread Jani Tiainen
On Mon, 2009-11-30 at 16:36 -0800, Nev wrote: > Hey, > > Today I did a bunch of searching and reading to find what is the best > way to have flatpages presented in multiple languages. Flatpages > apparently don't support internationalization and I went down several >

Re: multilingual flatpages

2009-12-01 Thread andreas schmid
hi, i didnt work on that yet but i will in the next weeks because ill need the content translated on flatpages. wouldnt it be easier to subclass the flatpages model or to get the flatpages package and make the modifications there to get a custom_flatpages app? im thinkin that because im already

multilingual flatpages

2009-11-30 Thread Nev
Hey, Today I did a bunch of searching and reading to find what is the best way to have flatpages presented in multiple languages. Flatpages apparently don't support internationalization and I went down several avenues looking for the recommended way, and finding various things that appeare

Re: CSRF Flatpages

2009-11-29 Thread rebus_
url pattern (if you don't need custom view) and everything should work out fine i think. url(r'^login/$', 'login', {'template_name': 'registration/login.html'}, name='login'), [1] http://docs.djangoproject.com/en/dev/ref/contr

CSRF Flatpages

2009-11-28 Thread John Leith
I have a problem with the CSRF framework, and i'm just checking here to see if anyone else ran into this problem and hopefully found a solution. Here is my problem: I have a login form on the base template of my site. The home page is just a flatpage. My login processor is csrf protected. I have t

Re: Admin not looking in templates/admin/flatpages/flatpage for change_form.html

2009-11-20 Thread Nev
An update. The correct behaviour occurs when the site is served via apache and fcgi from my A Small Orange account. But the incorrect behaviour occurs when the site is served locally using 'manage.py runserver'. -- You received this message because you are subscribed to the Google Groups "Djang

Re: flatpages not finding site_media

2009-11-11 Thread neridaj
I figured it out, thanks. On Nov 11, 12:00 pm, neridaj wrote: > sorry, I'm just trying to use the dev server and added that url: > >     (r'^site_media/(?P.*)$', 'django.views.static.serve', >             {'document_root': '/Users/neridaj/django-templates/ > neridaj/'}), > > the url for static_m

Re: flatpages not finding site_media

2009-11-11 Thread neridaj
sorry, I'm just trying to use the dev server and added that url: (r'^site_media/(?P.*)$', 'django.views.static.serve', {'document_root': '/Users/neridaj/django-templates/ neridaj/'}), the url for static_media is being appended to the flatpage i.e., Failed to load source for: htt

Re: flatpages not finding site_media

2009-11-11 Thread Daniel Roseman
On Nov 11, 3:48 pm, neridaj wrote: > On Nov 11, 12:07 am, Daniel Roseman wrote: > > > > Have you set anything up to serve media files? > I have a symbolic link named site_media in my project directory. How does that answer the question? What is serving the media files? http://docs.djangoproje

Re: flatpages not finding site_media

2009-11-11 Thread neridaj
I have a symbolic link named site_media in my project directory. On Nov 11, 12:07 am, Daniel Roseman wrote: > On Nov 11, 7:50 am, neridaj wrote: > > > > > > > I'm trying to use some flatpages for static content and I don''t > > understand why the

Re: flatpages not finding site_media

2009-11-11 Thread Daniel Roseman
On Nov 11, 7:50 am, neridaj wrote: > I'm trying to use some flatpages for static content and I don''t > understand why they keep failing to load media files. I have my > template_dirs defined, media_root and media_url - when used in > template does not resolve t

flatpages not finding site_media

2009-11-10 Thread neridaj
I'm trying to use some flatpages for static content and I don''t understand why they keep failing to load media files. I have my template_dirs defined, media_root and media_url - when used in template does not resolve to media_root i.e., template contains: results in: Failed

Re: Admin not looking in templates/admin/flatpages/flatpage for change_form.html

2009-11-04 Thread Nev
I've still not managed to get this to do the documented behaviour. Anyone? Please. On Oct 27, 1:38 am, Nev wrote: > Hello, > > I have done the tinymce thing for my flatpages, but it only works if I > put mychange_form.htmlunder templates/admin. If I put it under > template

Admin not looking in templates/admin/flatpages/flatpage for change_form.html

2009-10-27 Thread Nev
Hello, I have done the tinymce thing for my flatpages, but it only works if I put my change_form.html under templates/admin. If I put it under templates/admin/flatpages or templates/admin/flatpages/flatpage it is ignored. I am using django 1.1.1. Can anyone tell me what I've missed. Do I ha

Problem with conflicting flatpages between vhosts

2009-10-24 Thread Adam Olsen
I've got a problem with flatpages. I've got a single apache instance running mod_python, and two different django sites that it's serving. Both django sites have completely different databases... different database engines even (one is postgres, one is sqlite3), but the flatpages

Re: Extending Django's Flatpages

2009-10-02 Thread Shawn Milochik
If you're trying to add template tags, check this out: http://docs.djangoproject.com/en/dev/howto/custom-template-tags/ Your custom tags go in a directory named "templatetags" in your app directory. Shawn --~--~-~--~~~---~--~~ You received this message because

Extending Django's Flatpages

2009-10-02 Thread When ideas fail
Hello, i've been having a look at this post on overmortal about Extending Django's Flatpages: http://www.overmortal.com/blog/post/17-extending-django-s-flatpages specifically this section " Finally, in order to continue using the flatpages/default.html template file as the si

Re: Flatpages - what am I missing to make these work (advice, please)?

2009-08-19 Thread allenh
Hi, I had the same problem with the SITE_ID mismatched. I also found you can just recognize the SITE_ID from the admin page by editing the site form and checking the URL like (http://localhost:8000/admin/sites/site/ 1/). The last number on URL is exactly the SITE_ID of your site name. Just a tip!

Re: Flatpages - what am I missing to make these work (advice, please)?

2009-08-19 Thread gegard
Thank you! That has resolved my problem. The admin shell does not show the site id number by default, so I supposed that removing the default 'example.com' and adding 'mysite' would enable Django to reuse id 1. I should have assumed otherwise - the new site was id == 2, of course. I should have e

  1   2   3   4   >