Re: Sessions living through HttpResponseRedirect

2012-04-24 Thread sspross
Hi Joshua What was your solution here? It looks like I'm having the same kind of problem like you: http://stackoverflow.com/questions/10293467/losing-session-after-httpresponseredirect Thx! Regards, Silvan On Wednesday, April 1, 2009 4:47:17 AM UTC+2, Joshua K wrote: > > Howdy Folks, > > How

Re: restarting a django development server

2012-04-24 Thread dummyman dummyman
wat is the workaround for creating a form each time when he enters d add form ? On Tue, Apr 24, 2012 at 1:22 AM, Andy McKay wrote: > Change your code so you don't have to. Relying on a restart for that > is the wrong approach. > > -- > You received this message because you are subscribed to the

Re: Sessions living through HttpResponseRedirect

2012-04-24 Thread Alexandr Aibulatov
Set request.session.modified = True 2012/4/24 sspross : > Hi Joshua > > What was your solution here? It looks like I'm having the same kind of > problem like you: > > http://stackoverflow.com/questions/10293467/losing-session-after-httpresponseredirect > > Thx! > > Regards, > Silvan > > On Wednesd

Re: Cross domain cookie to extract csrf token

2012-04-24 Thread Luther Goh Lu Feng
If for whatever reason you are using django 1.3, you need to ensure the csrf token generated in the view is passed through unicode. eg unicode(csrf(request)['csrf_token']) On Apr 23, 6:04 pm, Luther Goh Lu Feng wrote: > I have managed to resolve the issue. This only works on phonegap, > chrome 20

Re: Logging in by Email isn't responding

2012-04-24 Thread Mario Gudelj
I'm new to django too, so i'm sorry if i get this wrong, but you don't seem to be authenticating the user using django's authenticate method. I made my username equal to email on.signup and then i use vanila django's auth module On 23/04/2012 7:21 PM, "Mai" wrote: > here i guess i wrote Every th

Re: URL regex not matching

2012-04-24 Thread Swaroop Shankar V
I changed to your regex and it works fine. Thanks a lot :) Thanks and Regards, Swaroop Shankar V On Sun, Apr 22, 2012 at 2:37 PM, yati sagade wrote: > I think that one also matches upto one whitespace character(space, tab or > newline) within the username(The \s). > > > On Sun, Apr 22, 2012 a

Server push ajax

2012-04-24 Thread psychok7
hi, i have to implement a Server push with django for a school project. my friend said that its very hard to make it work, that the software around is still buggy and all. it that true? can you guide me to a easy way to implement this that works without any problems or workarounds? i am still

Re: Server push ajax

2012-04-24 Thread psychok7
what about websockets?? are they better and easier to implement than ajax or not? On Tuesday, April 24, 2012 12:14:17 PM UTC+1, psychok7 wrote: > > hi, i have to implement a Server push with django for a school project. > my friend said that its very hard to make it work, that the software arou

Re: Server push ajax

2012-04-24 Thread Tom Evans
On Tue, Apr 24, 2012 at 12:14 PM, psychok7 wrote: > hi, i have to implement  a Server push with django for a school project. my > friend said that its very hard to make it work, that the software around is > still buggy and all. > > it that true? can you guide me to a easy way to implement this th

Re: Django deployment practices -- do people use setup.py?

2012-04-24 Thread Andrew Cutler
On 24 April 2012 02:21, Daniel Sokolowski wrote: > > Both, system libraries and not python files --- anything outside of Python > land that PIP can’t handle. How do you handle that if you want a self > contained easy to deploy project? Well then it's safe to assume that if it's not pure Python, o

RE: [JOB] Django Programmers

2012-04-24 Thread Sells, Fred
I think he meant "persecute" From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On Behalf Of Mark Phillips Sent: Thursday, April 12, 2012 11:44 PM To: django-users@googlegroups.com Subject: Re: [JOB] Django Programmers That's not very nice to prosecute potential empl

RE: [JOB] Urgent - PHP/Python Developer needed

2012-04-24 Thread Sells, Fred
Baby sitters in Manhattan get that much and lawn care workers in FL with no teeth and a leaf blower get $15. You get what you pay for. From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On Behalf Of Cal Leeming [Simplicity Media Ltd] Sent: Thursday, April 12, 2012 3:2

Re: Server push ajax

2012-04-24 Thread psychok7
i have searched for ajax before and found very "divergente" comments (most of them being related to updates and stuff) so thats why i am asking here, i suposed you guys know better and can guide me towards the right way PS: django-pubsub could work for wht i need, but i didnt see any ajax or we

EmailMessage hangs in windows

2012-04-24 Thread CrabbyPete
I have the following code: msg = EmailMessage ( subject = subject, body = body, from_email = sender, to = receivers,

Re: Server push ajax

2012-04-24 Thread psychok7
i found django-*push server* and django-push can anyone tell me if they are very differente, and wich one is easier (and good) to use? On Tuesday, April 24, 2012 12:14

Re: Server push ajax

2012-04-24 Thread Mike Ryan
The vague, open-ended nature of your questions gives me the impression that you are trying to get the group to do most of the hard work for you. Tom's suggestion is right - Pubsub definitely sounds like the way to go for your project. The TCP protocol doesn't make any specific reference to AJAX ei

Multi object form

2012-04-24 Thread David
Hello I need to produce a form that will contain a series of rows. Each row will be a specific object. Columns for each row will have data that will need editting. ie: Person1 EditA EditB EditC Person2 EditA EditB EditC Person3 EditA EditB EditC Person4 EditA EditB EditC The form

Re: Multi object form

2012-04-24 Thread Marcin Tustin
Create a modelform, then use a formset to manage all of the modelforms. On Tue, Apr 24, 2012 at 14:47, David wrote: > Hello > > I need to produce a form that will contain a series of rows. Each row will > be a specific object. Columns for each row will have data that will need > editting. > > ie:

Re: Multi object form

2012-04-24 Thread Tom Evans
On Tue, Apr 24, 2012 at 2:47 PM, David wrote: > Hello > > I need to produce a form that will contain a series of rows. Each row will > be a specific object. Columns for each row will have data that will need > editting. > > ie: > > Person1  EditA  EditB  EditC > Person2  EditA  EditB  EditC > Pers

Re: Multi object form

2012-04-24 Thread David
Thank you both for your replies. Having created a modelform and used: ArticleFormSet = formset_factory(ArticleForm, extra=2) I have a queryset that produces the objects I want to edit in my formset. How can I bind these objects to the formset and therefore remove the need for the extra=2 para

Re: Multi object form

2012-04-24 Thread Tom Evans
On Tue, Apr 24, 2012 at 3:02 PM, David wrote: >  Thank you both for your replies. > > Having created a modelform and used: > > ArticleFormSet = formset_factory(ArticleForm, extra=2) > > I have a queryset that produces the objects I want to edit in my formset. > How can I bind these objects to the

Re: Multi object form

2012-04-24 Thread David
Hi That is brilliant thank you! I've been struggling with this for too long :( MyModel Set = modelformset_factory(MyModel) formset = MyModelFormSet(queryset= MyModel.objects.select_related().filter(left_team__isnull=True).filter(team=pk)) variables = RequestContext(request, {

Re: Multi object form

2012-04-24 Thread David
Adding ,extra=0 to the modelformset_factory() line appears to do the job. Thanks for your help guys -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/aJyLcUk

Re: Multi object form

2012-04-24 Thread Marcin Tustin
There is documentation on the various options. It is possible to specify no extras. On Tue, Apr 24, 2012 at 15:09, David wrote: > Hi > > That is brilliant thank you! I've been struggling with this for too long :( > > MyModel Set = modelformset_factory(MyModel) > formset = MyModelFormSet(

Where are the women?

2012-04-24 Thread Daniele Procida
I was looking at again with excited anticipation, and reading through the talk summaries. - and then I had a closer look at the names of this year's speakers. There are *two* women out of

Re: Where are the women?

2012-04-24 Thread Marcin Tustin
My experience is that there are very few women working in shops that primarily use open source technology. When I've encountered them, it's been in Microsoft shops, and very large technology organisations which love proprietary technologies. My guess is that open source is not really the issue (al

Re: Where are the women?

2012-04-24 Thread Tom Evans
On Tue, Apr 24, 2012 at 3:20 PM, Marcin Tustin wrote: > My experience is that there are very few women working in shops that > primarily use open source technology. When I've encountered them, it's been > in Microsoft shops, and very large technology organisations which love > proprietary technolo

Re: Where are the women?

2012-04-24 Thread Marcin Tustin
I'm not suggesting that "women can't handle open source". If anything, I'm amazed that anyone chooses to work with proprietary products from the big vendors, because it generally seems harder. On Tue, Apr 24, 2012 at 15:34, Tom Evans wrote: > On Tue, Apr 24, 2012 at 3:20 PM, Marcin Tustin > wro

Re: Django nginx uWSGI

2012-04-24 Thread Gerald Klein
OK finally got back to it, I did what you said in part. The examples on the uWSGI page show how to get a django app to function but the part that they don't show is the static files config. I did do the rebuild and that did help out with part of the original problem, and I also had to add 1 more de

Re: Server push ajax

2012-04-24 Thread psychok7
i read and tried to implement all of them with no luck then (mostly dependencies problems) anyways i noticed i need a diferent server to try them, (with comet support in one case) and im not sure wich one is djangos default, but this one doesnt say anything about "other" servers https://bitbuc

Re: Server push ajax

2012-04-24 Thread psychok7
forget it thats an alpha version just noticed now. ill give it a go with the servers.. they replace djangos default server ?? or its an addon? On Tuesday, April 24, 2012 4:33:12 PM UTC+1, psychok7 wrote: > > i read and tried to implement all of them with no luck then > (mostly dependencies prob

Re: Where are the women?

2012-04-24 Thread Remy 'Sieben' Leone
There is women in python programming : pyladies.com Maybe you can ask them to help to boost up women in Django world Best regards 2012/4/24 Marcin Tustin > I'm not suggesting that "women can't handle open source". If anything, I'm > amazed that anyone chooses to work with proprietary products

transaction.commit_on_success committing prematurely?

2012-04-24 Thread John Begeman
I'm having some issues with commit_on_success.  It appears to be committing prematurely, and I'm not quite sure why. I have the following code: @transaction.commit_on_success def test(): s = Somemodel.objects.all()[0] s.hostname = 'this_is_a_test' s.save() raise AttributeError('oh

Re: transaction.commit_on_success committing prematurely?

2012-04-24 Thread Masklinn
On 24 avr. 2012, at 18:18, John Begeman wrote: > I'm having some issues with commit_on_success. It appears to be > committing prematurely, and I'm not quite sure why. > > I have the following code: > > @transaction.commit_on_success > def test(): >s = Somemodel.objects.all()[0] >s.hostn

Re: transaction.commit_on_success committing prematurely?

2012-04-24 Thread John Begeman
Hi Masklinn, TransactionMiddleware is enabled in my settings. However, I'm doing this transaction management outside of views. On Tue, Apr 24, 2012 at 12:47 PM, Masklinn wrote: > On 24 avr. 2012, at 18:18, John Begeman wrote: >> I'm having some issues with commit_on_success.  It appears to b

Re: transaction.commit_on_success committing prematurely?

2012-04-24 Thread John Begeman
I found out the answer to my problem. My app uses multiple databases and my saves were against something that was not the default DB. I needed to specify the proper db to manage transactions against, as commit_on_success was trying to manage connections on the default database. DERP. Thanks for

Re: Logging in by Email isn't responding

2012-04-24 Thread Nikolas Stevenson-Molnar
Could you provide a bit more detail about the problem? By 'not working' do you mean you get an exception, or that you enter your email/password and it doesn't log you in as expected? In the latter case, I would suggest a little debugging. First, make sure your settings are correct and that your co

Re: Logging in by Email isn't responding

2012-04-24 Thread Nikolas Stevenson-Molnar
One quick thought is that your user query is case-sensitive (by default, Django queries use __exact: https://docs.djangoproject.com/en/dev/ref/models/querysets/#std:fieldlookup-exact ). So if the email was stored with mixed case, or if you're entering mixed case when logging in, it won't work. Try

Open Django East

2012-04-24 Thread nancy.as...@conferencedirect.com
Event: Open Django East Date: Friday May 18 to Saturday May 19 (optional sprint on Sunday May 19) Location: Renaissance Newark Airport 1000 Spring Street Elizabeth, NJ 07201 For more information click here: Open Django East Django 1.4 is out, and DjangoCon US isn't until September! How are you

RE: Developing first Django Site -- any advice on co-developing effectively with a professional?

2012-04-24 Thread Sells, Fred
Finding a "good consultant" is non-trivial. The A and B+ consultants are generally expensive and in high demand. It is very hard to identify a good consultant if you are not one already. Most people will no longer provide a recommendation of substance because of the potential backlash of a bad r

how to emulate parallel multi-user usability testing with django and selenium/grid?

2012-04-24 Thread Tony Schmidt
I can get my Selenium tests running fine for one user/ sequentially on Django 1.4 using LiveServerTestCase, but I would like to emulate parallel multi-user testing. I don't think I need real load testing, s

Re: [JOB] Django Programmers

2012-04-24 Thread tofergus
... or perhaps "prostrate" ... or "prostitute" ... you never can tell these days ... On 24.04-08:24, Sells, Fred wrote: > I think he meant “persecute” > > > > From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On > Behalf Of Mark Phillips > Sent: Thursday, April 12, 201

Django DateTimePicker only shows up for superusers inside my app

2012-04-24 Thread Ahmad
I'm using django DateTimePicker widget -- AdminSplitDateTime() -- in event creating app, every thing goes fine when the loged in user has superuser permissions, but when normal user tries to access the creating form the widget don't show up. I don't know why it acts like this? and how to overco

Re: Django DateTimePicker only shows up for superusers inside my app

2012-04-24 Thread akaariai
Could you check if the non-admin user can download this script: "/ admin/jsi18n/". It seems downloading that script needs privileges to access admin site. That view just provides the javascript catalogs for "django.conf" and "django.contrib.admin" packages. You can provide them from different URL,

Re: Django DateTimePicker only shows up for superusers inside my app

2012-04-24 Thread Ahmad
Thanks @Akaariai after reading what in your link, I fixed the problem by using instead of On Wednesday, April 25, 2012 12:06:25 AM UTC+2, akaariai wrote: > > Could you check if the non-admin user can download this script: "/ > admin/jsi18n/". It seems downloading that script needs privileges t

Re: transaction.commit_on_success committing prematurely?

2012-04-24 Thread Andre Terra
This may actually solve one of the problems I've been having regarding slow bulk inserts. I'll look into it, thanks for the pointer!!! Cheers, AT On Tue, Apr 24, 2012 at 2:16 PM, John Begeman wrote: > My app uses multiple databases and my saves were against something > that was not the default

Re: Ways to handle long-running server-side processing in Django

2012-04-24 Thread jpk
Ah, celery sounds like it's just what I need. Thanks guys! -jpk On Mon, Apr 23, 2012 at 7:52 AM, bruno desthuilliers < bruno.desthuilli...@gmail.com> wrote: > On Apr 21, 11:34 pm, David Markey wrote: > > Sounds like the API should return a UUID that can then be used to poll, > > while celery o

Re: guardian: I get ImproperlyConfigured error, but I have set ANONYMOUS_USER_ID in projectName/projectName/settings.py

2012-04-24 Thread su
"from userena.models import UserenaBaseProfile " in settings.py cause this problem. -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/AA_cMGHU4XYJ. To post t

form doing a query for each element of foreign key in select

2012-04-24 Thread Lee Hinde
I have a table with four or five foreign keys. Using the default form widgets, a foreign key is represented by a single value select. I noticed, with debug_tool_bar, that a query is being made for each element of each foreign key select option. Seems like it ought not I am using     classes = ge

problem with syncdb in geodjango tutorial

2012-04-24 Thread kenneth gonsalves
hi, I am following the geodjango tutorial, and when doing syncdb, I get the following error: [lawgon@xlquest geodjango]$ python manage.py syncdb Creating tables ... Creating table world_worldborder Installing custom SQL ... Installing indexes ... Failed to install index for world.WorldBorder mode

Re: problem with syncdb in geodjango tutorial

2012-04-24 Thread Jani Tiainen
25.4.2012 7:59, kenneth gonsalves kirjoitti: hi, I am following the geodjango tutorial, and when doing syncdb, I get the following error: [lawgon@xlquest geodjango]$ python manage.py syncdb Creating tables ... Creating table world_worldborder Installing custom SQL ... Installing indexes ... Fai

Re: problem with syncdb in geodjango tutorial

2012-04-24 Thread kenneth gonsalves
On Wed, 2012-04-25 at 08:44 +0300, Jani Tiainen wrote: > > am using postgis on Fedora 16 and django trunk > > > > I've seen that error when you try to create new column in postgis > database with SRID that doesn't exists in postgis srid definitions. > > You can check does SRID exist in database:

Re: Ignoring empty forms in a formset

2012-04-24 Thread Martin Tiršel
I am doing that: When I add a form to formset, I increase form-TOTAL_FORMS. But this doesn't affect processing of empty forms. Martin On Monday, April 23, 2012 4:48:29 PM UTC+2, Marcin wrote: > > You will want to edit the management form values on the client side, as > described in the doc