Re: Add to Favourites type feature?

2006-11-11 Thread Jamie Pittock
That's great. Thanks alot. --~--~-~--~~~---~--~~ 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 [EM

Re: Shopping carts with Django?

2006-11-11 Thread ewoudenberg
Hi Folks, I took Max's helpful example and filled in the rest. I've made a Google Code project located here: http://code.google.com/p/django-cart/ There is zero documentation other than the project home title sheet. As Max says, writing the code is a small part of what it takes to make a serious

Recent failure with generic foreign keys and sqlite3 memory database

2006-11-11 Thread RonS
Generic foreign keys and the sqlite3 memory database (for unit testing) have recently stopped working for me. I upgraded my sqlite3 version and Django, so am not sure what change caused the problem. Following is a simple models file that demonstrates the problem. I have no problem when using sq

Re: Re: User/request.user confusion

2006-11-11 Thread James Bennett
On 11/11/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > For me at least, something is seriously hosed with authentication. There's a chance you could be running into the LazyUser caching bug, which was fixed two months ago but might affect you if you're running on an old checkout: http://cod

Re: User/request.user confusion

2006-11-11 Thread [EMAIL PROTECTED]
Anyone??? I've got a real serious problem here, with people being logged in as other people, with full rights and permissions. There's been at least three people so far logged in as Admin. Seriously not good. For me at least, something is seriously hosed with authentication. --~--~-~--~

Re: Django Gebruikers Groep

2006-11-11 Thread drakepad
+1 --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more o

Re: How much do you cost?

2006-11-11 Thread Paul Smith
On Nov 10, 2006, at 4:53 PM, [EMAIL PROTECTED] wrote:     Hi there. I hope this isn't a completely off-the-wall question.     I'm the editor of a small alt-weekly newspaper with a hideous website. We want to re-do it in Django, to snap up the presentation andalso add some new features that will mov

Using template tags to fill blocks in parent templates?

2006-11-11 Thread Ceph
I've run into a problem trying to use template tags in a child template where the tag tries to fill block content in the child template or the parent template. This is how it is set up: base.html: {% block nav %}{% endblock %} child.html {% extends "base.html" %} {% load navigation %} {% navigat

Re: Django Gebruikers Groep

2006-11-11 Thread SanPy
Count me in! Ik ben wel geinteresseerd in een nederlandtalige Django Gebruikers Groep. Groet, Sander. baasbartels schreef: > To non-dutch speaking: this is not spam, it's just a message in dutch, > for dutch django users about the possibility of forming a dutch Django > user group. Having loca

Re: Python templating performance comparison

2006-11-11 Thread James Bennett
On 11/11/06, Jeremy Dunck <[EMAIL PROTECTED]> wrote: > Django compares favorably, even though they're (arguably) measuring wrong. Yeah, a couple comments I've seen there an elsewhere pointed out problems with the way it benchmarked Cheetah, so I wonder if there are problems in the others as well.

Re: template tags to filter rows

2006-11-11 Thread orestis
Well, the thing missing right now is generating a form given a model. Once this is finished in newforms, it will be piece of cake creating admin-like interfaces. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Dj

Re: template tags to filter rows

2006-11-11 Thread Picio
Thanks Russell, I'm start thinking this way too, after the time spent trying to hack the Admin. Hopefully I will obtain some results in a week or two, with generic views, and of course now or in the future I' need to begin building my application without relying on the Admin. I Hope. Picio 2006/1

Python templating performance comparison

2006-11-11 Thread Jeremy Dunck
http://techspot.zzzeek.org/index.php?url=archives/11-Myghty-is-the-Fastest-Python-Template-Language.-What-Can-it-Do-for-Genshi.html Django compares favorably, even though they're (arguably) measuring wrong. --~--~-~--~~~---~--~~ You received this message because

spice up ur mobile

2006-11-11 Thread pratush
Spice up your Mobile! Get all the latest ringtones, wallpapers and java games. Get 10 bonus tones! http://surl.in/PCCJDMU238206SVRAKSX --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post t

Re: My own auth backend

2006-11-11 Thread Grigory Fateyev
Hello Grigory Fateyev! On Fri, 10 Nov 2006 19:59:32 +0300 you wrote: > Try to write my own backend authenticate function, but users from > anothe table can not login. What can it be? Any suggestions? I hope somebody use custom backend authentication? Please, do not ignore my letters. :) Thanks.

Django Gebruikers Groep

2006-11-11 Thread baasbartels
To non-dutch speaking: this is not spam, it's just a message in dutch, for dutch django users about the possibility of forming a dutch Django user group. Having localized user groups could in my opinion potentially benefit Django development (both in the technical sense as in the "growing the comm

Re: have mltiple different models ForeignKey the same model and still conveniently get all the data from all other models?

2006-11-11 Thread Timo Paulssen
Timo Paulssen wrote: > I have a bunch of models that are inside a "container model" of sorts. > The thing is that I need to get all of the different data in one > operation in a sorted manner. > Let me give you a code example: sorry if i have not been clear; the models do not yet exist, i only kno

Re: cursor.fetchall() attribute error

2006-11-11 Thread James Bennett
On 11/11/06, Rob Slotboom <[EMAIL PROTECTED]> wrote: >return [Poll.__class__(*row) for row in cursor.fetchall()] This is the problematic line; to instantiate a Poll, you'll want to either call its constructor -- Poll() -- or use the 'create()' method of its default manager (probably 'Poll.obj

have mltiple different models ForeignKey the same model and still conveniently get all the data from all other models?

2006-11-11 Thread Timo Paulssen
Okay, i do realize that this might be a weird request, but I'm in a situation that requires it: I have a bunch of models that are inside a "container model" of sorts. The thing is that I need to get all of the different data in one operation in a sorted manner. Let me give you a code example: c

cursor.fetchall() attribute error

2006-11-11 Thread Rob Slotboom
In a models.py I have created the folowing function. Top level, not in a class. def get_unvoted_polls_for_voter_ip(ip): from django.db import connection cursor = connection.cursor() sql = """SELECT polls_poll.* FROM polls_poll LEFT OUTER JOIN polls_vote ON polls_poll.id = polls_vot

cursor.fetchall() attribute error

2006-11-11 Thread Rob Slotboom
In a models.py I have created the folowing function. Top level, not in a class. def get_unvoted_polls_for_voter_ip(ip): from django.db import connection cursor = connection.cursor() sql = """SELECT polls_poll.* FROM polls_poll LEFT OUTER JOIN polls_vote ON polls_poll.id = polls_vot

Re: Add to Favourites type feature?

2006-11-11 Thread Guillermo Fernandez Castellanos
Hi, You have the UserFlag option in the django.contrib.comments code as an example of flagging applied to Comments. It might be easier to take the code and make it general with Generic relations: http://www.djangoproject.com/documentation/models/generic_relations/ or take it as an example for you

Re: Add to Favourites type feature?

2006-11-11 Thread Kamil Wdowicz
Make a relation ManyToMany between user and article, adding to favorite (in your example) is creating record with userId and ArticleId. 2006/11/11, Jamie Pittock <[EMAIL PROTECTED]>: > > Sorry, I didn't mean add to your browser favourites. > > I meant more of a feature built into a website where

Django + FastCGI + Nginx

2006-11-11 Thread wiz
Hellow, orld! Here is a screencast by [EMAIL PROTECTED] about installing django on nginx (small, versatile http server - http://nginx.ru/) Enjoy: http://twogre.aenor.ru/files/video/screencast/Django-Nginx-FastCGI-screencast-1024.avi --~--~-~--~~~---~--~~ You rec

Re: Add to Favourites type feature?

2006-11-11 Thread Jamie Pittock
Sorry, I didn't mean add to your browser favourites. I meant more of a feature built into a website where users can mark an article/entry as a "favourite" to store or read later. that kind of thing. Russell Keith-Magee wrote: > On 11/10/06, Jamie Pittock <[EMAIL PROTECTED]> wrote: > > > > I'm