Re: Use variables inside an 'include' tag (and/or: how to set a variable in a template)

2008-05-30 Thread Alex Morega
On May 31, 2008, at 00:36 , Berco Beute wrote: > > Unfortunately that doesn't work. This works: > > {{ include dir|concat:"/tag.html" }} > > But not this: > > {% include dir|concat:"/tag.html" %} > > Thanks, but I'm still searching for a solution... Create your own tag - not an inclusion tag,

Re: 6095-nfadmin.3.diff

2008-05-30 Thread Russell Keith-Magee
On Fri, May 30, 2008 at 9:47 PM, alessandro boschi <[EMAIL PROTECTED]> wrote: > > Hi to all, > I have install svn version 7500 or 7499, but i have a problem with > 6095-nfadmin.3.diff. I just applied 6095-nfadmin.3.diff without difficulty on r7500 and r7568, without any difficulties. I can only

Django & Mod_python unstable behaviour?

2008-05-30 Thread dxLogan
Hello all, I'm a new Django user and looks forward to it. I'm still playing with it and met some unexplained results. Hopefully masters here may shed some insight into the problem. So I set up the apache with mod_python as taught on the documentation, and set up some basic site to try. Say the

Re: How to get child model' name from parent obj in Multi-table inheritance

2008-05-30 Thread David.D
If there are lots of child model, use hasattr() or capture exception will not be good? "add a type field to Person() and overide the save fields on Man and Woman to set the type field correctly. " will be better? On May 30, 10:38 pm, David Zhou <[EMAIL PROTECTED]> wrote: > On May 30, 2008, at

Re: url parameters go missing

2008-05-30 Thread Karen Tracey
On Fri, May 30, 2008 at 9:48 PM, Karen Tracey <[EMAIL PROTECTED]> wrote: > On Fri, May 30, 2008 at 7:53 PM, M.Ganesh <[EMAIL PROTECTED]> wrote: > >> >> Hi All, >> >> I have this url to start a note_l1 addition : >> '/contacts/note_l1/add/?entity=2' >> >> This reaches the server and my code

Re: url parameters go missing

2008-05-30 Thread Karen Tracey
On Fri, May 30, 2008 at 7:53 PM, M.Ganesh <[EMAIL PROTECTED]> wrote: > > Hi All, > > I have this url to start a note_l1 addition : > '/contacts/note_l1/add/?entity=2' > > This reaches the server and my code intact. An 'Add; page is displayed. > After I fill the form and press the 'Add' button

odd date problem with free threaded comments

2008-05-30 Thread Manuel Meyer
Hey, I am using Free threaded comments on a 0.97-pre-SVN-7436 site. I am developing on Mac and run the site on debian/apache2/mod_python. under debian i found a strange behavior: Some comments are pre-dated 7 hours. ie.: In my timezone it's 15:23. A new comment will be published with this time

Re: order_by foreign key problem

2008-05-30 Thread Karen Tracey
On Fri, May 30, 2008 at 6:09 PM, robstar <[EMAIL PROTECTED]> wrote: > > Thanks for your help Richard.. taking out the select_related() > results in the same problem. Isn't a OnetoOneField just a fancy name > wrapper for a foreign key?? > > mysql> describe itemengine_gear; >

Re: newforms custom field attribute

2008-05-30 Thread skunkwerk
thanks... i saw that in the documentation but i guess it didn't register initially On May 30, 3:53 pm, "Gene Campbell" <[EMAIL PROTECTED]> wrote: > Something like with work for you? > > forms.CharField(attrs={'title':'blah'}) > > check outhttp://www.djangoproject.com/documentation/newforms/ > >

Re: Still a bug with OR lookups?

2008-05-30 Thread Julien
Thanks for the info Omat. > And, I think your problem is the same that makes "union with an empty > queryset always result in an empty queryset" bug: > > User.objects.filter(Q) | User.objects.none() > => always returns an empty queryset. > Has this in particular been reported? Julien > -- >

url parameters go missing

2008-05-30 Thread M.Ganesh
Hi All, I have this url to start a note_l1 addition : '/contacts/note_l1/add/?entity=2' This reaches the server and my code intact. An 'Add; page is displayed. After I fill the form and press the 'Add' button only the '/contacts/note_l1/add/' portion reaches the server. the '?entity=2' is

Re: Installing Django via virtualenv

2008-05-30 Thread GetFresh
Thanks for the reply Graham. I have found a bit of a solution. I symlinked my django folder into the virtualenv folder. I can successfully startup the server but I can't seem to view it in my browser. Possibly a problem with Apache. I'll have to double check to see if mod_python is being

Re: newforms custom field attribute

2008-05-30 Thread Gene Campbell
Something like with work for you? forms.CharField(attrs={'title':'blah'}) check out http://www.djangoproject.com/documentation/newforms/ On Sat, May 31, 2008 at 9:29 AM, skunkwerk <[EMAIL PROTECTED]> wrote: > > simple question - how can I add a custom attribute to a form field? > ie if I have

Re: order_by foreign key problem

2008-05-30 Thread robstar
Thanks for your help Richard.. taking out the select_related() results in the same problem. Isn't a OnetoOneField just a fancy name wrapper for a foreign key?? mysql> describe itemengine_gear; +-+--+--+-+-+---+ | Field | Type |

Re: Use variables inside an 'include' tag (and/or: how to set a variable in a template)

2008-05-30 Thread Berco Beute
Unfortunately that doesn't work. This works: {{ include dir|concat:"/tag.html" }} But not this: {% include dir|concat:"/tag.html" %} Thanks, but I'm still searching for a solution... 2B On May 29, 11:18 pm, Johannes Dollinger <[EMAIL PROTECTED]> wrote: > You could use a filter: > >

newforms custom field attribute

2008-05-30 Thread skunkwerk
simple question - how can I add a custom attribute to a form field? ie if I have a form like: class SearchForm(forms.Form)): query = forms.CharField(max_length=30) i'd like to add a 'title' attribute to the query field. do i have to sublcass or do something fancy? thanks

Re: Installing Django via virtualenv

2008-05-30 Thread Graham Dumpleton
On May 31, 6:07 am, GetFresh <[EMAIL PROTECTED]> wrote: > Hi everyone, > > I'm trying to install Django on my web host but I'm running into some > problems. > > When I initial tried to run the install ( pyhon setup.py install). > The Django dir was created but it could not be copied to the

Re: Help using Model Managers please

2008-05-30 Thread Brandon Taylor
I'm under a really tight deadline on this pro-bono project, so I may just create a duplicate class and work around it at this point. It's not that much extra code, and the end-users will never know the difference. I'll see what I can do about figuring out why it's not behaving and contribute back

Re: Help using Model Managers please

2008-05-30 Thread Rajesh Dhawan
On May 30, 4:28 pm, Brandon Taylor <[EMAIL PROTECTED]> wrote: > Ok, sorry, I'm a dork, I forgot how to run patches. I successfully > merged the first patch into my newforms-admin install, but it still > doesn't work. Option 1: Try to fix the patch yourself and contribute it back to the ticket

Re: Help using Model Managers please

2008-05-30 Thread Brandon Taylor
Ok, sorry, I'm a dork, I forgot how to run patches. I successfully merged the first patch into my newforms-admin install, but it still doesn't work. On May 30, 3:16 pm, Brandon Taylor <[EMAIL PROTECTED]> wrote: > I manually copied and pasted the code from the patch into > filterspecs.py, as

sorting inspectdb output

2008-05-30 Thread Vidja
I'm using manage inspectdb to get an initial list of models for my database. The only thing is that I'm spending a lot of time sorting the models (>300) in such a way that each class is in the right order regarding the foreign key dependencies. (making sure each model that points to another is

Re: Help using Model Managers please

2008-05-30 Thread Brandon Taylor
I manually copied and pasted the code from the patch into filterspecs.py, as shown in the patch, but no dice. I set up a sample application using trunk, and limit_choices_to is working correctly. I deleted the .pyc file for filterspecs. Is there something else I need to do to incorporate the

Installing Django via virtualenv

2008-05-30 Thread GetFresh
Hi everyone, I'm trying to install Django on my web host but I'm running into some problems. When I initial tried to run the install ( pyhon setup.py install). The Django dir was created but it could not be copied to the /site- packages within python dir. So I looked into virtualenv

Re: Help using Model Managers please

2008-05-30 Thread Rajesh Dhawan
On May 30, 3:54 pm, Brandon Taylor <[EMAIL PROTECTED]> wrote: > I switched out the code in the path into my newforms-admin install, > but it still doesn't want to work. Ugh! I'm going to try switching to > trunk on a different computer to see if it will work in trunk. > > Any further thoughts

Re: Help using Model Managers please

2008-05-30 Thread Brandon Taylor
I switched out the code in the path into my newforms-admin install, but it still doesn't want to work. Ugh! I'm going to try switching to trunk on a different computer to see if it will work in trunk. Any further thoughts before I move on a create a completely separate model for Staff Members

Re: local import or not for django apps?

2008-05-30 Thread Rajesh Dhawan
>From the Python Style Guide (PEP8): http://www.python.org/dev/peps/pep-0008/ - Relative imports for intra-package imports are highly discouraged. Always use the absolute package path for all imports. Even now that PEP 328 [7] is fully implemented in Python 2.5, its style of

Re: Help using Model Managers please

2008-05-30 Thread Rajesh Dhawan
> > I'm using the newforms-admin branch of Django. Thanks, Ah...there's an open ticket that discusses this along with a newforms- admin patch: http://code.djangoproject.com/ticket/3096 --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: Help using Model Managers please

2008-05-30 Thread Brandon Taylor
Hi, Here is "Member" MEMBER_TYPE_CHOICES = ( ('staff','Staff'), ('board','Board'), ) class Member(models.Model): member_type = models.CharField(max_length=30, choices=MEMBER_TYPE_CHOICES) first_name = models.CharField(max_length=30)

Re: Help using Model Managers please

2008-05-30 Thread Rajesh Dhawan
Hi again, Brandon, > Thanks for pointing that out in the documentation, I wasn't aware of > that filter. However, I can't seem to get it to work. > > I've tried specifying the values as: > > staff_members_to_notify = models.ManyToManyField(Member, > limit_choices_to = {'member_type' : 'staff'})

Re: Help using Model Managers please

2008-05-30 Thread Brandon Taylor
Hi Rajesh, Thanks for pointing that out in the documentation, I wasn't aware of that filter. However, I can't seem to get it to work. I've tried specifying the values as: staff_members_to_notify = models.ManyToManyField(Member, limit_choices_to = {'member_type' : 'staff'}) and several other

Re: Deploying a Django App

2008-05-30 Thread Justin Lilly
Typically. Especially on slow work days ;) On Fri, May 30, 2008 at 1:58 PM, c0mrade <[EMAIL PROTECTED]> wrote: > > Ok cool, thanks. > > I guess I'm just used to standard deployments in Java and PHP > including the framework code in the site bundle. > > Thanks for the help guys, is it always so

get paid to receive SMS on your mobile

2008-05-30 Thread NET GEEK
Hi, Now get paid to receive SMS on your mobile at no cost. Receive ads on your mobile and get paid. No fraud. No hidden charges. Free registration. Register at *http://tinyurl.com/6myoon* --~--~-~--~~~---~--~~ You received this message

Re: Deploying a Django App

2008-05-30 Thread c0mrade
Yes, sorry, I'm planning on using Apache with mod_python. Once I have installed Django, and configured Apache with mod_python - what do I do with the code in the project folder I've been building? Say my project was called "djangoproject". Would I simply add the "/path/to/djangoproject" to

Re: Relative views in urls.py

2008-05-30 Thread Gregor Müllegger
Your last example is near the typical solution. You could pass as second element of the "url-tuples" a callable object e.g. a view. from django.conf.urls.defaults import * import views urlpatterns = patterns('', (r'^(?P[a-z0-9_-]+)/$', views.view_city),

Re: Deploying a Django App

2008-05-30 Thread Karen Tracey
On Fri, May 30, 2008 at 1:30 PM, c0mrade <[EMAIL PROTECTED]> wrote: > > I'm really new do Django and coming from a Java/Php background. > > In php when you deploy an app, you have the whole structure and you > set the web root to the public folder, which contains the bootstrap. > In Java you just

Re: Help using Model Managers please

2008-05-30 Thread Rajesh Dhawan
Hi Brandon, > I have two Models: Member, Job > > Member has two types: Staff, Board > > Job needs to have a ManyToMany field for Member, so I can send emails > to those associated records. > > So, what I'm trying to accomplish is to filter the list of Members > that are shown in the ManyToMany

Re: Deploying a Django App

2008-05-30 Thread Michael Wieher
It requires a familiarity with whatever web-server you run, usually Apache, for the sake of argument, I'll assume Apache. So, the tutorial discusses customizing your httpd.conf file tags quite a bit. Its up to you to bridge that gap between these parameters that Django's tutorial describes,

Re: Philosophical Django Questions

2008-05-30 Thread Apreche
On May 30, 12:11 pm, "Richard Dahl" <[EMAIL PROTECTED]> wrote: > As far as the first question, I would create my own group model.  My > reasoning is pretty simple, I create models based on functionality or > purpose of the object.  auth.groups is essentially used to assign > permissions to users,

Deploying a Django App

2008-05-30 Thread c0mrade
I'm really new do Django and coming from a Java/Php background. In php when you deploy an app, you have the whole structure and you set the web root to the public folder, which contains the bootstrap. In Java you just make a war file and drag it into your application server. How do you deploy a

Clean up and maintenance

2008-05-30 Thread [EMAIL PROTECTED]
I've set up a cron job to run daily-cleanup every night, and modified it to also clean out expired registration profiles from django- registration... what other regular maintenance and clean-up tasks should I be thinking about? --~--~-~--~~~---~--~~ You received

Relative views in urls.py

2008-05-30 Thread David Cramer
I've come across the need lately, for my applications to be completely standalone, and this has presented itself a few problems: - I need urls.py to be dynamically editable (at least at runtime). I think I can deal with this one, just haven't gotten to it. - More importantly, I need urls.py to

Re: local import or not for django apps?

2008-05-30 Thread James Bennett
On Thu, May 29, 2008 at 4:06 PM, Milan Andric <[EMAIL PROTECTED]> wrote: > Anyone happen to have a strong opinion on this? Should django > applications use local imports or package based imports? Sorry if > this has been mulled over a million times. Applications should expect to live on the

Re: Philosophical Django Questions

2008-05-30 Thread Richard Dahl
As far as the first question, I would create my own group model. My reasoning is pretty simple, I create models based on functionality or purpose of the object. auth.groups is essentially used to assign permissions to users, you are really looking to associate users with other users. So while it

Django and i18n

2008-05-30 Thread Taevin
I've been working with translation in Django and it mostly works but I'm wondering if there is a 'cleaner' way of doing things. That is, here is what I seem to have to do to get a page translated into the correct language: URLs are of the form $domain/$language_code/$page (e.g.

many to many filter_interface on both sides of the relationship in admin

2008-05-30 Thread lee
Guys, I have a many to many relationship and have the filter_interface in the edit page of one end of the relationship and want the same for the other. Is this possible? - Lee. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

BEST VIDEO!!! SEX...

2008-05-30 Thread SEX Girls!
BEST VIDEO!!! SEX!! http://rozrywka.yeba.pl/show.php?id=2454 http://rozrywka.yeba.pl/show.php?id=2081 http://rozrywka.yeba.pl/show.php?id=1945 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group.

Re: I get a template error, when I do the admin login

2008-05-30 Thread Karen Tracey
On Fri, May 30, 2008 at 11:48 AM, kamakhya <[EMAIL PROTECTED]> wrote: > > Everything thing worked fine on my my machine, but when I hosted on > webspace, I > got the following when tried to login to admin account; > > Template error > > In template

Re: Users getting logged out/cookie issues?

2008-05-30 Thread [EMAIL PROTECTED]
> 1.  Are they changing domains?  Maybe logging in on mydomain.com and > being redirected towww.mydomain.com? Maybe. I don't think so, but maybe. > > 2.  Are they hopping IP addresses in the middle of their session? > Common for larger corporations with big honking proxies to the outside >

I get a template error, when I do the admin login

2008-05-30 Thread kamakhya
Everything thing worked fine on my my machine, but when I hosted on webspace, I got the following when tried to login to admin account; Template error In template /home/kgupta/django_src/django/contrib/admin/templates/ admin/index.html, error at line 56 Caught an exception while rendering: no

Philosophical Django Questions

2008-05-30 Thread Apreche
Hi, I'm a long-time developer, and moderately recent Django convert. Because Django is so awesome, and the freely available documentation is so great, I've had very few problems learning django, and getting things done. However, I often find myself battling with more design- level decisions than

Re: url help

2008-05-30 Thread sebastian stephenson
cool thats useful but more advice form other people would be great I will try that thank you On 30 May 2008, at 15:37, Jack M. wrote: > > Forgive me if this is a little off but, to have the argument passed > into the view, you'd want to use some different regexp: >

Re: How to get child model' name from parent obj in Multi-table inheritance

2008-05-30 Thread jonknee
On May 30, 10:38 am, David Zhou <[EMAIL PROTECTED]> wrote: > You can use also use hasattr(). > > Something like > > if hasattr(person_obj, 'man'): >     #is man > elif hassattr(person_obj, 'woman'): >     #is woman > else: >     #is freakish mutated thing > How would that work exactly? It's a

Re: Problem State/City Relations

2008-05-30 Thread Richard Dahl
Usually this would be done with a javascript function. You could display the form but have the city field disabled until a state was chosen and then (probably with an async call) populate the city field with a list of relevant cities. To just use server side validation for this you would have to

Help using Model Managers please

2008-05-30 Thread Brandon Taylor
Hello everyone, I have two Models: Member, Job Member has two types: Staff, Board Job needs to have a ManyToMany field for Member, so I can send emails to those associated records. So, what I'm trying to accomplish is to filter the list of Members that are shown in the ManyToMany to include

Re: How to get child model' name from parent obj in Multi-table inheritance

2008-05-30 Thread David Zhou
On May 30, 2008, at 2:54 AM, [EMAIL PROTECTED] wrote: > Guess and test using try; except; statements. Alternatively, you > could add a type field to Person() and overide the save fields on Man > and Woman to set the type field correctly. > > On May 30, 1:38 am, "Davide.D" <[EMAIL PROTECTED]>

Re: IndexError instead of DoesNotExist with filter( )[0]

2008-05-30 Thread V
this was a really stupid mistake :) thanks for correcting me! V On May 30, 12:20 pm, Daniel Roseman <[EMAIL PROTECTED]> wrote: > On May 30, 11:08 am, "Viktor Nagy" <[EMAIL PROTECTED]> wrote: > > > IndexError: list index out of range > > > I've tried to catch IndexError as well, but it fails

Re: Users getting logged out/cookie issues?

2008-05-30 Thread Jack M.
I'm fairly new to django, and I don't know it's intricacies very well, but common sense says: 1. Are they changing domains? Maybe logging in on mydomain.com and being redirected to www.mydomain.com ? 2. Are they hopping IP addresses in the middle of their session? Common for larger

Re: i18n issues.

2008-05-30 Thread Jack M.
Holy crap I'm an idiot. Thanks, Ramiro, you hit the nail on the head. I've been using sp for spanish for so long I completely spaced that it is incorrect usage. Once I switched to es everything worked. Another one chalked up to PEBKAC. Thanks, -Jack On May 29, 3:54 pm, "Ramiro Morales"

Re: Users getting logged out/cookie issues?

2008-05-30 Thread Jarek Zgoda
[EMAIL PROTECTED] pisze: > I've got multiple users all saying roughly the same thing as this > one: > "I come to the site and log in. I click on to a page and I'm logged > out. I try to log back in and it says my cookies are disabled. Log in > - log in - I'm in, and then I click on a page and

6095-nfadmin.3.diff

2008-05-30 Thread alessandro boschi
Hi to all, I have install svn version 7500 or 7499, but i have a problem with 6095-nfadmin.3.diff. patching file AUTHORS Hunk #1 succeeded at 143 (offset -1 lines). can't find file to patch at input line 17 Perhaps you used the wrong -p or --strip option? The text leading up to this was:

Re: url help

2008-05-30 Thread sebey
no that didn't work its still the same rss feed here is my models: from django.db import models class show(models.Model): """gets the show_rss feed""" show_title = models.CharField(blank=True, maxlength=100) show_feed = models.URLField(blank=True, verify_exists=True) class

Users getting logged out/cookie issues?

2008-05-30 Thread [EMAIL PROTECTED]
I've got multiple users all saying roughly the same thing as this one: "I come to the site and log in. I click on to a page and I'm logged out. I try to log back in and it says my cookies are disabled. Log in - log in - I'm in, and then I click on a page and I'm out again. Over and over Says

Re: django error about syncdb

2008-05-30 Thread Karen Tracey
On Fri, May 30, 2008 at 4:55 AM, tony yu <[EMAIL PROTECTED]> wrote: > > when I use syncdb, get the error: > > [EMAIL PROTECTED] /data/mysite]# python manage.py syncdb > Error: One or more models did not validate: > auth.group: "admin.list_display" refers to '__ipow__', which isn't an > attribute,

Re: IndexError instead of DoesNotExist with filter( )[0]

2008-05-30 Thread Christian Joergensen
Viktor Nagy wrote: > Hi, > > I have the following code in my views.py > ... > try: > q = models.Queue.objects.filter(type=type, status=0)[0] > except models.Queue.DoesNotExist: > return WebAPIResponseError(request, DOES_NOT_EXIST) .filter() always returns a queryset. Methods on

Re: Missing calender button in Django Administration

2008-05-30 Thread Scott Moonen
>From an earlier email to this list, it sounds like the calendar doesn't work on 0.96.2 if USE_I18N is set to True in your settings.py file. This seems resonable to me; at one point I tried to use the calendar from my own templates but tripped over needing to define or stub out some gettext

Re: Missing calender button in Django Administration

2008-05-30 Thread lenz
Seems that everything is ok if i use the latest svn version of django! Maybe the calender is just a new feature? But i am working with tutorial for 0.96 So maybe a failure in the tut! But how can new features get into to old tutorials? Anyway - sorry for bothering! Lenz On May 30, 2:41 pm,

Missing calender button in Django Administration

2008-05-30 Thread lenz
Hi, i am very new to django and following the tutorial from the django docs. At the moment i am here: http://www.djangoproject.com/documentation/0.96/tutorial02/#explore-the-free-admin-functionality My poblem is: when i log in to the Django Administration und try to edit the polls everthing

Re: url help

2008-05-30 Thread @@
show/.* On 5/30/08, sebey <[EMAIL PROTECTED]> wrote: > > > ok I so I want to make a url pattern that for every rss feed in my > database I want all of them to be like > > show/1 > show/2 > show/forever > > so how can I do this? > > something with regular expressions? > > thanks > > >

EARN $250-$500 DAILY

2008-05-30 Thread priya
EARN $250-$500 DAILY SIMPLE ONLINE SURVEY WORK AT JUST 2 HOURS ONLY I EARN DAILY AROUND $350 CREATE FREE ACCOUNT START YOUR EARNINGS *** http://www.AWSurveys.com/HomeMain.cfm?RefID=souravudaya

Re: problem in remember me feature

2008-05-30 Thread Karen Tracey
On Tue, May 27, 2008 at 3:58 AM, Mayank Dhingra <[EMAIL PROTECTED]> wrote: > > I am experiencing a strange problem while using > DualSessionMiddleware > > http://code.djangoproject.com/wiki/CookBookDualSessionMiddleware > > I've done as directed and in most cases the feature works as expected. >

url help

2008-05-30 Thread sebey
ok I so I want to make a url pattern that for every rss feed in my database I want all of them to be like show/1 show/2 show/forever so how can I do this? something with regular expressions? thanks --~--~-~--~~~---~--~~ You received this message because you are

Re: IndexError instead of DoesNotExist with filter( )[0]

2008-05-30 Thread Daniel Roseman
On May 30, 11:08 am, "Viktor Nagy" <[EMAIL PROTECTED]> wrote: > IndexError: list index out of range > > I've tried to catch IndexError as well, but it fails with the same error > try: > q = models.Queue.objects.filter(type=type, status=0)[0] > except models.Queue.DoesNotExist,

IndexError instead of DoesNotExist with filter( )[0]

2008-05-30 Thread Viktor Nagy
Hi, I have the following code in my views.py ... try: q = models.Queue.objects.filter(type=type, status=0)[0] except models.Queue.DoesNotExist: return WebAPIResponseError(request, DOES_NOT_EXIST) ... this would give back the first result that corresponds to type=type and has status 0.

Re: Still a bug with OR lookups?

2008-05-30 Thread omat
And, I think your problem is the same that makes "union with an empty queryset always result in an empty queryset" bug: User.objects.filter(Q) | User.objects.none() => always returns an empty queryset. -- omat On May 30, 12:12 pm, omat <[EMAIL PROTECTED]> wrote: > Hi Julien, > > I think the

Re: Still a bug with OR lookups?

2008-05-30 Thread omat
Hi Julien, I think the OR'ing of querysets (unions) is bogus. When I have a queryset that has some 'extra' parameter that builds a non-exclusive join SQL, and try to merge it with an other queryset, the table names are not handled correctly. Sometimes some tables are ignored and sometimes they

django error about syncdb

2008-05-30 Thread tony yu
when I use syncdb, get the error: [EMAIL PROTECTED] /data/mysite]# python manage.py syncdb Error: One or more models did not validate: auth.group: "admin.list_display" refers to '__ipow__', which isn't an attribute, method or property. pls help me, thanks!

Django-India Google group

2008-05-30 Thread shabda
Hello All Django people based in India! Did you know that there was no django-india Google group? Ouch. So I have created the Django-India google group. [http:// groups.google.com/group/djangoindia]. If you are a django-developer based in India join this group, so we have a centraol place to

Re: problem in remember me feature

2008-05-30 Thread Mayank Dhingra
any suggestions/thoughts ? On May 27, 11:46 pm, Mayank Dhingra <[EMAIL PROTECTED]> wrote: > yes, > > i've imported settings. > > from django.conf import settings > > On May 27, 9:52 pm, Sebastian Bauer <[EMAIL PROTECTED]> wrote: > > > did you have this: > > > import settings > > > in files where

hi

2008-05-30 Thread ماريا
للحصول على وزن مثالي في يوم واحد ادخل هنا http://www.antya7la.com/vb/t26066.html خبر مؤسف ومؤلم اتمنى الدخووول http://www.antya7la.com/vb/t26168.html اختاري لون الصبغ اللي اناسبح ( السايت عجيب) للنساء فقط http://www.antya7la.com/vb/t26211.html السلسلة الوثائقية الشيقة Walking with Dinosaurs

Still a bug with OR lookups?

2008-05-30 Thread Julien
Hi, A while ago I stumbled on a bug with OR lookups, but Malcolm had apparently fixed it in the queryset-refactor branch [1]. However I've just got a similar issue. Is that still a bug or am I mis-using it? Here's my model: class Contact(models.Model): requesting_user =

Re: How to get child model' name from parent obj in Multi-table inheritance

2008-05-30 Thread [EMAIL PROTECTED]
Guess and test using try; except; statements. Alternatively, you could add a type field to Person() and overide the save fields on Man and Woman to set the type field correctly. On May 30, 1:38 am, "Davide.D" <[EMAIL PROTECTED]> wrote: > Simplify the question: > > I got a "person", and how to

Re: How to get child model' name from parent obj in Multi-table inheritance

2008-05-30 Thread Davide.D
Simplify the question: I got a "person", and how to know the "person" is a "man" or a "woman" ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

How to get child model' name from parent obj in Multi-table inheritance

2008-05-30 Thread Davide.D
Multi-table inheritance model example === class Person(models.Model): name = models.CharField(maxlength=10) height = models.SmallInteger() class Man(Person): job = models.CharField(maxlength=20) class Woman(Person):