Is it possible to cleanly override another app's URL namespace in Django 1.11?

2017-05-17 Thread Robert Rollins
I have a project where I want to override a subset of the URLs provided by one of the third-party apps I have installed. I did so months ago, and it works just fine. However, once I upgraded to Django 1.11, I started seeing this warning appear every time I do anything with manage.py: ?: (urls.W

Form.changed_data no longer includes changes to related fields as of Django 1.10?

2017-04-11 Thread Robert Rollins
I've got code that expects Form.changed_data to include the Groups to which a User belongs when the User edit form I wrote changes them. It works in Django 1.9.13, but tests fails in Django 1.10. Is there a known change to Django that would cause this? I don't see any mention of Form.changed_d

Re: How do templates automatically convert dates to local timezone?

2016-08-03 Thread Robert Rollins
;https://docs.djangoproject.com/en/1.9/topics/i18n/>. > > Regards, > I hope that helps. > > > On Wed, Aug 3, 2016 at 11:36 PM, Robert Rollins > wrote: > >> I'm writing tests that assert dates are being properly rendered on a >> certain page, but t

How do templates automatically convert dates to local timezone?

2016-08-03 Thread Robert Rollins
I'm writing tests that assert dates are being properly rendered on a certain page, but the tests are failing because the date value on the model object is in UTC, and the date is rendered in local time on the template. I'd like to run that date value through the same mechanism by which the temp

Re: Django is not sending 500 error emails, AdminEmailHandler is not even triggering... what's going on?

2015-03-25 Thread Robert Rollins
I'm also reasonably certain that this isn't limited to just AdminEmailHandler. It seems like *nothing* I set up as a logging handler for 500 errors gets triggered. On Wednesday, March 25, 2015 at 12:47:59 PM UTC-7, Robert Rollins wrote: > > I'm at my whit's end trying

Django is not sending 500 error emails, AdminEmailHandler is not even triggering... what's going on?

2015-03-25 Thread Robert Rollins
I'm at my whit's end trying to debug this problem with one of my Django sites. I've done absolutely everything I can think of, and that google direct me to, to make it send 500 emails, but to no avail. For some reason I cannot fathom, even with every logging setting I know set to the Django 1.6

Loading timezone naive data into your test database with USE_TZ = True

2014-09-17 Thread Robert Rollins
I have a legacy database from which my Django application must migrate data into a Django database. The relevant date fields are actually TIMESTAMP columns in the database, but something (perhaps Django, or python's MySQL driver?) loads these columns as timezone naive datetime objects, rather t