Re: Problem installing pysqlite2 (for use with sqlite3)

2007-10-08 Thread benrawk
It worked, thank you! I installed a new version of python. Apparently my hoster, vpslink, doesn't include the development header files in the pre-installed instance of python. On Oct 7, 11:32 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On 10/8/07, benrawk <[EMAIL PROTECTED]> wrote: > > > > >

Re: New Django App... FeedEachOther

2007-10-08 Thread Udi
Hi Justin, Glad to hear that the topic page is going to make it into your RSS reader, but I also want to make it clear that FeedEachOther itself is an RSS reader. And a very good one at that. Import your OPML and give it a try. Thanks for the feedback! Udi On Oct 8, 10:55 pm, "Justin Lilly"

Get path translated

2007-10-08 Thread cschand
Hi all Can I get the path of the redirected/translated page --~--~-~--~~~---~--~~ 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 f

Re: New Django App... FeedEachOther

2007-10-08 Thread Justin Lilly
First thoughts: =Design= Simple interface. Not very Web 2.0 looking, which isn't a diss. On your logo, I might work on the placement of the text (which is subdivided into a top gray portion and a bottom black portion) not aligning with the similarly split background. Looks a bit off, I think.

New Django App... FeedEachOther

2007-10-08 Thread Udi
Hey Everyone, We've recently launched a new Django app called Feed Each Other. It's an advanced rss reader with a collaborative twist. http://feedeachother.com I just wanted to quickly thank everyone on this group for providing us with lots of good help and tons of search result love over the

Another newforms problem

2007-10-08 Thread Cat
Hello I am having two problems with the attached code (which I have drawn heavily from the post 'Newforms practice (common situation)') and would appreciate any advice on how to fix it as I am going round in circles. 1) When I add a survey (before entering or saving any data), the form appears O

Re: IOError: Client read error (Timeout?)

2007-10-08 Thread Graham Dumpleton
On Oct 9, 8:12 am, Trey <[EMAIL PROTECTED]> wrote: > Interesting approach Malcom, I will read up on a few of the tools to > see if I can catch the error in the act. I have been doing something > similar with strace and some sort of segfault that is very hard to > catch. > > Graham, I haven't resea

Re: Validation of dynamically generated forms

2007-10-08 Thread pinco
Frank, thak you for your help. I worked on the form model using bound field, and now the forms is bound. class CartForm(forms.Form): def __init__(self, a): super(CartForm, self).__init__(a) for key in a.keys(): self.fields['cart_ite

Re: Regstration module "lost password"

2007-10-08 Thread Marty Alchin
On 10/8/07, James Bennett <[EMAIL PROTECTED]> wrote: > On 10/8/07, Bill Fenner <[EMAIL PROTECTED]> wrote: > > Which is an excellent way to partially lock someone out of the site, > > by preemptively changing their pasword (and emailing them the new > > one). This operation should really email a c

Re: IOError from HttpResponse(somefile) -- via S3 storage

2007-10-08 Thread fdraft
Well, apparantly this error had to do with the mode I was opening it in : "wb" ... the default mode is "w+b" - as soon as I removed that argument it worked. I guess it could write, but not read? Don't fully understand the issue, but at least it's fixed... On Oct 3, 12:34 pm, "Marty Alchin" <[EMAI

Re: IOError: Client read error (Timeout?)

2007-10-08 Thread Trey
Interesting approach Malcom, I will read up on a few of the tools to see if I can catch the error in the act. I have been doing something similar with strace and some sort of segfault that is very hard to catch. Graham, I haven't researched mod_wsgi much, is it an alternative to mod_python or doe

get the id associated to the ModelChoiceField

2007-10-08 Thread bluesky
Hi! I have created a custom form to validate data using newforms. I have a ModelChoiceField. I can't understand how I could get the id of the selected object in the list. If I try to access it by clean_data I get the description. How should I do? Thanks. --~--~-~--~~~--

Re: Regstration module "lost password"

2007-10-08 Thread James Bennett
On 10/8/07, Bill Fenner <[EMAIL PROTECTED]> wrote: > Which is an excellent way to partially lock someone out of the site, > by preemptively changing their pasword (and emailing them the new > one). This operation should really email a challenge URL which, if > visited, leads to a "set new passwor

Re: Regstration module "lost password"

2007-10-08 Thread Bill Fenner
On 10/8/07, James Bennett <[EMAIL PROTECTED]> wrote: > In the default setup, the URL /accounts/password/reset/ will, provided > the user inputs their email address correctly, send out a a new > password. Which is an excellent way to partially lock someone out of the site, by preemptively changing

Re: Django Browser Games?

2007-10-08 Thread Tomas Kopecek
We are making advanced web-game which is fourth generation of game previously coded in perl (with C excesses). Nowadays we have about 7MB of code (python + django templates) and game is running with testing users. Official start will be probably during January in local version (with english tr

Re: Regstration module "lost password"

2007-10-08 Thread James Bennett
On 10/8/07, onno <[EMAIL PROTECTED]> wrote: > My application lets users register. I'm using James Bennet > registration module. > But I wonder how to make a lost password page for a user that forgot > their password? Wich module do I use for that? In the default setup, the URL /accounts/password/

Re: Regstration module "lost password"

2007-10-08 Thread Malcolm Tredinnick
On Mon, 2007-10-08 at 13:30 -0700, onno wrote: > My application lets users register. I'm using James Bennet > registration module. > But I wonder how to make a lost password page for a user that forgot > their password? Wich module do I use for that? Django doesn't store the user's password anywh

Regstration module "lost password"

2007-10-08 Thread onno
My application lets users register. I'm using James Bennet registration module. But I wonder how to make a lost password page for a user that forgot their password? Wich module do I use for that? thanxs --~--~-~--~~~---~--~~ You received this message because you

Facebook app give feedback -Send birthday cards to buds http://apps.facebook.com/groupcards/start

2007-10-08 Thread Rico
Facebook app give feedback -Send birthday cards to buds http://apps.facebook.com/groupcards/start --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-use

Re: Changing site theme based on request object

2007-10-08 Thread tim_perrett
Hey Guys Thanks for your great responses up to now - most interesting. Ive been reading the documentation and thats been pretty useful (surprise surprise!), but i have another question... As the kind of per site skinning falls in line with some of the ideas of the Django site object, it makes se

Re: query comparing two attributes of an object

2007-10-08 Thread Dan Goldner
Thanks!! On Oct 8, 2:19 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Mon, 2007-10-08 at 12:14 -0700, Dan Goldner wrote: > > Hello, > > Is it possible to use filter() to query objects based on comparisons > > among attributes of the same object? For example, if my model Task has > > two

Re: query comparing two attributes of an object

2007-10-08 Thread Malcolm Tredinnick
On Mon, 2007-10-08 at 12:14 -0700, Dan Goldner wrote: > Hello, > Is it possible to use filter() to query objects based on comparisons > among attributes of the same object? For example, if my model Task has > two attributes start_year and end_year and I want to select all tasks > where start_year

query comparing two attributes of an object

2007-10-08 Thread Dan Goldner
Hello, Is it possible to use filter() to query objects based on comparisons among attributes of the same object? For example, if my model Task has two attributes start_year and end_year and I want to select all tasks where start_year was somehow set later than end_year, I would try something like

u may find it interesting

2007-10-08 Thread mysterio
we donot claim that this is the best hacking website . but one thing we can assure u for sure that if u want to learn hacking then this is where u should start. have a look.. www.hacking.official.ws do u want some stress relief then enter this site. this website consists of various

Re: how to stop the django development server?

2007-10-08 Thread Malcolm Tredinnick
On Mon, 2007-10-08 at 09:06 -0700, patrickk wrote: > I´m not too familiar with server-stuff, but I thought that kill only > works with fastcgi. > we´re using modpython (sorry, forgot to mention that before). This doesn't make sense. Are you using the development server or modpython?? They are two

Re: Query for cascading children to a parent

2007-10-08 Thread [EMAIL PROTECTED]
Thanks.. I think that will work.. will try it out shortly! On Oct 8, 11:08 am, "Richard Dahl" <[EMAIL PROTECTED]> wrote: > I have a model class 'Organization' with a parent and I do this with a > method get_child_orgs: > > get_child_orgs(self): > child_orgs = [] > co = Organization.object

Re: how to stop the django development server?

2007-10-08 Thread patrickk
works. thanks. On 8 Okt., 18:10, "Kristinn Örn Sigurðsson" <[EMAIL PROTECTED]> wrote: > Doesn't it work even after restarting the server (not the webserver, the > real server)? It should work fine after that, unless you've got something > running at startup. > To kill it with -9 you will have to

Re: how to stop the django development server?

2007-10-08 Thread Kristinn Örn Sigurðsson
Doesn't it work even after restarting the server (not the webserver, the real server)? It should work fine after that, unless you've got something running at startup. To kill it with -9 you will have to list all running manage.py processes (for instance: ps aux | grep -i manage). Then you'll have t

Re: order by problem with foreign key

2007-10-08 Thread MarcoX
Hi karen, I have removed the attribute null=True and now it works fine. Thank you. On 8 Ott, 16:38, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > Looks like you might be hitting: > > http://code.djangoproject.com/ticket/2076(order_by with related table does > not work) > > From the comments in the

Re: how to stop the django development server?

2007-10-08 Thread patrickk
I´m not too familiar with server-stuff, but I thought that kill only works with fastcgi. we´re using modpython (sorry, forgot to mention that before). I´m only to "restart" the server gracefully. I´ve tried that but it doesn´t work. On 8 Okt., 18:00, "Kristinn Örn Sigurðsson" <[EMAIL PROTECTED]

Re: how to stop the django development server?

2007-10-08 Thread Kristinn Örn Sigurðsson
Have you tried to kill it with -9? On 10/8/07, patrickk <[EMAIL PROTECTED]> wrote: > > > I´ve started the devserver with one of our vhosts a couple of days > ago. the devserver crashed and now, when I want to start the devserver > for another user (= another vhost on our machine), it says that port

how to stop the django development server?

2007-10-08 Thread patrickk
I´ve started the devserver with one of our vhosts a couple of days ago. the devserver crashed and now, when I want to start the devserver for another user (= another vhost on our machine), it says that port 8000 is already in use. so, how can I stop the devserver? btw, every vhost has it´s own dj

Re: Query for cascading children to a parent

2007-10-08 Thread Richard Dahl
I have a model class 'Organization' with a parent and I do this with a method get_child_orgs: get_child_orgs(self): child_orgs = [] co = Organization.objects.filter(parent__exact = self) for c in co: child_orgs.append(c) gc = c.get_child_orgs() child_orgs.extend

Re: Query for cascading children to a parent

2007-10-08 Thread Thomas Guettler
Am Montag, 8. Oktober 2007 15:13 schrieb [EMAIL PROTECTED]: > In my model class I have: > > class Company(models.Model): > company_id = models.AutoField(primary_key=True) > parent_company = models.ForeignKey("self",null=True) > . > . > > > How would I query to get back all children

Re: order by problem with foreign key

2007-10-08 Thread Karen Tracey
Looks like you might be hitting: http://code.djangoproject.com/ticket/2076 (order_by with related table does not work) >From the comments in there it sounds like your case might work if you did not have the null=True on your ClickCounter ForeignKey in Story, so that might be something to try as a

Re: order by problem with foreign key

2007-10-08 Thread Malcolm Tredinnick
On Mon, 2007-10-08 at 05:48 -0700, MarcoX wrote: > Hi all, > I have 2 models. > > class Story(models.Model): > title = models.CharField(maxlength=150,core=True) > . > counter = > models.ForeignKey(ClickCounter,edit_inline=models.STACKED,num_in_admin=0,blank=True,null=True) > > class

Re: Global Variables in Templates?

2007-10-08 Thread Malcolm Tredinnick
On Mon, 2007-10-08 at 04:57 -0700, lars wrote: [...] > Maybe one could post a link to this snippet in the docs? I guess I > wasn't the only > one asking for another approach? That would be overkill. This is Python. If you want a function that does the same thing over and over again, you write one

Re: Query for cascading children to a parent

2007-10-08 Thread Malcolm Tredinnick
On Mon, 2007-10-08 at 13:31 +, [EMAIL PROTECTED] wrote: > Ok..thanks.. I was afraid I was going to get that answer. If I do > this with select_related, I'm still going to have to implement a loop > to display them all in one list, because they'd come back as > company.parent_company.parent_co

Re: Query for cascading children to a parent

2007-10-08 Thread [EMAIL PROTECTED]
Ok..thanks.. I was afraid I was going to get that answer. If I do this with select_related, I'm still going to have to implement a loop to display them all in one list, because they'd come back as company.parent_company.parent_company etc, instead of all in one top level list... right? On Oct 8

Re: Query for cascading children to a parent

2007-10-08 Thread Malcolm Tredinnick
On Mon, 2007-10-08 at 13:13 +, [EMAIL PROTECTED] wrote: > In my model class I have: > > class Company(models.Model): > company_id = models.AutoField(primary_key=True) > parent_company = models.ForeignKey("self",null=True) > . > . > > > How would I query to get back all child

Query for cascading children to a parent

2007-10-08 Thread [EMAIL PROTECTED]
In my model class I have: class Company(models.Model): company_id = models.AutoField(primary_key=True) parent_company = models.ForeignKey("self",null=True) . . How would I query to get back all children companies, as well as all of their children companies, and their children co

Re: How would I paginate this query?

2007-10-08 Thread Malcolm Tredinnick
On Mon, 2007-10-08 at 07:19 +, Michael wrote: [...] > The above index view retrieves all the events for the 5 most recent > days and orders them how I'd like. > > Essentially, my goal is to be able to provide previous and next links > such that older/newer events can be viewed as well. From a

order by problem with foreign key

2007-10-08 Thread MarcoX
Hi all, I have 2 models. class Story(models.Model): title = models.CharField(maxlength=150,core=True) . counter = models.ForeignKey(ClickCounter,edit_inline=models.STACKED,num_in_admin=0,blank=True,null=True) class ClickCounter(models.Model): number_views = models.IntegerField(d

Re: Django Browser Games?

2007-10-08 Thread Andreas Pfrengle
Here, next one in the line :) Fantasy-strategy-roleplaying-MMOG (German/English). Not openly developed (and not much developed at all yet), but I wonder if we are possibly all writing similar chunks of code ;) Andreas --~--~-~--~~~---~--~~ You received this messa

Re: Django-multilingual

2007-10-08 Thread Chris Hoeppner
I had been getting "Model doesn't have field xxx" errors in the admin, and got a quick solution up myself, because I didn't have the time to figure out what's wrong. I simply added field_lang columns to my model, and wrote a template tag to fetch the correct column based on column basename and the

Re: Global Variables in Templates?

2007-10-08 Thread lars
> Sure, just write a short wrapper function which calls > "render_to_response" and uses a RequestContext. One example which you > can use is available on djangosnippets: > > http://www.djangosnippets.org/snippets/3/ Ah, brilliant! Problem solved =D > Having Django "automatically" do this for you

Re: template problem in windows

2007-10-08 Thread Dushyant Sharma
yes thanks mike mostly i work in linux but i had to see some work on windows and this problem was little strange. but all well now. thanks again --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group.

Re: template problem in windows

2007-10-08 Thread Mike H
Hi Dushyant, From the default settings.py : TEMPLATE_DIRS = ( # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates". # Always use forward slashes, even on Windows. # Don't forget to use absolute paths, not relative paths. '', ) so you need to have

template problem in windows

2007-10-08 Thread Dushyant Sharma
i have found this during working with django on windws. if i create folder like template, backup (start characters t, b etc) it wont work because template folder settings in the SETTINGS.py will be TEMPLATE_DIRS = ( 'c:\myproject\template', } it would not work because \t is tab character

Re: Global Variables in Templates?

2007-10-08 Thread James Bennett
On 10/8/07, lars <[EMAIL PROTECTED]> wrote: > I can see why it is necessary to instantiate RequestContext with the > request object. But in terms of DRY I wonder wether there isn't a > better way? Sure, just write a short wrapper function which calls "render_to_response" and uses a RequestContext

1st Swiss Django User Group Meeting Today

2007-10-08 Thread Patrick Lauber
To all swiss django users: We will hold the first swiss django user group meeting today. Where: divio gmbh, bachstrasse 15, 8038 Zürich When: Today: Monday, 8.10.2007 18:30 Topics: -django-cms to go open source -swiss user group founding meeting Internet access and coffee will be available.

Re: Admin Media on a VServer

2007-10-08 Thread David Reynolds
On 6 Oct 2007, at 6:13 pm, niklas.voss wrote: > > I have a VServer with Django installed and it works very well, on my > home Server on MacOS and Windows the Admin Panel worked very well, > too, with some fixes, but on the Debian VServer with Apache2, it don't > works anymore. > > Is there a way

Re: Global Variables in Templates?

2007-10-08 Thread lars
Hi! > Look at TEMPLATE_CONTEXT_PROCESSORS and use RequestContext instead of > Context in your views. See [1] for lots of details. Remember to read the > note about to pass RequestContext to render_to_response(). You mean like this: return render_to_response('my_template.html',

Re: Admin Media on a VServer

2007-10-08 Thread Jarek Zgoda
niklas.voss napisał(a): > I have a VServer with Django installed and it works very well, on my > home Server on MacOS and Windows the Admin Panel worked very well, > too, with some fixes, but on the Debian VServer with Apache2, it don't > works anymore. > > Is there a way to fix this? Or can i j

Watch TV stations from around the World

2007-10-08 Thread jrou
Even watch the War in Iraq live and unsensored from you Laptop or PC for FREE after a small onetime installment fee. Plus 1,000's more stations. http://jblog.ipodpsp.hop.clickbank.net --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Re: Django template language

2007-10-08 Thread Jerry
On Oct 6, 3:03 am, Bernd <[EMAIL PROTECTED]> wrote: > But now I want to compare 'image/gif'. A gif works like a jpeg. But I > didn't find a solution to write > > {% ifequal mime 'image/jpeg' or 'image/gif'%} > or > {% if mime in ['image/jpeg', 'image/gif] '%} > > Is there any chance to compare

How would I paginate this query?

2007-10-08 Thread Michael
Hi all, So I've got a query which contains a subquery. I would like to paginate based on this subquery and I'm not sure how. The pertinent code is as follows: class Event(models.Model): description = models.CharField(max_length=200) date = models.DateTimeField() def __unicode__(se