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
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
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
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
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
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
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
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
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
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
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.
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
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
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
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
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.
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
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
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
+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
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.
--~--~-~--~
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
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
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
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
25 matches
Mail list logo