Re: Problem uploading image Django 1.9 Python 3.5

2016-03-29 Thread Peter of the Norse
>From >https://docs.djangoproject.com/en/1.9/ref/models/fields/#django.db.models.fields.files.FieldFile.save, > the content should be an instance of django.core.files.File. So you code >should look like: from dango.core.files import File f = open(“c:\\NowHiring.jpg”, “rb”) myfile = File(f)

Re: Migrating older 1.4 project to 1.9

2016-03-29 Thread Tim Graham
We recommend going one major version at a time: https://docs.djangoproject.com/en/stable/howto/upgrade-version/ On Tuesday, March 29, 2016 at 5:19:59 PM UTC-4, Roger Dunn wrote: > > I've inherited a moderately large project written 2 years ago using Django > 1.4, and wondering if it is worth

return objects with datetime field with default_timezone

2016-03-29 Thread Charles Sartori
I am using USE_TZ = True and TIME_ZONE = 'America/Sao_Paulo' when I save some datetime field it will save on MySQL in UTC as expected, but when I query this object and print object.date it still in UTC, I tried to set timezone.activate(timezone.get_default_timezone()) before querying but the

Re: EMAIL_BACKEND doesn't works with Amazon SES!?

2016-03-29 Thread Fred Stluka
Good explanation, Michal! Thanks! --Fred Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software, Inc -- http://bristle.com -- Glad to be of service! Open Source: Without walls and fences, we

feedparser not working ....

2016-03-29 Thread arman6636
Hi to all i'm using django 1.6.5 and python 3.3 in my site (in local) feedparser working very good but since deploy it on the web feedparser module notworking.(without any error) what is the problem??? -- You received this message because you are subscribed to the Google Groups "Django

Migrating older 1.4 project to 1.9

2016-03-29 Thread Roger Dunn
I've inherited a moderately large project written 2 years ago using Django 1.4, and wondering if it is worth creating a fresh 1.9 project and porting in the old code, or doing an in-place upgrade to 1.9? I have it running on 1.4 'as is' but if I run* python manage.py migrate* it comes unglued

Re: Email sending MULTIUSERS

2016-03-29 Thread Ezequiel Bertti
If you are using django and your settings has a mail configuration https://docs.djangoproject.com/en/1.9/topics/email/#smtp-backend from django.contrib.auth.models import User send_mail( 'subject', 'message', 'f...@email.com', [user.email for user in User.objects.all()] ) On

Re: EMAIL_BACKEND doesn't works with Amazon SES!?

2016-03-29 Thread Neto
Thanks guys, 587 worked Em segunda-feira, 28 de março de 2016 21:56:12 UTC-3, Neto escreveu: > > I'm trying to send emails with Amazon SES, but when I use default > EMAIL_BACKEND raise error: > > Config: > > EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend' # this is > default >

Email sending MULTIUSERS

2016-03-29 Thread Abhinav Gupta
I am new to python and i want to send email to all users present in my database using python. Please HELP!!! -- 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

Re: EMAIL_BACKEND doesn't works with Amazon SES!?

2016-03-29 Thread Michal Petrucha
On Mon, Mar 28, 2016 at 05:56:12PM -0700, Neto wrote: > I'm trying to send emails with Amazon SES, but when I use default > EMAIL_BACKEND raise error: > > Config: > > EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend' # this is > default > EMAIL_HOST = 'email-smtp...amazonaws.com' >

Re: EMAIL_BACKEND doesn't works with Amazon SES!?

2016-03-29 Thread Raffaele Salmaso
On Tue, Mar 29, 2016 at 2:56 AM, Neto wrote: > > EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend' # this is > default > EMAIL_HOST = 'email-smtp...amazonaws.com' > EMAIL_PORT = 465 > EMAIL_HOST_USER = '...' > EMAIL_HOST_PASSWORD = '...' > EMAIL_USE_TLS =