How do I test a function that calls a web API?

2013-05-02 Thread Mike
I'm starting to write tests for my Django project but I'm not sure how to test a function that calls out to a web API. I read somewhere that I should not test against the live web api and that I should develop some sort of replacement for the actual web api server which sounds like a lot of

Re: Right way to modify contrib auth package?

2013-05-02 Thread testbackupacct
I'm sure that this is all obvious to experienced Django developers, but I thought I'd document what I did for my fellow Django newbies. Again, thanks to Anton for his advice. > In my application directory, I subclassed PasswordChangeForm and SetPasswordForm. Then I added my custom validation

Install and setup Postgresql for Django on OpenSuse

2013-05-02 Thread Gkpetrak
Hello ! I'm a newbie and i need to setup and configure Postgresql to make a Django project? How can I do? I have installed the postgresql -server and the psycopg2 from yast. Thanks. -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Problem with Django 1.5.1 and django-pyodbc

2013-05-02 Thread Kerry Calvert
I have Django running on a Windows server with MS Sql using django-pyodbc. I had Django version 1.4.2 working, and then upgraded to 1.5.1. This broke django-pyodbc, which I fixed by updating to a fork by 'Gorah'. This got my old site up and running. I then tried to create a new site, and

Re: Installing django-allauth

2013-05-02 Thread Avraham Serour
I upgraded from 0.8.3 I believe to 0.10.1 actually the problem was that my own installation on my dev virtualenv got polluted not sure how. In any case I migrated until the problematic migrations, migrate the problematic migration with --fake and then simply ran the rest of the migrations so far

Re:

2013-05-02 Thread Lee Hinde
yes, it looks like they're being responsive with issues in their test suite: https://github.com/TechEmpower/FrameworkBenchmarks/issues On Thu, May 2, 2013 at 9:59 AM, Michał Nowotka wrote: > According to that webpage: > http://www.techempower.com/benchmarks/#section=data-r4

SessionWizardView fails with plain forms?

2013-05-02 Thread Aaron C. de Bruyn
I have two forms defined in my project: class BatchForm(ModelForm): class Meta: model = Batch class SelectItemForm(forms.Form): item = forms.ModelMultipleChoiceField(queryset=ItemClass.objects.all()) One is a ModelForm, the other is a plain form. I hooked it into my urls like

Re: Registration module in 1.5.1 use of django.views.generic.simple

2013-05-02 Thread Subodh Nijsure
So adding something like this to my requirements.txt should work? -e hg+https://bitbucket.org/ubernostrum/django-registration#egg=django-registration ( Sorry if this very trivial, never have imported something from hg) -Subodh On Thu, May 2, 2013 at 12:12 PM, James Bennett

Django 1.5.1: Sending HTML mails with Unicode string contents fails

2013-05-02 Thread Carsten Fuchs
Hi all, a while after upgrading from Django 1.4 to Django 1.5.1 (using Python 2.6.5), I realized that I no longer got any of the automatic e-mails that are normally sent when an error occurs. Then problem occurs only when HTML emails are sent, sending plain-text emails works without

Re: Registration module in 1.5.1 use of django.views.generic.simple

2013-05-02 Thread James Bennett
Check out the latest hg tip of django-registration, which does not have this problem. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Registration module in 1.5.1 use of django.views.generic.simple

2013-05-02 Thread Subodh Nijsure
I am not certain how one goes about submitting changes to django. But if I setup my virtualenv with 1.5.1 and import the registration backend I end up getting error on importing direct_to_template. Which can be fixed with following code change. First, is this correct code change? Should this

[no subject]

2013-05-02 Thread Michał Nowotka
According to that webpage: http://www.techempower.com/benchmarks/#section=data-r4 django performance is really bad comparing to other popular web frameworks. Are there any plans to change this situation? Regards, Michal Nowotka -- You received this message because you are subscribed to the

Re: Installing django-allauth

2013-05-02 Thread Sam Solomon
Hello, What version of allauth are you trying to install and where did you get it from? https://github.com/pennersr/django-allauth/tree/0.10.0/allauth/socialaccount/migrations is the most recent version on pypi and has more than 2 migrations. Could it be that you have another app installed

How to post data to a url whcih has sslv3 implementation?

2013-05-02 Thread little master
Hi All, How to post data to a url whcih has sslv3 implementation? Does python "requests" post method supports this? I have googled a bit, but could not get any proper solution. Any help or pointers would be appreciated. Thanks Vijay -- You received this message because you are subscribed to

Re: Right way to modify contrib auth package?

2013-05-02 Thread testbackupacct
Anton, Great -- this is exactly what I needed to know. Thanks for the guidance. Spork On Thursday, May 2, 2013 7:31:57 AM UTC-7, bak1an wrote: > > Hi. > > I think that subclassing PasswordChangeForm and doing password length > check in child's clean method is more "correct" way to do this. > >

Re: Right way to modify contrib auth package?

2013-05-02 Thread Anton Baklanov
Hi. I think that subclassing PasswordChangeForm and doing password length check in child's clean method is more "correct" way to do this. Note that contrib.auth's views accept form class as parameter (

Re: Akiban + Django

2013-05-02 Thread Shawn Milochik
The short answer is that if you can use it in Python, you can use it in Django. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to

how to get called function automatically inside views.py?

2013-05-02 Thread Avnesh Shakya
hi, I am creating a function inside the views.py, I want to call this function automatically according to timing which i m using through apscheduler. how is it possible, please tell me. my views.py file # Create your views here. import simplejson as json from apps.learning.models

Can anyone help me with this stackoverflow question i asked about the Many-to-Many behaviour in django admin.

2013-05-02 Thread Nil
please visit the stackoverflow page for details. http://stackoverflow.com/questions/16333793/django-how-to-display-actual-objects-in-admin -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails

Akiban + Django

2013-05-02 Thread fanny
Hello, I'm newbie in Django and pyhton. Can i use akiban as database in django? I just find a lot of example of django with mongodb. Thanks before -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop

Re: Multi-tenant database model with new user model?

2013-05-02 Thread Venkatraman S
I think i had stumbled on django-multitenant or django-simple-multitenant sometime back. I took some ideas from there and implemented my own version of custom multi-tenancy. On Wed, May 1, 2013 at 8:31 PM, Dan Gentry wrote: > Something I'm looking forward to learning as