Re: CMS for django

2010-11-14 Thread Kai Diefenbach
Hi, On 2010-11-15 00:37:29 +0100, Tim Johnson said: I would welcome comments on what CMS is compatible with django. You might look at LFC: http://www.lfcproject.com Kai -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this

Re: get_object_or_404

2010-11-14 Thread Knut Ivar Nesheim
try: obj = Model.objects.get(x = y) except Model.DoesNotExist: On Mon, Nov 15, 2010 at 6:23 AM, Akn wrote: > Hi, > I would like to use get_object to retrieve an object form the > database, but if the object does not exist I do not want to display an > error

get_object_or_404

2010-11-14 Thread Akn
Hi, I would like to use get_object to retrieve an object form the database, but if the object does not exist I do not want to display an error page(404). Is there any command that does that. ob=get_object(Table,x=y) if not ob -- You received this message because you are subscribed to

Re: CMS for django

2010-11-14 Thread Kenneth Gonsalves
On Sun, 2010-11-14 at 14:37 -0900, Tim Johnson wrote: > I would welcome comments on what CMS is compatible with django. > I have seen much on the web regarding this topic, but I would > suspect that from this ML I am much more likely to hear directly > from someone who is deploying a CMS with

Re: CMS for django

2010-11-14 Thread Tim Johnson
Thanks for the responses. -- Tim tim at johnsons-web.com or akwebsoft.com http://www.akwebsoft.com -- 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 unsubscribe from this

Re: Are multiple databases supported by the testing framework?

2010-11-14 Thread Russell Keith-Magee
On Mon, Nov 15, 2010 at 6:16 AM, churris wrote: > Hi Ramiro, > > I've tried that, but those notes are just to flush the second db, but > in this case, the issue is that the database is not even getting > created at all. Multi-db is supported under testing, and Django's own

Re: CMS for django

2010-11-14 Thread Michael Sprayberry
I too like django-cms, although it has not been updated in a while it is still a good CMS. Plus the fact the CMS was built exclusively for Django. If you are a news media I would suggest using Ellington CMS but this is a costly adventure and sure only be used when there is a substantial amount

Re: CMS for django

2010-11-14 Thread Robbington
Depends what you want to do friend, The admin interface is pretty extensible on its own, flatpages etc. but if you are looking for some ready built options Django CMS is worth a look http://www.django-cms.org/ -- You received this message because you are subscribed to the Google Groups

CMS for django

2010-11-14 Thread Tim Johnson
Greetings: I would welcome comments on what CMS is compatible with django. I have seen much on the web regarding this topic, but I would suspect that from this ML I am much more likely to hear directly from someone who is deploying a CMS with django. thanks in advance -- Tim tim at

Re: Can't move down then up the directory tree for inserting of html files

2010-11-14 Thread Brian
Daniel, thanks for the help!, I really appreciate it. Believe me, I simplified this to nothing: 1) I have LOGO.html in all directories with only the current directory name in the html file (/lib = directory of LOGO.html file) 2) the home.html file has about 30 deferent include statements so I

Re: Automatically assume "models." prefix in models.py

2010-11-14 Thread Michael Sprayberry
hello James,   I suppose you could use from django.db.models import WhatEver   This would definitly work but I don't know if it is the way you want to go. Sincerely, Michael --- On Sun, 11/14/10, James wrote: From: James Subject: Automatically

Re: Are multiple databases supported by the testing framework?

2010-11-14 Thread churris
Hi Ramiro, I've tried that, but those notes are just to flush the second db, but in this case, the issue is that the database is not even getting created at all. On Nov 15, 8:59 am, Ramiro Morales wrote: > On Sun, Nov 14, 2010 at 6:41 PM, churris wrote:

Re: Are multiple databases supported by the testing framework?

2010-11-14 Thread Ramiro Morales
On Sun, Nov 14, 2010 at 6:41 PM, churris wrote: > I'm using django 1.2, and I had to setup a second database on my > project. As soon as I setup the second connection and the router on my > project, all my test cases which aren't even referring to that second > database

Are multiple databases supported by the testing framework?

2010-11-14 Thread churris
I'm using django 1.2, and I had to setup a second database on my project. As soon as I setup the second connection and the router on my project, all my test cases which aren't even referring to that second database started to fail. Running the application works fine, syncdb works fine, is just the

Re: OT: getting strange attempted gets

2010-11-14 Thread Federico Capoano
No one is attacking your server, that's just the django server telling you what's going on in your app (when you perform any action the server logs it). On Nov 14, 4:50 pm, John Fabiani wrote: > Hi, > I'm a newbie to not only django but web programming in general. > > I

Re: OT: getting strange attempted gets

2010-11-14 Thread Shawn Milochik
On Sun, Nov 14, 2010 at 1:23 PM, John Fabiani wrote: > On Sunday, November 14, 2010 09:19:01 am Shawn Milochik wrote: >> It's definitely possible. I've seen that myself before. >> >> Shawn > > While in this runserver mode is my database password exposed? > > Johnf I don't

Re: OT: getting strange attempted gets

2010-11-14 Thread John Fabiani
On Sunday, November 14, 2010 09:19:01 am Shawn Milochik wrote: > It's definitely possible. I've seen that myself before. > > Shawn While in this runserver mode is my database password exposed? Johnf -- You received this message because you are subscribed to the Google Groups "Django users"

Re: Form Functionality

2010-11-14 Thread werefr0g
Hi Matt, I think your form should use GET method, not POST method: there is no modification implied when submitting it. Now, I'm perfectly fine using parameters in the url as it is meaningful: your accessing the search ressource and passing it a parameter. It's different for a ressource

Need some information about the site washingtonpost.com developed using Django..

2010-11-14 Thread Santosh Gupta
Hi Adrian, This is Santosh Gupta working in Accenture, India as project lead and J2EE architect. I got your reference from Django mailing list. I need some information about washingtonpost.com. This information I need to tell my management & team about the usage of Django in washingtonpost.com

Re: OT: getting strange attempted gets

2010-11-14 Thread Shawn Milochik
It's definitely possible. I've seen that myself before. Shawn -- 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 unsubscribe from this group, send email to

Nested Categories in Admin

2010-11-14 Thread Federico Capoano
Hi all, I would like to find a way to get categories and subcategories displayed in the admin, in the form of a multiple select. Like: parent child1 child2 parent2 child3 Do I have to make a custom field or is there already a solution around? Thanks -- You received this message

Set Language in the Admin

2010-11-14 Thread Federico Capoano
Hi guys, i'm developing an app in 3 languages, en, es and it. My browser accepts all of them with priority to italian. Since I've done that the admin started to show up in italian. How can I force it back to english? In the setting I put LANGUAGE_CODE = 'en-gb' -- You received this message

OT: getting strange attempted gets

2010-11-14 Thread John Fabiani
Hi, I'm a newbie to not only django but web programming in general. I have noticed that when I run my "python mange.py runserver" command I see strange entries that have nothing to do with my programming efforts. GET some URL (not mine) returns 404 or CONNECTION some IP address (not on my

Re: Can't move down then up the directory tree for inserting of html files

2010-11-14 Thread Daniel Roseman
On Nov 14, 1:28 pm, Brian wrote: > Thanks for the help, Still can not get it to work. > > I changed TEMPLATE_DIRS setting 30 ways. > > I can't seem to move down the dir tree for inserting of html files > using  {% include "file" %} statement, Works just fine to any

Re: Can't move down then up the directory tree for inserting of html files

2010-11-14 Thread Brian
Thanks for the help, Still can not get it to work. I changed TEMPLATE_DIRS setting 30 ways. I can't seem to move down the dir tree for inserting of html files using {% include "file" %} statement, Works just fine to any where up the tree, i can go up 3,4 levels just fine, but can not go down

Re: Unit test failing when testing post of a comment

2010-11-14 Thread Phil Gyford
Answering myself, in case this is useful to anyone in the future... I eventually discovered the problem lay in the method which checked submitted comments for spam (a method along these lines: http://sciyoshi.com/blog/2008/aug/27/using-akismet-djangos-new-comments-framework/ ). It expected the

Re: Automatically assume "models." prefix in models.py

2010-11-14 Thread Steve Holden
On 11/13/2010 11:20 PM, James wrote: > Forgive a django newbie... > > Maybe I'm the laziest person in the world, but sometimes I get tired > of typing "models.WhatEver" for every single model I have to write. Is > there anyway a shortcut could be added that would 'assume' the > 'models.' prefix