Re: Issues saving a formset form with multiple forms.

2013-11-11 Thread Jason S
Hi, The first form saves fine but the second still dosn't. I can't seem to pass the poll object to the save method of the form properly. Since i'm using nonrel once i've passed the poll object I can append the comment using something like poll.comments.append(comment) but I just don't seem to

Re: Issues saving a formset form with multiple forms.

2013-11-11 Thread Jason S
It looks like i'm passing the right objects but get told there isn't a comments field Exception Type:AttributeErrorException Value: 'PollForm' object has no attribute 'comments' The debug info says: poll.comments.append(self) ... ▼ Local vars Variable Value self user poll On

Is this what you would expect from this Q query?

2013-11-11 Thread Phoebe Bright
I have this line in my code where the functions return an ID and what I wanted was to select all records that did not belong to one of these users. Carbon.objects.filter(~Q(user__in = [limbo_user(), system_user(), retire_user()])) What I expected to get was *SELECT* •••

Re: Django website migration from live server to localhost

2013-11-11 Thread IR. T
Thanks , i have used easy_install command to install all the packages which were essencial to run my django app and i am glad my app is running now but unfortunately it is running without the website template may be i need to fix urls which are point to website template. Regards, IR.T On Sun, Nov

Re: Invalid control character char 30262

2013-11-11 Thread Chi Tak Lam
Is there anyone can help? I think i should do a str.replace(old, new)? but i not sure what i should i set for 'old' and 'new' argument... something like this? "my text".replace(char 30262, '???') On Saturday, November 9, 2013 11:44:53 PM UTC+8, Chi Tak Lam wrote: > > Hi, > > I have a django-cele

Re: Invalid control character char 30262

2013-11-11 Thread Sandro Dutra
Try to write on top of this file: # -*- coding: utf-8 -*- Maybe help. 2013/11/11 Chi Tak Lam > Is there anyone can help? > > I think i should do a str.replace(old, new)? > but i not sure what i should i set for 'old' and 'new' argument... > > something like this? > "my text".replace(char 3026

Re: Trouble with (unwanted) field validation

2013-11-11 Thread DJ-Tom
This is really weird - I just tried again and *can't* reproduce it at all ... everything is suddenly working as expected. Thanks anyways ;-) Am Freitag, 8. November 2013 13:41:49 UTC+1 schrieb Sergiy Khohlov: > > answer is simple . Validator would like to check field which is > used for Key.

Fabric for dependency management, testing strategy

2013-11-11 Thread Kannan
Hi Guys, I am new to Fabric. Please send me your thoughts of using Fabric for dependency management and also about the testing strategy. Additionally, Please send me tutorials or links or something that can start with. With regards, Kannan -- You received this message because you are subsc

Re: Fabric for dependency management, testing strategy

2013-11-11 Thread Avraham Serour
for dependency management you should use pip, first step is to go through the docs for fabric (and pip) also you should google for best practices On Mon, Nov 11, 2013 at 4:40 PM, Kannan wrote: > Hi Guys, > I am new to Fabric. Please send me your thoughts of using Fabric for > dependency manage

Re: Invalid control character char 30262

2013-11-11 Thread Timothy W. Cook
The replace was my thought as well. I would just replace it with an empty string. Especially since it is a control character and apprently doesn't carry human readable information. ? On Mon, Nov 11, 2013 at 11:38 AM, Chi Tak Lam wrote: > Is there anyone can help? > > I think i should do a

Re: Fabric for dependency management, testing strategy

2013-11-11 Thread John DeRosa
Agree with Avraham. Some other considerations: I use Linux package managers (e.g., apt-get on Debian) for non-critical technology. This usually (but not always) means all non-Python technology, plus Python technology that we don’t push to its limits. But, OTOH, at least in Ubuntu, it can someti

Re: Invalid control character char 30262

2013-11-11 Thread m1chael
I use ignore in unicode(...) to solve annoying things like this On Nov 11, 2013 10:48 AM, "Timothy W. Cook" wrote: > The replace was my thought as well. I would just replace it with an > empty string. Especially since it is a control character and apprently > doesn't carry human readable informa

Problem with syncdb and multiple databases

2013-11-11 Thread Sells, Fred
I'm using Django 1.5 and Mysql 5.1 and am in the early stages of a multiple app development and the schema is changing frequently as "hidden" requirements emerge. I cannot get syncdb to sync anything other than my default db, and when I change my default, it still seems to see the old one. He

Re: Auth backends don't work with HttpResponseRedirect and Django 1.4+?

2013-11-11 Thread Hanne Moa
The fix that worked for 1.4.x did not work for 1.5.x. Only thing that worked for 1.5.x was changing how apache called django, by setting WSGIDaemonProcess to "processes=1" or removing "processes" entirely ("threads" can be lots more than one). Something has obviously changed in how django does wsg

Crispy Forms css_classes

2013-11-11 Thread sbrandt
Hello, I'm using crispy forms with zurb foundation. Since crispy-forms-foundation isn't that advanced, I need to develop it further by myself. So I've encountered a problem. I need to change the CSS classes of the surrounding div dynamically: The template (django_crispy_forms/templates/

Re: Problems with turning on the Admin

2013-11-11 Thread Keith Edmiston
UPDATE: this problem was caused by latent .pyc files on my localhost machine. Deletion of those removed this issue. Thanks for the help. Keith On Saturday, November 9, 2013, Vincenzo Prignano wrote: > Sorry but I still can’t see the problem here. You are by the way using an > old Django version