Re: Error uploading images

2016-07-02 Thread Lee Hinde
Aargh. Thanks. On Saturday, July 2, 2016, Vijay Khemlani wrote: > The typical problem is forgetting to add the > > enctype='multipart/form-data' > > attribute to the form tag > > > > On Sat, Jul 2, 2016 at 9:40 PM, Lee Hinde

Re: Error uploading images

2016-07-02 Thread Vijay Khemlani
The typical problem is forgetting to add the enctype='multipart/form-data' attribute to the form tag On Sat, Jul 2, 2016 at 9:40 PM, Lee Hinde wrote: > Using django-storages to put user uploaded files on s3. > > Uploading images in the shell works fine. So, I assume I've

Re: AUTH_PASSWORD_VALIDATORS not used when creating new users?

2016-07-02 Thread Farhan Khan
So then, how are password validators used? If its just through the console using the 'createsuperuser' feature, what good is it? On Friday, July 1, 2016 at 7:44:56 PM UTC-4, Tim Graham wrote: > > Password validation doesn't run as part of Model.clean(), but Model.save() > doesn't run validation

Error uploading images

2016-07-02 Thread Lee Hinde
Using django-storages to put user uploaded files on s3. Uploading images in the shell works fine. So, I assume I've got django-storages and boto installed fine and S3 configured correctly. Uploading in real-life, doesn't work. The error I get back is that the image field is required. The model:

Re: the Django test client - https://docs.djangoproject.com/en/1.9/intro/tutorial05/#the-django-test-client

2016-07-02 Thread ludovic coues
We can't help you because we have to watch a gif at least 5 seconds long and the error message stay on screen less than half a second. If you could past the content of your term at the end of the gif, we could help you. thanks. 2016-07-02 12:59 GMT+02:00 Ricardo Valério :

Re: Contribute to Django - Python 3 or Python 2

2016-07-02 Thread premdjango
Thanks Michael, That was the confusion. I will go ahead with Python 3. On Tuesday, June 28, 2016 at 7:45:02 PM UTC-4, premdjango wrote: > > Hello, > Im trying to contribute to Django project and started with this document. > > https://docs.djangoproject.com/en/dev/intro/contributing/ > > Here in

Re: IntegrityError column email is not unique

2016-07-02 Thread M Hashmi
@James As per my understanding I did following. Now it is not adding email if it exists but also its not giving me any error. class GuestCheckoutForm(forms.Form): email = forms.EmailField() email2 = forms.EmailField(label='Verify Email') def clean_email(self): email =

Re: IntegrityError column email is not unique

2016-07-02 Thread M Hashmi
@James As per my understanding I did following. Now it is not adding email if it exists but also its not giving me any error. class GuestCheckoutForm(forms.Form): email = forms.EmailField() email2 = forms.EmailField(label='Verify Email') def clean_email(self): email =

Re: Contribute to Django - Python 3 or Python 2

2016-07-02 Thread Michal Petrucha
On Sat, Jul 02, 2016 at 07:04:31AM -0700, premdjango wrote: > Tim - > The reason I said its used in most of the places is because - > > for example: > > pip install -e /path/to/your/local/clone/django/ > > > I would expect pip3 install of pip.. This looks like a bit of a misunderstanding.

Re: IntegrityError column email is not unique

2016-07-02 Thread M Hashmi
Thanks james for your kind response. Intention is to set a single identifier for guest user account email. If that email exists then user can login or if doesn't he will have to get registered. However let me implement your suggested code and I will respond you back. Thanks again -- You

Re: GeoDjango and Google Maps

2016-07-02 Thread Sergiy Khohlov
Hello, Django Geo API does not have MapWidget. And this error is expected. List of supported widget is place here : https://docs.djangoproject.com/ja/1.9/ref/contrib/gis/forms-api/ One of the simplest way of the adding map to the page is using leaflet library which is nice supported. I'm

Re: IntegrityError column email is not unique

2016-07-02 Thread James Schneider
On Jul 2, 2016 7:23 AM, "M Hashmi" wrote: > > I am working on my Checkout view with regular/guest user but getting hard time to come around the integrity error. Idea is to let guest users register with email only to checkout and I need to set the user email unique. > >

IntegrityError column email is not unique

2016-07-02 Thread M Hashmi
I am working on my Checkout view with regular/guest user but getting hard time to come around the integrity error. Idea is to let guest users register with email only to checkout and I need to set the user email unique. models.py *from django.conf import settings from django.db import models

Re: Contribute to Django - Python 3 or Python 2

2016-07-02 Thread premdjango
Tim - The reason I said its used in most of the places is because - for example: pip install -e /path/to/your/local/clone/django/ I would expect pip3 install of pip.. On Tuesday, June 28, 2016 at 7:45:02 PM UTC-4, premdjango wrote: > > Hello, > Im trying to contribute to Django project

the Django test client - https://docs.djangoproject.com/en/1.9/intro/tutorial05/#the-django-test-client

2016-07-02 Thread Ricardo Valério
*I'm following the official tutorial...number 5 about testing... * *https://docs.djangoproject.com/en/1.9/intro/tutorial05/#the-django-test-client * *What am I doing wrong here? * *Thanks for the help in

Re: Contribute to Django - Python 3 or Python 2

2016-07-02 Thread manikos
+1 to all the above about using python 3. If I was contributing to Django I would definetely go with python 3. It's the future. On Wednesday, June 29, 2016 at 2:45:02 AM UTC+3, premdjango wrote: > > Hello, > Im trying to contribute to Django project and started with this document. > >