Django configuration. I can't import django.db .

2008-12-06 Thread marekw2143
Hi I've installed python 2.5.2 into D:\P25 folder. Then i installed diango using python setup.py install. After that, when i typed: >>> import django everything was ok, but when i type: >>> import diango.db i get the following message: Traceback (most recent call last): File "", line 1,

Re: Using fixtures in tests

2009-08-18 Thread marekw2143
Yes, you're right. I just assumed that if the info about loading initial_data is printed that there will be printed info for non- initial-data fixtures too. On Aug 17, 11:53 am, Karen Tracey wrote: > On Mon, Aug 17, 2009 at 11:10 AM, Marek Wawrzyczek > wrote: > > > > > > > Hi, > > > I've got an

Re: Using custom table instead of "user" in django

2009-08-18 Thread marekw2143
How about writting adapter to the django user class? It can have descriptor for login (getting login would return users email). While creating such user login would be set (only once, during creation) for example the following value: user id converted to string preceded by one character. For other

Re: Using custom table instead of "user" in django

2009-08-18 Thread marekw2143
How about writting adapter to the django user class? It can have descriptor for login (getting login would return users email). While creating such user login would be set (only once, during creation) for example the following value: user id converted to string preceded by one character. For other

Re: Using custom table instead of "user" in django

2009-08-18 Thread marekw2143
How about writting adapter to the django user class? It can have descriptor for login (getting login would return users email). While creating such user login would be set (only once, during creation) for example the following value: user id converted to string preceded by one character. For other

Re: HttpResponseRedirect

2010-08-06 Thread marekw2143
So when returning HttpResponseRedirect django returns 302 status code for the client, which indicates that the client browser should navigate to another url. Then you have at last 2 options: 1) before returning save at session data information about form that you want to thans form - but it's not v

Re: HttpResponseRedirect

2010-08-06 Thread marekw2143
Daniel, I think it can work incorrectly when user would be filling more than one form of the same type at the same time. My suggestion is to use passing get parameters while returning HttpResponseRedirect. It of course have disadvantage that the address would not be always same (get params will be

Re: Value Error in Pyfacebook

2010-08-07 Thread marekw2143
At the end of the stacktrace there's written: ValueError: invalid literal for int() with base 10: 'None' You can debug that code and see what happens. On Aug 7, 10:20 pm, Pankaj Singh wrote: > Hi i m getting this error > > *** > T

Re: Value Error in Pyfacebook

2010-08-07 Thread marekw2143
At the end of the stacktrace there's written: ValueError: invalid literal for int() with base 10: 'None' You can debug that code and see what happens. On Aug 7, 10:20 pm, Pankaj Singh wrote: > Hi i m getting this error > > *** > T

Re: Django with AJAX, execution of long processes

2010-08-07 Thread marekw2143
You can spawn another process in system, and save identification data of that process in users's session, and then query django for status of the process. I guess you can also implement long pooling in django to query for status of the process. But generally if talking about long pooling it's worth

Re: Django with AJAX, execution of long processes

2010-08-07 Thread marekw2143
You can spawn another process in system, and save identification data of that process in users's session, and then query django for status of the process. I guess you can also implement long pooling in django to query for status of the process. But generally if talking about long pooling it's worth