thanks
2016-03-30 16:06 GMT+03:00 <django-users@googlegroups.com>:
- Problem uploading image Django 1.9 Python 3.5 - 1 Update
- Migrating older 1.4 project to 1.9 - 2 Updates
- return objects with datetime field with default_timezone - 1 Update
- EMAIL_BACKEND doesn't works with Amazon SES!? - 2 Updates
- feedparser not working .... - 1 Update
- Email sending MULTIUSERS - 2 Updates
Peter of the Norse <RahmCoff@Radio1190.org>: Mar 29 08:36PM -0600
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)
imaged.full_photo.save("NowHiring.jpg", myfile)
> Visit this group at https://groups.google.com/group/django-users <https://groups.google.com/group/django-users>.
> To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/d89d4906-0494-4d01-bd6a-428f29466f4d%40googlegroups.com <https://groups.google.com/d/msgid/django-users/d89d4906-0494-4d01-bd6a-428f29466f4d%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout <https://groups.google.com/d/optout>.
Peter of the Norse
RahmCoff@Radio1190.org
Roger Dunn <rogerfdunn@gmail.com>: Mar 29 02:18PM -0700
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 as a lot of stuff has changed since 1.4.
Tim Graham <timograham@gmail.com>: Mar 29 05:13PM -0700
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:
Charles Sartori <charles.sartori@gmail.com>: Mar 29 03:11PM -0700
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
result is the same. Convert from UTC to other timezone automatically is
possible only on template using {% load tz %}? Can I get converted
datetimes on querysets?
Neto <paulosouzamaciel@gmail.com>: Mar 29 09:07AM -0700
Thanks guys, 587 worked
Em segunda-feira, 28 de março de 2016 21:56:12 UTC-3, Neto escreveu:
Fred Stluka <fred@bristle.com>: Mar 29 06:46PM -0400
Good explanation, Michal! Thanks!
--Fred
------------------------------------------------------------------------
Fred Stluka -- mailto:fred@bristle.com -- http://bristle.com/~fred/
Bristle Software, Inc -- http://bristle.com -- Glad to be of service!
Open Source: Without walls and fences, we need no Windows or Gates.
------------------------------------------------------------------------
On 3/29/16 3:34 AM, Michal Petrucha wrote:
arman6636@gmail.com: Mar 29 02:31PM -0700
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???
Abhinav Gupta <abhinav96gupta1@gmail.com>: Mar 29 08:42AM -0700
I am new to python and i want to send email to all users present in my
database using python.
Please HELP!!!!!!!
Ezequiel Bertti <ebertti@gmail.com>: Mar 29 01:14PM -0300
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',
'from@email.com',
[user.email for user in User.objects.all()]
)
On Tue, Mar 29, 2016 at 12:42 PM, Abhinav Gupta <abhinav96gupta1@gmail.com>
wrote:
--
Ezequiel Bertti
E-Mail: ebertti@gmail.com
Cel: (21) 99188-4860
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page.
To unsubscribe from this group and stop receiving emails from it send an email to django-users+unsubscribe@googlegroups.com.
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 django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAAnMf3m6%3D2B2t-BNFw_sHmFBvQrcwuSzdZ3-qurpRBsKoYB2Cg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment