modelformset partial save and AttributeErrors

2011-09-28 Thread Michael Wayne Goodman
Hi, I'm getting the following error when I try to assign a value to a model attribute in a modelformset: AttributeError at /number/ 'WSGIRequest' object has no attribute 'qsession' which occurs in the following snippet: numbers = formset.save(commit=False) for number in

Re: Using IGNORABLE_404_URLS

2011-09-28 Thread Sam Walters
I second this. Not something you would implement in django. Would handle that with the web server front end. Eg: i used to get requests to phpmyadmin login url requests (i assume thats because that software is a security issue). So i got nginx to return a minimal 404 message instead of the full

Re: Using IGNORABLE_404_URLS

2011-09-28 Thread Kurtis Mullins
Hey, I don't think I'll be able to help you much with figuring this out in Django-land. I do have one suggestion though. You could manually block these using your front-end server (Nginx, Apache, etc...) so that way it doesn't even reach Django. Not only would this be a hypothetically easy fix,

Create singular instance with ManyToManyField input as ids

2011-09-28 Thread Knack
Hi guys, I need to create Django model instances from raw data, which comes from a dict. Example model: class Worker(models.Model): name = models.CharField() class Project(models.Model): name = models.CharField() subject = models.CharField() workers =

Re: problem with middle - correctly formatted 2

2011-09-28 Thread jenia ivlev
You need to call "TemplateResponse" in your views for "process_template_response" to be called in your middleware. So in you view, instead of doing: return render(request,'some template' , {'context':context}) You do: return TemplateResponse. Thanks. jenia On Sep 28, 6:25 pm, jenia ivlev

Re: You -- yes, you -- should contribute to Django.

2011-09-28 Thread Kurtis
Out of curiosity, is this a good place to start? https://code.djangoproject.com/query?status=!closed=1 On Sep 28, 10:33 pm, Kurtis Mullins wrote: > Thanks Shawn. And nice speech! I didn't realize there were so many open > tickets -- especially any as trivial as that.

Re: You -- yes, you -- should contribute to Django.

2011-09-28 Thread Kurtis Mullins
Thanks Shawn. And nice speech! I didn't realize there were so many open tickets -- especially any as trivial as that. I'll try to do my part. Like you said, it's a great way to learn more about Django anyways. On Wed, Sep 28, 2011 at 1:53 PM, Cal Leeming [Simplicity Media Ltd] <

problem with middle - correctly formatted 2

2011-09-28 Thread jenia ivlev
Hello: I have defined a middleware class. and i have added it to the middleware_classes attribute in setting. When a request comes in, the middleware class gets created (the debugger catches the code when the breakpoint is on the class CommonFiilter(): line) Now i expect the function def

problem with middleware - correctly formatted

2011-09-28 Thread jenia ivlev
Hello: This is the second version of my question. I reformatted it. I have defined a middleware class. and i have added it to the middleware_classes attribute in setting. When a request comes in, the middleware class gets created (the debugger catches the code when the breakpoint is on the class

problem with middleware

2011-09-28 Thread jenia ivlev
Hello: I have defined a middleware class. and i have added it to the middleware_classes attribute in setting. When a request comes in, the middleware class gets created (the debugger catches the code when the breakpoint is on the class CommonFiilter(): line) Now i expect the function def

Re: Problem on user profile

2011-09-28 Thread jenia ivlev
Thanks but it wasnt this. I was tired and didnt see some gross mistakes. Thanks for your help though On Sep 28, 6:01 am, Thomas Orozco wrote: > You might be importing your models.py file multiple time, thus registering > the signals multiple times. > > You should look

Using IGNORABLE_404_URLS

2011-09-28 Thread shacker
Our Django sites get literally hundreds of bogus 404 requests per day. For example: Referrer: http://domain.edu/ Requested URL: /signup/ User agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1;) IP address: 168.9.86.2 The "referrer"

Re: You -- yes, you -- should contribute to Django.

2011-09-28 Thread Cal Leeming [Simplicity Media Ltd]
There seems like there's quite a few good talks in this video, will put some time aside tonight and watch :) Lightning talks are such a good idea - wish I had used the same concept on my last talks :L On Wed, Sep 28, 2011 at 6:49 PM, Cal Leeming [Simplicity Media Ltd] <

Re: You -- yes, you -- should contribute to Django.

2011-09-28 Thread Cal Leeming [Simplicity Media Ltd]
Well said, Shawn! On Wed, Sep 28, 2011 at 6:10 PM, Shawn Milochik wrote: > This is my lightning talk, given at DjangoCon US 2011. > > If you're on this list and have never submitted a patch to the Django > project because you think you aren't "good enough" yet, please watch

You -- yes, you -- should contribute to Django.

2011-09-28 Thread Shawn Milochik
This is my lightning talk, given at DjangoCon US 2011. If you're on this list and have never submitted a patch to the Django project because you think you aren't "good enough" yet, please watch this. Skip to about 11:45, and watch for about four minutes.

Re: Disable HTTP Referer checking

2011-09-28 Thread Tom Evans
On Wed, Sep 28, 2011 at 4:03 PM, sspross wrote: > hi tom > > thanks for your reply, but > > i'm don't want to disable a whole view, just disabling the http > referer checking in https. > > silvan > Oh I see - my bad. There's no way to disable this check, looking at the source

Re: Disable HTTP Referer checking

2011-09-28 Thread sspross
hi tom thanks for your reply, but i'm don't want to disable a whole view, just disabling the http referer checking in https. silvan On Sep 28, 4:56 pm, Tom Evans wrote: > On Wed, Sep 28, 2011 at 3:45 PM, sspross wrote: > > hi > > > is it possible

Re: Disable HTTP Referer checking

2011-09-28 Thread Tom Evans
On Wed, Sep 28, 2011 at 3:45 PM, sspross wrote: > hi > > is it possible to deactivate the http referer checking in the Cross > Site Request Forgery protection? > > https://docs.djangoproject.com/en/dev/ref/contrib/csrf/ > > a flash application sends my django app a form and in

Disable HTTP Referer checking

2011-09-28 Thread sspross
hi is it possible to deactivate the http referer checking in the Cross Site Request Forgery protection? https://docs.djangoproject.com/en/dev/ref/contrib/csrf/ a flash application sends my django app a form and in flash we can't set an Referer Header. So in case of HTTPS it fails. regards,

Re: Community Wiki/CMS app

2011-09-28 Thread Thomas Guettler
Am 28.09.2011 10:08, schrieb Kevin: > I will recommend using Pinax for this particular type of site. > > http://pinaxproject.com/ > > I am not sure if Pinax has an included Mailing list app, but there > should be one available at djangopackages.com > > If Pinax is a little too much, try out

Re: Best practices to create multiple users profiles using Auth

2011-09-28 Thread Santiago Basulto
Thank you Ryan. I'll read it. Seems interesting. On Sep 27, 10:30 am, ryan west wrote: > I actually just wrote a blog post about why I think extending > contrib.auth.models.User is a better solution to using a OneToOneField > (or a ForeignKey), you can find it here: > >

Re: Subclassing the ForeignKey field type

2011-09-28 Thread Tobia Conforto
Konk wrote: > As for what you are doing, I don't think subclassing ForeignKeys is > the way to go. Currently they defer most of the work to their target > fields, you might try to do something similar with the features you're > trying to add. Problem solved: I just didn't have to put

Re: psycopg2 pickling error

2011-09-28 Thread Andre Terra
Thanks for providing this feedback, Tom. I read your original question but I wasn't sure of the answer, so it's good to know how you worked it out! Best regards, AT On Wed, Sep 28, 2011 at 4:51 AM, tom wrote: > Hello, > > I have solved the problem with the support from

Re: Problem on user profile

2011-09-28 Thread Thomas Orozco
You might be importing your models.py file multiple time, thus registering the signals multiple times. You should look into the signals documentation - you can avoid duplicate signal handlers and this is covered there. Le 28 sept. 2011 14:44, "Lingfeng Xiong" a écrit :

Problem on user profile

2011-09-28 Thread Lingfeng Xiong
hi there, I wanna build a user portal for my website. When a user log in, it can modify it's profile in this portal. I have already followed "https:// docs.djangoproject.com/en/1.3/topics/auth/" and created a class named UserProfile with "AUTH_PROFILE_MODULE = '.UserProfile' in

Facebook csrf middleware problem

2011-09-28 Thread Amit Sethi
Hi all , I am writing that shall be a facebook canvas app as well as a standard app at the same time. Now for the time being I am just working with removing csrf from my middleware classes but does anyone know about a project that handles this more effectively such that i can use csrf middleware

FOSS VOIP Framework compatible with DJango?

2011-09-28 Thread Alec Taylor
Good afternoon, Do you know of a FOSS VOIP Framework compatible with DJango? Currently the only one I've found is Plivo. Basically I'm building a social-network, and want people to be able to call eachother, even to the extend of making and recording conference calls, all through a

Getting testing to report multiple tests per-assertion vs. per test-method

2011-09-28 Thread Tim Chase
Is there an easy way to get Django's test framework to report on the number of assertions performed instead of the number of test-methods called? I have things like def test_date_fenceposts(self): date_result_tuples_to_test = ( (date(2011,4,1), 35), ... #however many

Re: Media wiki

2011-09-28 Thread Kevin
You can see a list of all available Django wiki software here: http://www.djangopackages.com/grids/g/wikis/ Also note that Pinax also comes with a wiki App you can use as well, plus many other features. On Sep 28, 6:17 am, Anoop Thomas Mathew wrote: > Hi, > > If you want a

Re: password_reset_form_save() got an unexpected keyword argument 'request'

2011-09-28 Thread Karen Tracey
On Mon, Sep 26, 2011 at 7:31 PM, Ben O'Day wrote: > I recently upgraded to Django 1.3 (from 1.2) and noticed that our > password reset functionality isn't working. I do have the templates > customized, but am using the default view/form files for this. > Looking at the

Re: Media wiki

2011-09-28 Thread Anoop Thomas Mathew
Hi, If you want a basic wiki, you can try http://uswaretech.com/demo/djikiki/ Its not maintained well now, still, this might be enough to start with. Thanks, Anoop atm ___ Life is short, Live it hard. On 28 September 2011 14:20, Kirupashankar Sampath wrote: > I am

Media wiki

2011-09-28 Thread Kirupashankar Sampath
I am relatively new to django..I am trying to think of ways to implement mediawiki concepts in a django wikipage...any ideas of how to approach.. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Extracting the database name from an object

2011-09-28 Thread Cal Leeming [Simplicity Media Ltd]
Lol - that makes more sense :) Thanks for the clarification Tom! On Wed, Sep 28, 2011 at 10:31 AM, Tom Evans wrote: > On Tue, Sep 27, 2011 at 8:21 PM, Andre Terra wrote: > > It doesn't hurt to remind him that methods that begin with _ are >

Re: Extracting the database name from an object

2011-09-28 Thread Tom Evans
On Tue, Sep 27, 2011 at 8:21 PM, Andre Terra wrote: > It doesn't hurt to remind him that methods that begin with _ are considered > unstable API and are subject to change/removal without previous notice. > > > Cheers, > AT > However, that API is documented in a release, and

Re: Community Wiki/CMS app

2011-09-28 Thread Kevin
I will recommend using Pinax for this particular type of site. http://pinaxproject.com/ I am not sure if Pinax has an included Mailing list app, but there should be one available at djangopackages.com If Pinax is a little too much, try out Django-cms: https://www.django-cms.org/ Django-CMS

Helping someone move from Joomla to Django

2011-09-28 Thread Kevin
Hello, I have a friend who is doing website design, not any backend programming tasks. He actually would like me to do the backend coding. The unfortunate case is that he is currently using Joomla, which I know almost nothing about, and the apps/plugins for it are not reusable in other

Re: psycopg2 pickling error

2011-09-28 Thread tom
Hello, I have solved the problem with the support from newrelic, the issue was related to the configuration of wsgi. I have 3 VHosts for the application. I switched from wsgi embedded mode to daemon mode. Additionally I have added these two lines for each VHost: WSGIDaemonProcess

Community Wiki/CMS app

2011-09-28 Thread Thomas Guettler
Hi, a group of intelligent, but non computer-nerd people, asked me for help. They want to build a community page: - simple homepage/wiki - news - members with login - mailing list I develop with django daily. Since I don't want to reinvent the wheel, I search django app which can handle