Re: Flatpages

2008-03-03 Thread Malcolm Tredinnick
On Mon, 2008-03-03 at 12:17 -0800, bfrederi wrote: > I am using flatpages on a production box, and whenever I don't set > DEBUG to True in the settings.py file, the middleware won't redirect > to my flatpages for some reason. It gives me a 'TemplateDoesNotExist: &

Flatpages

2008-03-03 Thread bfrederi
I am using flatpages on a production box, and whenever I don't set DEBUG to True in the settings.py file, the middleware won't redirect to my flatpages for some reason. It gives me a 'TemplateDoesNotExist: 404.html' error message. It works perfectly fine on another box, an

Re: Serving flatpages before other urls

2008-01-29 Thread Artiom Diomin
writes: | Is there anyway to change the order that the urls are checked? For | example I have an about us page that is generated by a url conf. I | want my designer to make his own about us page with flatpages and | therefore 'overwrite' the url that is autogenerated. I know right now |

Serving flatpages before other urls

2008-01-28 Thread Michael Newman
Is there anyway to change the order that the urls are checked? For example I have an about us page that is generated by a url conf. I want my designer to make his own about us page with flatpages and therefore 'overwrite' the url that is autogenerated. I know right now flatpages chec

Re: Flatpages and APPEND_SLASH=True

2008-01-03 Thread Ville Säävuori
This broke my site so I had to fix it. I ended up fixing the Flatpages app to behave with APPEND_SLASH=True. I added a ticket with a patch (also to docs): http://code.djangoproject.com/ticket/6309 - VS --~--~-~--~~~---~--~~ You received this message because you

Flatpages and APPEND_SLASH=True

2008-01-03 Thread Ville Säävuori
I'm not sure if this is a bug in my setup, a bug in Django or not a bug at all. I have the great APPEND_SLASH=True in my settings for canonical urls, and I'm using contrib.flatpages. Problem is, after the changes in r6582, all flatpages with url ending slash (ie, all of my flatpag

Re: flatpages and 404s

2007-12-07 Thread zero
*erch* seems as if I also trapped into the SITE_ID problem ... see here http://groups.google.com/group/django-users/browse_thread/thread/6b0c21bb395df46/a1c24b6c76dc6ac1?hl=de&lnk=gst&q=flatpages#a1c24b6c76dc6ac1 On 8 Dez., 02:04, zero <[EMAIL PROTECTED]> wrote: > hm ..

Re: flatpages and 404s

2007-12-07 Thread zero
make flatpages work. Any idea? settings.py: MIDDLEWARE_CLASSES = ( 'django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.flatpag

Re: translation and flatpages

2007-10-26 Thread AniNair
Hi... Thanks for the help.Btw, Isn't 17 hours n 24 min 'a bit more than' 16 hours? If not, then how much is 'bit more'? Please ignore if you don't know. Do a google search?lol.Thanks all the same. --~--~-~--~~~---~--~~ You received this message because

Re: translation and flatpages

2007-10-25 Thread Malcolm Tredinnick
On Thu, 2007-10-25 at 23:25 -0700, AniNair wrote: > Cannot internationalize them? It's generally considered polite to wait a bit more than 16 hours before posting a "hurry up" repost when nobody has responded. There is no core Django support for translating content stored in the database. Do a g

Re: translation and flatpages

2007-10-25 Thread AniNair
Cannot internationalize them? --~--~-~--~~~---~--~~ 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 [E

translation and flatpages

2007-10-25 Thread AniNair
Hi.. Is it possible to translate flatpages? If yes, how? Please suggest any docs available (couldn't find any). Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To pos

Re: FLATPAGES

2007-10-25 Thread AniNair
Thanks Marcin, The problem is solved. The issue was a result of site_id not matching. (the one in settings.py and the site_id I was trying to use. (Thanks to the help from satheesh. :-) )) --~--~-~--~~~---~--~~ You received this message because you are subs

Re: FLATPAGES

2007-10-25 Thread Marcin Mierzejewski
Hi, > I get the add flat page in admin, but after adding a flat page,when i > try to 'view on site', it gives me a 404 error.Can you tell me why > isn't FlatpageFallbackMiddleware working?And yes, I did add the > trailing slashes as url. (eg: /about/). Please advice. Thank you. Did you add dja

FLATPAGES

2007-10-24 Thread AniNair
Hi . I am using django .97 , pre with python 2.5.1. I am trying to use flat pages, this is my middleware_cllasses in settings MIDDLEWARE_CLASSES = ( 'django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.auth.middleware.Au

Re: Flatpages

2007-10-10 Thread AniNair
Thank alot for the reply. I tried that, then django won't return 404 error and tinymce won't work too. django returns [10/Oct/2007 18:04:44] "GET /admin/jsi18n/ HTTP/1.1" 200 803 Thats all. No ref to /media/js/tiny_mce/tiny_mce.js Any ideas? --~--~-~--~~~---~--~

Re: flatpages and 404s

2007-10-10 Thread [EMAIL PROTECTED]
Ah ha. never mind, i found the problem. I have a context processor that is run on every page to determine if a new flatpage needs to be created (we are using them in a help system). Unfortunately, this was being run on the flatpag itself and couldn't resolve the url as a view and so threw a 404.

Re: Flatpages

2007-10-10 Thread peschler
Try to prepend a slash to your src attribute: Should be /media/js/tiny_mce/tiny_mce.js not media/js/tiny_mce/tiny_mce.js hope that helps pe On 10 Okt., 13:50, AniNair <[EMAIL PROTECTED]> wrote: > Hi, > I am trying to add tinymce to flatpages in admin using > change_fro

Flatpages

2007-10-10 Thread AniNair
Hi, I am trying to add tinymce to flatpages in admin using change_from.html in admin/flatpages/flatpage. this is change_form.html {% extends "admin_copies/change_form.html" %} {% block extrahead %}{{ block.super }} {% endblock %} Django is returning error that [10/Oct/2007 17:0

flatpages and 404s

2007-10-10 Thread [EMAIL PROTECTED]
Hi all, I have (as far as I am aware) installed the flatpages app correctly, set up the MIDDLEWARE_CLASSES correctly, got a flatpages/default.html template on my template path, got the leading and trailing slashes on my flatpages (created via the admin interface) adn my SITE_ID is set to the

Re: flatpages

2007-10-05 Thread AndrewK
May be you forgot to add trailing slash to your flatpage url. On Sep 23, 11:05 pm, AniNair <[EMAIL PROTECTED]> wrote: > I tried doing it without the url, it returns a 404 error. The doc says > that Each time any Django application raises a 404 error, the > middleware check

Re: Django Flatpages With Memcache as storage location

2007-09-26 Thread Peter Pluta
Ross Poulton wrote: > > > Try creating a template called '404.html' (Even if it's empty for > starters; but you should put a useful message in there before go-live) > and see if your flatpages work with Debug turned off. > > > > > > I have

Re: flatpages

2007-09-23 Thread AniNair
I tried doing it without the url, it returns a 404 error. The doc says that Each time any Django application raises a 404 error, the middleware checks the flatpages database for the requested URL as a last resort. Yes I have added the middleware

Re: flatpages

2007-09-23 Thread AniNair
Hi... Can you tell me then what should the url cof be like? It links the url to the function in the view mod. If there is no function in view then? I have to give the url i belive Thank you --~--~-~--~~~---~--~~ You received this message because you are sub

Re: flatpages

2007-09-21 Thread AndrewK
You don't need view for you flatpages. View is provided by the fratpages application. On Sep 21, 6:30 am, AniNair <[EMAIL PROTECTED]> wrote: > Hi... > Can someone help me with flat pages? I tried exactly what they say > in the pagehttp://www.djangoproject.com/documentatio

flatpages

2007-09-21 Thread AniNair
Hi... Can someone help me with flat pages? I tried exactly what they say in the page http://www.djangoproject.com/documentation/flatpages/ I get the html template to render but the contents are missing. Plz advice. Thank you my template code is {{ flatpage.title }} Privacy

Re: Django Flatpages With Memcache as storage location

2007-09-17 Thread scum
OK - fixed it for me, kinda... I was pushing the flatpage content though the textile markup plugin and removing this seemed to fix the 404s. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: Django Flatpages With Memcache as storage location

2007-09-17 Thread scum
I'm having the same problem over here - after checking out the latest svn version (6373), my own middleware flat out broke (response object does not have header instance). When I removed that middleware, all my flat pages are throwing 404's. Super weak. --~--~-~--~~~

Re: Django Flatpages With Memcache as storage location

2007-09-16 Thread Ross Poulton
Try creating a template called '404.html' (Even if it's empty for starters; but you should put a useful message in there before go-live) and see if your flatpages work with Debug turned off. --~--~-~--~~~---~--~~ You received this message

Re: Django Flatpages With Memcache as storage location

2007-09-16 Thread Peter Pluta
ages.middleware.FlatpageFallbackMiddleware', >> > > > ) >> >> > > > Any help or suggestions would be greatly appreciated.- Hide quoted >> text - >> >> > > - Show quoted text - >> >> > I'v

Re: subclassing flatpages model

2007-09-12 Thread Collin Grady
For the record, you cannot subclass django models yet :) --~--~-~--~~~---~--~~ 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 t

Re: subclassing flatpages model

2007-09-12 Thread Thomas Badran
I do exactly this by adding a template admin/flatpages/flatpage/change_form.html That simply looks like (your tiny_mce location may vary): {% extends "admin/change_form.html" %} {% block extrahead %}{{ block.super }} {% endblock %} Hope that helps Tom On Wed, 2007-09-12 at 1

subclassing flatpages model

2007-09-12 Thread Milan Andric
Hi, I would like to add tinymce to my flatpages in the admin. But the only way I can figure out how to do this is modifying django/contrib/ flatpages/models.py. Is there a way I can subclass the flatpages model and reference it from the django flatpage app? I'm confused. Thanks for

Weird problem with Flatpages

2007-09-12 Thread shabda
I have deployed a app on Apache with mod_python. I have the flat pages app+middleware installed. If I let debug = True in my settings.py and try to access any flatpage url they work fine. But if I put the debug = False in settings.py, the flatpages return 500 http respnse. Any way I can try to

Re: Django Flatpages With Memcache as storage location

2007-09-10 Thread Sasha Weberov
On Sep 9, 8:52 pm, Brian Morton <[EMAIL PROTECTED]> wrote: > What happens if you use a simple or dummy cache? > > On Sep 9, 2:51 pm, Sasha Weberov <[EMAIL PROTECTED]> wrote: > > > > > On Sep 9, 6:15 am, Thomas Badran <[EMAIL PROTECTED]> wrote: > > > > My best guess would be that you are missing

Re: Django Flatpages With Memcache as storage location

2007-09-09 Thread Brian Morton
What happens if you use a simple or dummy cache? On Sep 9, 2:51 pm, Sasha Weberov <[EMAIL PROTECTED]> wrote: > On Sep 9, 6:15 am, Thomas Badran <[EMAIL PROTECTED]> wrote: > > > > > My best guess would be that you are missing the / at the start and end > > of the url > > > Tom > > > On Sat, 2007-0

Re: Django Flatpages With Memcache as storage location

2007-09-09 Thread Sasha Weberov
On Sep 9, 6:15 am, Thomas Badran <[EMAIL PROTECTED]> wrote: > My best guess would be that you are missing the / at the start and end > of the url > > Tom > > > > On Sat, 2007-09-08 at 21:00 -0700, Sasha Weberov wrote: > > All of my flatpage pages throw a 404. If I turn debug on which > > disable

Re: Django Flatpages With Memcache as storage location

2007-09-09 Thread Thomas Badran
My best guess would be that you are missing the / at the start and end of the url Tom On Sat, 2007-09-08 at 21:00 -0700, Sasha Weberov wrote: > All of my flatpage pages throw a 404. If I turn debug on which > disabled cacheing they re-appear. I've tried restarting memcached and > my SCGI server

Django Flatpages With Memcache as storage location

2007-09-08 Thread Sasha Weberov
All of my flatpage pages throw a 404. If I turn debug on which disabled cacheing they re-appear. I've tried restarting memcached and my SCGI server as well as Apache and it did nothing. I've also svn'd the latest Django trunk; the problem still persists. Anyone got any idea what can possibly be ca

Re: Why aren't my flatpages working?

2007-08-08 Thread [EMAIL PROTECTED]
On Aug 8, 10:48 am, "Jay Parlar" <[EMAIL PROTECTED]> wrote: > On 8/8/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > > > I dunno. Never had a problem with them before. Lemme try the subdomain > > thing. > > Also, make sure you've got all the correct templates and everything, > as described

Re: Why aren't my flatpages working?

2007-08-08 Thread Jay Parlar
On 8/8/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > I dunno. Never had a problem with them before. Lemme try the subdomain > thing. Also, make sure you've got all the correct templates and everything, as described in the documentation. That's caused issues for me as well. Jay P. --~--~-

Re: Why aren't my flatpages working?

2007-08-08 Thread [EMAIL PROTECTED]
set up as test.domain.com, > > could that hose it? Should I just have domain.com? > > Not really sure :) All I know is that I've had 404s with flatpages > before, and it's always because I forgot to change out the default > "example.com" in Sites. > > Ja

Re: Why aren't my flatpages working?

2007-08-08 Thread Jay Parlar
On 8/8/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Unless it's the subdomain... I've got it set up as test.domain.com, > could that hose it? Should I just have domain.com? Not really sure :) All I know is that I've had 404s with flatpages before, and i

Re: Why aren't my flatpages working?

2007-08-08 Thread [EMAIL PROTECTED]
Unless it's the subdomain... I've got it set up as test.domain.com, could that hose it? Should I just have domain.com? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, sen

Re: Why aren't my flatpages working?

2007-08-08 Thread [EMAIL PROTECTED]
> > > > > OK, I've looked over this again: > >http://www.djangoproject.com/documentation/flatpages/ > > > I've got > > MIDDLEWARE_CLASSES = ( > > 'django.middleware.common.CommonMiddleware', > > 'django.con

Re: Why aren't my flatpages working?

2007-08-08 Thread Jay Parlar
On 8/8/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > OK, I've looked over this again: > http://www.djangoproject.com/documentation/flatpages/ > > I've got > MIDDLEWARE_CLASSES = ( > 'django.middleware.common.CommonMiddleware', > &#x

Why aren't my flatpages working?

2007-08-08 Thread [EMAIL PROTECTED]
OK, I've looked over this again: http://www.djangoproject.com/documentation/flatpages/ I've got MIDDLEWARE_CLASSES = ( 'django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.auth.

Re: flatpages issues

2007-07-16 Thread John-Scott Atlakson
Ah ha! I just looked through my settings.py file and noticed the setting: SITE_ID = 1 I decided to double check the raw data for the django_sites table and my site id is '2'. (I think id 1 used to be 'example.com' but I had deleted it instead of renaming it, thus creating a mismatch with SITE_ID).

Re: flatpages issues

2007-07-16 Thread Jacob Kaplan-Moss
On 7/16/07, John-Scott <[EMAIL PROTECTED]> wrote: > Can someone in the know confirm or deny that adding the catch-all line > to urls.py is in fact required to invoke flatpages? No, it's not; the fallback middleware works fine for me. If it's not working for you, chances ar

Re: flatpages issues

2007-07-16 Thread John-Scott
Can someone in the know confirm or deny that adding the catch-all line to urls.py is in fact required to invoke flatpages? I checked out the source for djangoproject.com and it has this as the last item in urlpatterns: (r'', include('django.contrib.flatpages.urls')), If this

Re: flatpages issues

2007-07-13 Thread John-Scott Atlakson
Yes sir. I followed the examples in the official docs literally and in order (http://www.djangoproject.com/documentation/flatpages/#installation steps 1-3). That worked fine and I was able to immediately start creating flatpages via the admin interface. But I cannot view flatpages on the site. I

Re: flatpages issues

2007-07-13 Thread Jacob Kaplan-Moss
Hi John-Scott -- Did you add 'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware' to your ``MIDDLEWARE_CLASSES`` setting? Jacob --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To p

flatpages issues

2007-07-13 Thread John-Scott
hi gang, I'm trying out the flatpages app but not having a great deal of success. I've followed the instructions at http://www.djangoproject.com/documentation/flatpages/. I've added a directory in my templates folder (templates/flatpages/ default.html) according to the

Re: flatpages and i18n???

2007-06-24 Thread Eric St-Jean
nevermind... i should have looked at the flatpages module before posting: it's super simple. I'll just copy it to my apps and modify it Eric St-Jean a écrit : > Hi, > Is there a way to specify different flatpages for the same url, but for > a different language??? >

flatpages and i18n???

2007-06-22 Thread Eric St-Jean
Hi, Is there a way to specify different flatpages for the same url, but for a different language??? So it would default to the one page if there's only one defined, but if language is fr-fr and there's a page of the same url defined for tha language, it would return that version inst

Re: Extending Flatpages

2007-06-02 Thread Nathaniel Whiteinge
Malcom is right, they're not as bad as they sound. :-) In the case of the two things you mentioned wanting, latest news and a calendar, the following existing template tags may just hook you up: James Bennett's get_latest__ is copy-and-paste-able and works very well. I use a slightly modified ve

Re: Extending Flatpages

2007-06-02 Thread Michael
Or you might also want to check out Generic Content Tags: http://code.google.com/p/django-template-utils/wiki/GenericContentTags Part of the Django template utils that James put together: http://code.google.com/p/django-template-utils/ -Michael On Jun 3, 1:14 pm, Malcolm Tredinnick <[EMAIL PROT

Re: Extending Flatpages

2007-06-02 Thread Malcolm Tredinnick
On Sat, 2007-06-02 at 14:54 -0700, [EMAIL PROTECTED] wrote: > Oh no, that can not be! I just read this "Writing your own template > tags", it is quite complicated. Isn't there another way? Something > like "While you fetch the text for the flatpage, check the view > 'random_testemonial' and then g

Re: Extending Flatpages

2007-06-02 Thread James Bennett
On 6/2/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > As said in the docs http://www.lawrence.com/about/staph/ is a flatpage > but it contains extra date like that calendar and the latest news. So > I actually just want to know how to get this additional dynamic > content on my flatpage. Thos

Re: Extending Flatpages

2007-06-02 Thread [EMAIL PROTECTED]
doing. They are deceptively powerful. > > .. __:http://www.djangoproject.com/documentation/templates_python/#writing-... > .. __:http://www.b-list.org/weblog/2006/06/07/django-tips-write-better-temp... > > Just put them in your flatpages/default.html template. > - whiteinge > > On Ju

Re: Extending Flatpages

2007-06-02 Thread Nathaniel Whiteinge
-tags Just put them in your flatpages/default.html template. - whiteinge On Jun 2, 10:42 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi All. > > I have got a question about flatpages. Supposed I have a "static" page > that says how great my product i

Extending Flatpages

2007-06-02 Thread [EMAIL PROTECTED]
Hi All. I have got a question about flatpages. Supposed I have a "static" page that says how great my product is, I could use a flatpage for this. No Problem. But if I want to have something like a random quote or testimonial on that page too, is that possible? As said in the

Re: Problem with flatpages and absolute urls

2007-05-31 Thread orestis
OK never mind about this. It was my error, I was creating some URLs like this: /{{var}}/path1/path2/ and sometimes var wasn't set so the url becomes: //path1/path2/ which replaces everything in the browser... --~--~-~--~~~---~--~~ You received this message bec

Problem with flatpages and absolute urls

2007-05-31 Thread orestis
I have a problem with flatpages. When putting links in my templates, I use absolute URLs without prepending http://hostname.com/ For example, Home gets interpreted by the browser as a link to http://hostname.com/, and all is correct. However, when a flatpage is being served, those links get

Re: Flatpages not working on Apache+mod_python

2007-05-16 Thread Nimrod A. Abing
On 5/17/07, Jeremy Dunck <[EMAIL PROTECTED]> wrote: > > On 5/16/07, Jeremy Dunck <[EMAIL PROTECTED]> wrote: > > Already done, though under-documented. > > http://www.djangoproject.com/documentation/templates/#django-contrib-markup > > Ah, here, too: > http://www.djangoproject.com/documentation/add

Re: Flatpages not working on Apache+mod_python

2007-05-16 Thread Jeremy Dunck
On 5/16/07, Jeremy Dunck <[EMAIL PROTECTED]> wrote: > Already done, though under-documented. > http://www.djangoproject.com/documentation/templates/#django-contrib-markup Ah, here, too: http://www.djangoproject.com/documentation/add_ons/#markup --~--~-~--~~~---~--~---

Re: Flatpages not working on Apache+mod_python

2007-05-16 Thread Jeremy Dunck
On 5/16/07, Nimrod A. Abing <[EMAIL PROTECTED]> wrote: ... > I am using middleware as described in the docs. I don't see how to use > flatpages as a view in the docs. How do you do that? As the last entry in your urlpatterns, include this: (r'^(.*)/$','django.

Re: Flatpages not working on Apache+mod_python

2007-05-16 Thread Nimrod A. Abing
On 5/17/07, Jeremy Dunck <[EMAIL PROTECTED]> wrote: > > On 5/16/07, Nimrod A. Abing <[EMAIL PROTECTED]> wrote: > > Can anyone here provide pointers on how to get flatpages to work > > properly under Apache and mod_python? > > From yo

Re: Flatpages not working on Apache+mod_python

2007-05-16 Thread Jeremy Dunck
On 5/16/07, Nimrod A. Abing <[EMAIL PROTECTED]> wrote: > Can anyone here provide pointers on how to get flatpages to work > properly under Apache and mod_python? >From your custom 404, you'll want to return django.http.HttpResponseNotFound rather that HttpResponse. Also, ar

Flatpages not working on Apache+mod_python

2007-05-16 Thread Nimrod A. Abing
Hello, I am using Django 0.96 and I am currently having problems getting flatpages middleware to work under Apache with mod_python. I am pretty sure this is mod_python related since flatpages work fine using the development server. I have found at least one thread the mentions this problem

i18n for flatpages question

2007-04-19 Thread zehi
Hi, I would need to use i18n for flatpages. Is that possible and if yes, could you share how to define translation string in flatpages templates. Regarding to that, I thought about 'flat page builder' app with ability to divide content to smaller blocks (paragraphs, ..) The great op

Re: Flatpages with images

2007-04-07 Thread Frankie Robertson
On 07/04/07, Alessandro Ronchi <[EMAIL PROTECTED]> wrote: > > Is it possible to add images to flatpages with a wysiwyg editor, > uploading them to a folder and using them into the page? There's a rather dated, but probably still working (until newforms-admin at least, which&#

Re: Flatpages with images

2007-04-07 Thread Ramdas S
I make a static page with images and just cut and paste the HTML from FrontPage or Dreamweaver. The images need to be stored on a server that can server images viz Apache. Ramdas On Apr 7, 6:09 pm, "Alessandro Ronchi" <[EMAIL PROTECTED]> wrote: > Is it possible to add images

Flatpages with images

2007-04-07 Thread Alessandro Ronchi
Is it possible to add images to flatpages with a wysiwyg editor, uploading them to a folder and using them into the page? Thanks in advance. -- Alessandro Ronchi Skype: aronchi - Wengo: aleronchi http://www.alessandroronchi.net - Il mio sito personale http://www.soasi.com - Sviluppo Software e

Re: Development in LAN. URLs of FlatPages. Best Practices?

2007-03-21 Thread Aidas Bendoraitis
> in the settings. > > > > > would it be correct to say that the problem would > > > be solved if there was a way to access project settings from inside > > > flatpages? > > > > Not really. You don't define what you mean, saying "from i

Re: Development in LAN. URLs of FlatPages. Best Practices?

2007-03-21 Thread [EMAIL PROTECTED]
;t want on your production setup. I use flatpages for all kinds of stuff, and this setup works well. Derek --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send ema

Re: Development in LAN. URLs of FlatPages. Best Practices?

2007-03-21 Thread ashwoods
ld > > be solved if there was a way to access project settings from inside > > flatpages? > > Not really. You don't define what you mean, saying "from inside > faltpages" - whether you're talking about models, views, middleware, > or something else from the

Re: Development in LAN. URLs of FlatPages. Best Practices?

2007-03-20 Thread Aidas Bendoraitis
e development site. The root directory is set in the settings. > would it be correct to say that the problem would > be solved if there was a way to access project settings from inside > flatpages? Not really. You don't define what you mean, saying "from inside faltpages" - wh

Re: Development in LAN. URLs of FlatPages. Best Practices?

2007-03-20 Thread mezhaka
have you found any solution? i am interested in handling this situation as well. would it be correct to say that the problem would be solved if there was a way to access project settings from inside flatpages? On Mar 5, 12:44 pm, "Aidas Bendoraitis" <[EMAIL PROTECTED]> wrote: >

Re: Initial data for Flatpages?

2007-03-07 Thread Russell Keith-Magee
On 3/4/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > I am looking for some way to add initial Flatpages data to my app. I > am open to either SQL or Django ORM. The pattern of /sql/ > .sql doesn't seem to apply to Flatpages. How can I do > this? In the cur

Development in LAN. URLs of FlatPages. Best Practices?

2007-03-05 Thread Aidas Bendoraitis
ave a similar situation, how are you dealing with the URLs of FlatPages? The problem is that in the development version the URLs are like /example/about/ and in the published version they are like /about/. So we need to modify all the flatpages when transfer the data from the development version t

Re: Initial data for Flatpages?

2007-03-04 Thread [EMAIL PROTECTED]
Thanks, this is perfect. On Mar 4, 2:01 am, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Sun, 2007-03-04 at 01:01 +, [EMAIL PROTECTED] wrote: > > I am looking for some way to add initial Flatpages data to my app. I > > am open to either SQL or Django ORM.

Re: Initial data for Flatpages?

2007-03-03 Thread Malcolm Tredinnick
On Sun, 2007-03-04 at 01:01 +, [EMAIL PROTECTED] wrote: > I am looking for some way to add initial Flatpages data to my app. I > am open to either SQL or Django ORM. The pattern of /sql/ > .sql doesn't seem to apply to Flatpages. How can I do > this? Try this: http://www

Initial data for Flatpages?

2007-03-03 Thread [EMAIL PROTECTED]
I am looking for some way to add initial Flatpages data to my app. I am open to either SQL or Django ORM. The pattern of /sql/ .sql doesn't seem to apply to Flatpages. How can I do this? --~--~-~--~~~---~--~~ You received this message because yo

Re: problem with flatpages and debug=false

2007-02-05 Thread Rob Hudson
This is a known bug: http://code.djangoproject.com/ticket/3335 On Feb 5, 8:53 am, patrickk <[EMAIL PROTECTED]> wrote: > when I go to one of the flatpages on our site (not admin), I´m > getting "404 page not found" - but only when debug=False. > with debug=True, everyth

problem with flatpages and debug=false

2007-02-05 Thread patrickk
when I go to one of the flatpages on our site (not admin), I´m getting "404 page not found" - but only when debug=False. with debug=True, everything´s fine. any ideas? thanks, patrick --~--~-~--~~~---~--~~ You received this message because you are

Re: The flatpages app question

2007-01-14 Thread zehi
t; wrote: Hello, Regarding thehttp://www.djangoproject.com/documentation/flatpages/I try to: 1 based on django/contrib/flatpages/models.py my app named b - O.K. 2 I'm trying to add to class FlatPage: keywords = models.CommaSeparatedIntegerField(_('keywords'), maxlength=200)

The flatpages app question

2007-01-14 Thread zehi
Hello, Regarding the http://www.djangoproject.com/documentation/flatpages/ I try to: 1 based on django/contrib/flatpages/models.py my app named b - O.K. 2 I'm trying to add to class FlatPage: keywords = models.CommaSeparatedIntegerField(_('keywords')

Re: flatpages with content entirely in template

2007-01-03 Thread James Tauber
raise the question why djangoproject.com does the homepage as a flatpage rather than direct_to_template generic view. If I had to guess, I'd say it's because direct_to_template didn't exist until revision 1247 of Django, and so when the site was originally put together flatpages

Re: flatpages with content entirely in template

2007-01-03 Thread James Bennett
n 1247 of Django, and so when the site was originally put together flatpages were the only option. -- "May the forces of evil become confused on the way to your house." -- George Carlin --~--~-~--~~~---~--~~ You received this message because you are

Re: flatpages with content entirely in template

2007-01-03 Thread James Tauber
eople using template-only flatpages just going ahead and making flatpage database records with dummy title/content just to specify the template to use? (and is this indeed what djangoproject.com itself is doing?) Off the top of my head, I'd say it depends on how many "template-only&qu

Re: flatpages with content entirely in template

2007-01-03 Thread James Bennett
On 1/3/07, James Tauber <[EMAIL PROTECTED]> wrote: Or are people using template-only flatpages just going ahead and making flatpage database records with dummy title/content just to specify the template to use? (and is this indeed what djangoproject.com itself is doing?) Off the top

flatpages with content entirely in template

2007-01-03 Thread James Tauber
The djangoproject.com site itself seems to use flatpages with the content entirely in the template. For example, http://code.djangoproject.com/browser/djangoproject.com/ django_website/templates/flatfiles/homepage.html doesn't reference flatpage.title or flatpage.content a

Re: Ordering flatpages?

2006-12-24 Thread Paul Smith
On Dec 22, 7:57 am, "David Blewett" <[EMAIL PROTECTED]> wrote: Paul Smith wrote: > Another thing on my mind is > what would happen if my flatpages start getting all hierarchical on > me... has anyone had to figure out how to let users manage objects with > somet

Re: Ordering flatpages?

2006-12-22 Thread David Blewett
Paul Smith wrote: Another thing on my mind is what would happen if my flatpages start getting all hierarchical on me... has anyone had to figure out how to let users manage objects with something like a file/folder tree? You could use the MPTT (modified pre-order tree traversal) app to make

Re: Ordering flatpages?

2006-12-22 Thread patrick k.
ition". If you´re interested, I can send you the files ... btw, jQuery is needed for this one since we use js a for (re)ordering. patrick Am 22.12.2006 um 01:46 schrieb Paul Smith: So I'm working on this site in Django, and turns out there's quite a bit of static flatpage

Re: Ordering flatpages?

2006-12-21 Thread Chris Ryland
nd is what would happen if my flatpages start getting all hierarchical on me... has anyone had to figure out how to let users manage objects with something like a file/folder tree? Gee, maybe something simple like Zope's file/folder TTW hierarchy with editing? ;-) --~--~-~--~~--

Ordering flatpages?

2006-12-21 Thread Paul Smith
So I'm working on this site in Django, and turns out there's quite a bit of static flatpages-style content involved. I've extended flatpages (well, started with flatpages and built my own), added rich text editing and so on, and I'm building some navigation dynamical

Re: Flatpages and DEBUG=False

2006-09-16 Thread Jani
> maybe this is the problem 'default.hmlt', did you check it? I've > generated the same error > when I've wrote, in default.html, incorrect path to parent template. > do you have in root template director 404.html file? missing this file > also generated error > in my web app when I set DEBUG=Fals

Re: Flatpages and DEBUG=False

2006-09-16 Thread Jakub Krajniak
Jani wrote: > I have a weird problem with flatpages. Everything works fine if I have > DEBUG=True in the settings.py. However, when I change DEBUG=False > flatpages gives error: (...) > File > "/opt/local/lib/python2.4/site-packages/django/template/loader_tags.py",

<    1   2   3   4   >