Re: Documentation for User.set_unusable_password() doesn't feel complete

2016-03-15 Thread Tim Graham
Yes, there's a mention of that on the password_reset() view docs: https://docs.djangoproject.com/en/stable/topics/auth/default/#django.contrib.auth.views.password_reset Feel free to submit some docs clarifications as a pull request if you'd like. On Tuesday, March 15, 2016 at 7:32:41 PM UTC-4,

Re: HStoreField - Field value is an object usually, but a string when in shell

2016-03-23 Thread Tim Graham
Are you using the same settings file in both cases? I think this might happen if you don't have django.contrib.postgres in INSTALLED_APPS which would mean register_hstore_handler() isn't called. On Tuesday, March 22, 2016 at 1:15:28 PM UTC-4, Andrew Grossman wrote: > > I'm working with a model t

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 cre

Re: Test Client response.json() UnicodeDecodeError

2016-03-31 Thread Tim Graham
Looks reasonable, although I am not entirely clear what role charset has in a JsonResponse. See https://code.djangoproject.com/ticket/23949. On Thursday, March 31, 2016 at 6:15:53 AM UTC-4, Daniel Blasco wrote: > > Hi, > > I'm testing the REST API of my application and I found an error that I >

Re: Redefine html properties in widget

2016-03-31 Thread Tim Graham
Some attributes such as IntegerField.min_value need to be customized on the field rather than the widget. This will ensure that validation is also done server-side. (see https://github.com/django/django/blob/f3595b25496691966d4ff858a3b395735ad85a6e/django/forms/fields.py#L278-L285 for example)

Re: Issue with django docs translations and google indexing

2016-03-31 Thread Tim Graham
See https://github.com/django/djangoproject.com/issues/621 for some recent improvements we tried to fix this. Perhaps more needs to be done but things look better for me since that change. On Thursday, March 31, 2016 at 1:40:26 PM UTC-4, Piotr Gnus wrote: > > Hello, > > when translations were im

[ANNOUNCE] Django bugfix releases issued: 1.9.5 and 1.8.12

2016-04-01 Thread Tim Graham
Details are available on the Django project weblog: https://www.djangoproject.com/weblog/2016/apr/01/bugfix-releases/ -- 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 emai

Re: how to run migrations in a specific order for the test runner in Django (1.6+)

2016-04-01 Thread Tim Graham
Nothing outside of the way that Django normally determines the order in which to run migrations: https://docs.djangoproject.com/en/stable/howto/writing-migrations/#controlling-the-order-of-migrations On Friday, April 1, 2016 at 11:45:42 AM UTC-4, kasmi sidi wrote: > > is there a way to tell djan

Re: Django 1.9 Woes

2016-04-08 Thread Tim Graham
Difficult for me to say for sure without having a sample project to debug. Do you know if you have any module level queries in your project? Those are generally to be avoided and may cause problems like this. See https://groups.google.com/d/topic/django-developers/7JwWatLfP44/discussion for som

Re: How to know which models have changed and need make migrations?

2016-04-09 Thread Tim Graham
Also, your models might reference a setting whose value differs between development and production. This probably won't cause any problems but will trip up the migrations autodetector into thinking that a migration needs to be made. https://code.djangoproject.com/ticket/24648 On Saturday, Apri

Re: Migration bug in 1.9.5?

2016-04-13 Thread Tim Graham
It looks like your migration history is corrupted somehow (migrations 10-22 are applied but not their dependency 0001). You might need to manually add a row to the django_migrations table to reflect the fact that 0001 is applied. If you can provide steps that reproduce how you got to such a bad

Re: Any way to tolerate Unicode w/o changing '' to u''?...

2016-04-14 Thread Tim Graham
You want `from __future__ import unicode_literals`: https://docs.djangoproject.com/en/dev/ref/unicode/#general-string-handling On Thursday, April 14, 2016 at 6:27:07 PM UTC-4, Fred Stluka wrote: > > Django users, > > In my Django app, I want to allow users to enter Unicode > strings. But if the

Re: Any way to tolerate Unicode w/o changing '' to u''?...

2016-04-21 Thread Tim Graham
t; Fred Stluka -- mailt...@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 4/14/16 10:05 PM, Tim Graham wrote:

Django 2.1 beta 1 released

2018-06-18 Thread Tim Graham
We've made the second release on the way to Django's next major release, Django 2.1! With a month and a half until the final release, we'll need timely testing from the community to ensure a stable release. Check out the blog post: https://www.djangoproject.com/weblog/2018/jun/18/django-21-beta-1-

Django 2.1 release candidate 1 released

2018-07-18 Thread Tim Graham
We've made the final (hopefully) release on the way to Django's next major release, Django 2.1! Check out the blog post: https://www.djangoproject.com/weblog/2018/jul/18/django-21-rc1/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscri

Re: authenticate issues with custom backends in 2.1rc1

2018-07-19 Thread Tim Graham
Do you have deprecation warnings with Django 2.0.x? https://docs.djangoproject.com/en/dev/howto/upgrade-version/#resolving-deprecation-warnings >From the 2.1 release notes: "The authenticate() method of authentication backends requires request as the first positional argument." >From the 1.11 r

Re: python manage.py inspectdb makes all fields with a default value blank=True, null=True

2018-07-20 Thread Tim Graham
For future reference, creating a bug report is sufficient. No need to post to django-developers. I'll post my analysis from the ticket below. https://code.djangoproject.com/ticket/29583#comment:1 I think you made a mistake in your analysis. In the FieldInfo initialization, line[6] (not inf

Re: Django2.0.7 generate SQL query function is wrong(REGEXP_LIKE).

2018-07-26 Thread Tim Graham
This is a regression that will be fixed in Django 2.0.8: https://code.djangoproject.com/ticket/29544 On Thursday, July 26, 2018 at 6:40:37 AM UTC-4, Jason wrote: > > what's the django orm code that generates that query? > > On Thursday, July 26, 2018 at 12:12:06 AM UTC-4, Hiroyuki Yamashita wrote

Django security releases issued: 1.11.15 and 2.0.8

2018-08-01 Thread Tim Graham
Today the Django team issued 1.11.15 and 2.0.8 as part of our security process. These releases address a security issue, and we encourage all users to upgrade as soon as possible: https://www.djangoproject.com/weblog/2018/aug/01/security-releases/ As a reminder, we ask that potential security iss

Django 2.1 released

2018-08-01 Thread Tim Graham
Django 2.1 is now available: https://www.djangoproject.com/weblog/2018/aug/01/django-21-released/ With the release of Django 2.1, Django 2.0 has reached the end of mainstream support. The final minor bug fix release (which is also a security release), 2.0.8, was issued today. Django 2.0 will recei

Re: Oracle with Django

2018-08-01 Thread Tim Graham
What's the error? Did you read the Oracle notes? https://docs.djangoproject.com/en/stable/ref/databases/#oracle-notes On Wednesday, August 1, 2018 at 4:04:53 PM UTC-4, Md. Razibul Hasan Mithu wrote: > > I didn't find any way to connect oracle 11g with django. It still gives me > error > > On

Re: GEOSGeometry function dies with error pure virtual method called message

2018-08-02 Thread Tim Graham
I'm not sure what you mean by "On debugging". Is that the complete code snippet to reproduce the issue? I don't see a crash on my system. Which Django version? On Thursday, August 2, 2018 at 8:29:51 AM UTC-4, Saurabh Khanduja wrote: > > Hi, > This is the piece of code I am working with:- > > po

Re: GEOSGeometry function dies with error pure virtual method called message

2018-08-03 Thread Tim Graham
g in transform > function in file > ~/anaconda3/envs/py35/lib/python3.5/site-packages/django/contrib/gis/geos/geometry.py > > On Thursday, 2 August 2018 16:28:43 UTC+2, Tim Graham wrote: >> >> I'm not sure what you mean by "On debugging". Is that the complete c

Re: 3719: 'utf8' is currently an alias for the character set UTF8MB3, which will be replaced by UTF8MB4 - When using MySQL sakila and world DB examples

2018-08-16 Thread Tim Graham
It looks like some code is promoting MySQL's warnings to exceptions. django.db.backends.mysql had that behavior before Django 1.8: https://code.djangoproject.com/changeset/5bcd292098b4de7bb03ef778e24d9e2f433d0dae/ For anyone reporting this, are you using django.db.backends.mysql or some other da

Re: Concerning CVE-2018-14574: is there a open redirect possibility in CommonMiddleware of version 1.9.5

2018-08-23 Thread Tim Graham
I didn't confirm it but according to the comments at the bottom of https://github.com/django/django/commit/a656a681272f8f3734b6eb38e9a88aa0d91806f1, Django 1.9 and later are affected. On Thursday, August 23, 2018 at 7:30:51 AM UTC-4, Christophe Dupouy wrote: > > I understand that per your suppo

Re: Upgrading app with settings-dependent migrations

2018-08-23 Thread Tim Graham
I think that https://code.djangoproject.com/ticket/24648 describes your issue. On Thursday, August 23, 2018 at 7:30:33 AM UTC-4, Jan Musílek wrote: > > Hi! > > I have a problem with migrations workflow for which I couldn't find an > answer anywhere else. > > Suppose, that I have an application

Re: Check file input extension

2018-08-28 Thread Tim Graham
You can use FileExtensionValidator: https://docs.djangoproject.com/en/stable/ref/validators/#django.core.validators.FileExtensionValidator On Tuesday, August 28, 2018 at 7:35:39 AM UTC-4, René L. Hechavarría wrote: > > Hi everyone, i need check file input format in forms.py, someone have any > ex

Re: Help.... Django : Change Backend as mysql and create sample example using django ORM

2018-08-29 Thread Tim Graham
What version of Django, MySQL, and mysqlclient are you using? On Tuesday, August 28, 2018 at 2:00:52 AM UTC-4, Sonali Vighne wrote: > > I will paste full error and stack trace here. > > This is occurred when I am giving “python manage.py migrate” command > > > > Operations to perform: > > Appl

Re: Help.... Django : Change Backend as mysql and create sample example using django ORM

2018-08-29 Thread Tim Graham
qlclient - mysqlclient 1.3.12 > > On Wednesday, August 29, 2018 at 6:24:05 PM UTC+5:30, Tim Graham wrote: >> >> What version of Django, MySQL, and mysqlclient are you using? >> >> On Tuesday, August 28, 2018 at 2:00:52 AM UTC-4, Sonali Vighne wrote: >>> >

Re: Using Subdomains in Version 2.1.7

2018-08-29 Thread Tim Graham
Starting in Django 2.0, "The django.core.urlresolvers module is removed in favor of its new location, django.urls." Use from django.urls import reverse as simple_reverse On Wednesday, August 29, 2018 at 9:56:09 AM UTC-4, Abednego Ng'ang'a wrote: > > I've followed the procedure of installing subd

Release 1.11.16 on hold?

2018-09-21 Thread Tim Graham
We'll release it October 1. -- 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+unsubscr...@googlegroups.com. To post to this group, send email to djang

Re: Allow a limit_choices_to callable to accept the current model instances object

2018-09-25 Thread Tim Graham
There's a ticket with that feature request: https://code.djangoproject.com/ticket/25306 On Tuesday, September 25, 2018 at 6:25:38 PM UTC-4, Ochui Princewill wrote: > > Hello, > > Am current working on a project and i want to filter the content of a > ForeignkeyField base on the current model ob

Re: GEOSContextHandle leak probably due to thread local storage destructing order

2018-10-19 Thread Tim Graham
Yes, if you can demonstrate that Django is at fault, you may create a ticket. If you're unsure, you might have better luck on the https://groups.google.com/forum/#!forum/geodjango mailing list. On Thursday, October 18, 2018 at 9:08:10 PM UTC-4, Yong Li wrote: > > I have seen consistent GEOSCont

Re: Can't Upload Image Field With Django 2.1

2018-10-31 Thread Tim Graham
It would be helpful to see the complete traceback. What you provided doesn't show where the exception originates. On Tuesday, October 30, 2018 at 10:38:38 PM UTC-4, Pacôme Avahouin wrote: > > Hello guys, > > I'm trying to upload user avatar (ImageField type) with my own custom user > model foll

Re: Can't Upload Image Field With Django 2.1

2018-10-31 Thread Tim Graham
It looks like the width_field option on the model field isn't a string. On Wednesday, October 31, 2018 at 10:28:42 AM UTC-4, Pacôme Avahouin wrote: > > Hello Tim, > > Thanks for answering. > > Here is the complete traceback. > By the way when i commented out the 'upload_file' function still i'm >

Re: Can't Upload Image Field With Django 2.1

2018-10-31 Thread Tim Graham
height_field and width_field should be strings. What's the error and what does your model fields look like? On Wednesday, October 31, 2018 at 10:53:53 AM UTC-4, Pacôme Avahouin wrote: > > Tim you just saved me right now:) I have spent the all night trying to > figure it out. > Thanks a lot. > No

Re: Can't Upload Image Field With Django 2.1

2018-10-31 Thread Tim Graham
You've misunderstood the purpose of height_field and width_field. Please read the documentation: https://docs.djangoproject.com/en/dev/ref/models/fields/#django.db.models.ImageField.height_field You need to use a third-party app to do image resizing. Check out https://djangopackages.org/grids/g

Re: Prepopulate blog in b.entry_set.all()[i].blog ?

2018-10-31 Thread Tim Graham
It seems to be a bug as reported in https://code.djangoproject.com/ticket/29908. The ForeignKey must use to_field to reproduce the problem. On Saturday, October 20, 2018 at 4:38:51 AM UTC-4, Carsten Fuchs wrote: > > Can anyone help please? > > Am 2018-10-11 um 16:58 schrieb Carsten Fuchs: > >

Re: makemigrations makes migration even if no changes in model

2018-11-10 Thread Tim Graham
I think you'll need to provide a sample project that reproduces the problem. I tried with the models you gave (and removed references to the models that you didn't provide) but can't reproduce. On Friday, November 9, 2018 at 6:51:49 AM UTC-5, Michał Redmerski wrote: > > Hello! > > All issues wi

Re: Strange intermittent UUID bug

2018-11-26 Thread Tim Graham
See if https://groups.google.com/d/msg/django-users/ZGb8ofw1Ux8/TnMdqsj4AgAJ helps. On Friday, November 23, 2018 at 1:11:21 PM UTC-5, Zach wrote: > > You could try modifying to_python with something like this: > > import logging > > > def to_python(self, value): > if value is not None

Re: Update of issue (Trac) rejected (SPAM ...)

2018-11-28 Thread Tim Graham
I marked your comment as "ham" so maybe it'll pass the Bayes filter now. "Easy pickings" is subjective but I wouldn't consider that issue "easy" since there's not a clear consensus about how to proceed. On Wednesday, November 28, 2018 at 5:10:06 AM UTC-5, guettli wrote: > > I wanted to update th

Re: Form no longer validates after upgrading django from 2.0.5 to 2.1. Should I report a bug?

2018-12-31 Thread Tim Graham
I think the behavior changed in https://github.com/django/django/commit/5fa4f40f45fcdbb7e48489ed3039a314b5c961d0. The old behavior looks like a bug to me (can you explain why it would be expected?) and we don't generally document bug fixes in the release notes. On Monday, December 31, 2018 at 8

Django security releases issued: 2.1.5, 2.0.10, and 1.11.18

2019-01-04 Thread Tim Graham
Today the Django team issued 2.1.5, 2.0.10, and 1.11.18 as part of our security process. These releases address a security issue, and we encourage all users to upgrade as soon as possible: https://www.djangoproject.com/weblog/2019/jan/04/security-releases/ The issue was publicly reported through

Re: no such table: main.auth_user__old

2019-12-01 Thread Tim Graham
If you're using Django 2.1, try upgrading to the latest Django 2.1.x (2.1.14 as of this writing). You should always use the latest point release to get the most recent security and bug fixes. See https://stackoverflow.com/questions/53637182/django-no-such-table-main-auth-user-old On Saturday,

Re: Fixtures for django auth groups

2019-12-03 Thread Tim Graham
Take a look at https://docs.djangoproject.com/en/stable/howto/initial-data/. On Tuesday, December 3, 2019 at 10:31:01 AM UTC-5, Arulselvam K wrote: > > I want to create fixtures for auth groups to get some preloaded auth > groups. Kindly educate me on how to create fixtures fixtures for built in

Re: CockroachDB & Django

2019-12-05 Thread Tim Graham
Cockroach Labs engaged me to work on the CockroachDB backend for Django. django-cockroachdb 2.2 alpha 2 (for Django 2.2.x) and 3.0 alpha 1 (for Django 3.0.x) are now available. These versions pass much of the Django test suite and are ready for real world testing. Be aware that the latest relea

Re: Is this mistake in utils.functional?

2020-02-06 Thread Tim Graham
The code is equivalent to: res = self.func(instance) instance.__dict__['self.name'] = self.func(instance) (except that self.func(instance) isn't called twice like it would be in this version) On Thursday, February 6, 2020 at 7:39:47 AM UTC-5, Akira Furude wrote: > > Currently I'm working on my

<    1   2   3   4   5   6