Django security releases issued: 1.10.7, 1.9.13, and 1.8.18

2017-04-04 Thread Tim Graham
Today the Django team issued 1.10.7, 1.9.13, and 1.8.18 as part of our security process. These releases address two security issues, and we encourage all users to upgrade as soon as possible: https://www.djangoproject.com/weblog/2017/apr/04/security-releases/ As a reminder, we ask that potentia

Django 1.11 released

2017-04-04 Thread Tim Graham
Django 1.11, the next long-term support release, is now available: https://www.djangoproject.com/weblog/2017/apr/04/django-111-released/ With the release of Django 1.11, Django 1.10 has reached the end of mainstream support. The final minor bugfix release (1.10.7) was issued today. Django 1.10

Re: Was Form choice.choice_value silently removed in 1.11?

2017-04-04 Thread Tim Graham
It looks like that's covered here: https://docs.djangoproject.com/en/1.11/releases/1.11/#changes-due-to-the-introduction-of-template-based-widget-rendering choice_value is an attribute of ChoiceInput which was undocumented and removed. On Tuesday, April 4, 2017 at 7:33:18 PM UTC-4, Rodney Folz

Re: after upgrade to django 1.11 from 1.10.6 getting an exception on runserver

2017-04-05 Thread Tim Graham
query.add_q() is a private API. I'd suggest to use git bisect to find the Django commit where the behavior changed. That might give you a hint of how to adapt your code. On Wednesday, April 5, 2017 at 11:25:25 AM UTC-4, Mukul Acharya wrote: > > Traceback (most recent call last): >File "/srv/

Re: Unicode decoding error

2017-04-11 Thread Tim Graham
As ​documented you must return *text* and not *bytes* from __str__() when using @python_2_unicode_compatible. That means six.text_type(self.a) rather than str(self.a) (which returns bytes on P

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

2017-04-11 Thread Tim Graham
Hi Robert, nothing comes to mind immediately. I'd suggest to use git bisect to find the commit in Django that caused the change https://docs.djangoproject.com/en/dev/internals/contributing/triaging-tickets/#bisecting-a-regression and we can go from there. On Tuesday, April 11, 2017 at 8:03:18

Re: Align radio buttons horizontally in django 1.11

2017-04-22 Thread Tim Graham
You could use a custom widget template, e.g. class HorizontalRadioSelect(forms.RadioSelect): template_name = '...' ... forms.ChoiceField(..., widget=HorizontalRadioSelect) See https://docs.djangoproject.com/en/stable/ref/forms/renderers/ for more details. Or you could add a CSS class an

Re: Why do I get this error "context must be a dict rather than Context." ?

2017-04-29 Thread Tim Graham
It looks like the tutorial you're following hasn't been updated for Django 1.11. Line 20 should pass a dict rather than Context: t.render({'current_date': now}) It's related to this change in Django 1.11: https://docs.djangoproject.com/en/dev/releases/1.11/#django-template-backends-django-temp

Re: Error was: cannot import name 'GDALRaster in Window 8.1

2017-05-01 Thread Tim Graham
It looks like GDAL isn't installed on your system. Looking at https://docs.djangoproject.com/en/stable/ref/contrib/gis/install/#spatial-database, I believe it's a required dependency -- perhaps we should try to improve the error message. On Sunday, April 30, 2017 at 10:20:01 AM UTC-4, Prashan

Re: Occasional FieldError for a field that really does exist

2017-05-04 Thread Tim Graham
Could it be related to a third-party app similar to https://code.djangoproject.com/ticket/27365#comment:12 ? On Thursday, May 4, 2017 at 5:12:47 PM UTC-4, Evan Heidtmann wrote: > > Hello Django friends, > > > My app, running in production with uwsgi, very occasionally will crash > because of a F

Re: Automatic content types removal

2017-05-05 Thread Tim Graham
>From the Django 1.11 release notes: - The prompt for stale content type deletion no longer occurs after running the migrate command. Use the new remove_stale_contenttypes command inst

Django bugfix release: 1.11.1

2017-05-06 Thread Tim Graham
Details are available on the Django project weblog: https://www.djangoproject.com/weblog/2017/may/06/bugfix-release/ -- 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: Admin css question for 1.10.7

2017-05-07 Thread Tim Graham
You can use git bisect to find the Django commit where the behavior changed: https://docs.djangoproject.com/en/dev/internals/contributing/triaging-tickets/#bisecting-a-regression On Saturday, May 6, 2017 at 11:05:14 PM UTC-4, Mike Dewhirst wrote: > > I'm just (slowly) advancing from 1.8 to 1.11 an

Re: Define port for LiveServerTestCase in 1.11?

2017-05-07 Thread Tim Graham
No. This is discussed in more detail on django-developers: https://groups.google.com/d/topic/django-developers/J2nPccK9kT8/discussion On Sunday, May 7, 2017 at 12:18:06 AM UTC-4, Simon McConnell wrote: > > Hi, > > > > Is it possible to define the port for LiveServerTestCase in Django 1.11? >

Re: Unit testing Multiselect fields not loading as expected

2017-05-08 Thread Tim Graham
This is because you have a module level query at my_choices = [(m['id'], m['displayname']) for m in get_my_list()]. There's a documentation warning about this; see the "Finding data from your production database when running tests?" note in ​this section [0]. [0] https://docs.djangoproject.c

Re: Admin css question for 1.10.7

2017-05-08 Thread Tim Graham
d git and tried to do the bisecting thing but that didn't work > for me > > (xxex3) C:\Users\mike\env\xxex3\ssds>git bisect bad > fatal: Not a git repository (or any of the parent directories): .git > > Where should I go next? > > Thanks > > Mike > > On 7/05

Re: field cannot be specified for model form as it is a non-editable field

2017-05-08 Thread Tim Graham
>From the docs for auto_now_add: Automatically set the field to now when the object is first created. Useful for creation of timestamps. Note that the current date is *always* used; it’s not just a default value that you can override. So even if you set a value for this field when creating the

Re: field cannot be specified for model form as it is a non-editable field

2017-05-08 Thread Tim Graham
2995 On Monday, May 8, 2017 at 10:47:25 AM UTC-4, Melvyn Sopacua wrote: > > On Monday 08 May 2017 04:07:09 Tim Graham wrote: > > > > > > > The change to raise FieldError for non-editable fields was meant to > > > prevent bugs, not to block devs from doing

Re: Selenium mess

2017-05-17 Thread Tim Graham
I haven't been able to run the selenium tests in Django's test suite without errors similar to what you describe since the geckodriver became required for testing with Firefox. I suspect this is a selenium/geckodriver issue rather than anything Django related. In the meantime, we're running the

Re: Realy not documented cache template if not DEBUG

2017-05-22 Thread Tim Graham
You can use "Blame" button at https://github.com/django/django/blob/master/django/template/engine.py to find the commit for the line in question: https://github.com/django/django/commit/277fe2e8f2ee35cd389b079ce7691491bb5738ec That includes documentation updates as well as a mention in the 1.11

Re: Updating 1.10 to 1.11.1 and AttributeError

2017-05-22 Thread Tim Graham
Which database backend are you using? I wonder if it's a third-party backend that hasn't been updated for Django 1.11. On Monday, May 22, 2017 at 6:40:11 PM UTC-4, Jorge Cadena wrote: > > Hello. > > updating 1.10 to 1.11.1 and get this error: > > File "/home/aztrock/workspace/ >> ariatel.com.co

Re: Trouble installing GeoDjango with spatialite on Python3

2017-05-24 Thread Tim Graham
Did you compile Python from source? If so, you need to use this option: ./configure --enable-loadable-sqlite-extensions before running "make install". On Wednesday, May 24, 2017 at 2:27:22 AM UTC-4, Antonis Christofides wrote: > > Hi, > > This is the error message I get when I run "./manage.py t

Re: Django db backend not FIPS compliant

2017-05-30 Thread Tim Graham
This usage generates a short, unique identifier for a database index name. The usage of md5 here isn't security sensitive. Changing it to some other hash could be backwards incompatible because Django would no longer know the names of indexes in existing projects. There are other usages of md5 i

Re: Django db backend not FIPS compliant

2017-05-31 Thread Tim Graham
django-developers discussion: https://groups.google.com/d/msg/django-developers/dlUIPzQgnpM/Mtl7CQbPAQAJ On Tuesday, May 30, 2017 at 5:06:23 PM UTC-4, Tim Graham wrote: > > This usage generates a short, unique identifier for a database index name. > The usage of md5 here isn&#

Django bugfix release: 1.11.2

2017-06-01 Thread Tim Graham
Details are available on the Django project weblog: https://www.djangoproject.com/weblog/2017/jun/01/bugfix-release/ -- 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: Possible bug - Incorrect escaping in Django SQL query

2017-06-02 Thread Tim Graham
Cross posted to django-developers: https://groups.google.com/d/topic/django-developers/sIjOXpbQWZ0/discussion In the future, please keep the conversation in one place. django-users is fine for asking "is it a bug?" questions. My reply from django-developers: I couldn't find any testing of Trun

Re: Inconsistency of clean method

2017-06-03 Thread Tim Graham
Here's the commit: https://github.com/django/django/commit/fb1dd6b1 I can't find any related discussions but I think the reason is because the return was unnecessarily boilerplate in a lot of cases. I'm not sure what behavior change for formsets you're proposing. Which method in Django would ch

Re: SingleObjectMixin docs Typo?

2017-06-06 Thread Tim Graham
Yes, fixed in https://github.com/django/django/commit/fc13a697b41568993ba02b7c52bb863456af6c84. Thanks. On Tuesday, June 6, 2017 at 8:44:31 AM UTC-4, guettli wrote: > > Current docs of SingleObjectMixin.get_context_data(): > > > *> Returns context data for displaying the list of objects.* > Sou

Re: Typo in the tutorial

2017-06-06 Thread Tim Graham
Thanks for the report. Here's a PR with that change and a few others: https://github.com/django/django/pull/8609 On Tuesday, June 6, 2017 at 8:55:09 AM UTC-4, Anders Vik wrote: > > Regarding: https://docs.djangoproject.com/en/1.11/intro/tutorial05/ > > I believe the name QuestionIndexDetailTests

Re: Filefield uploads in django admin

2017-06-06 Thread Tim Graham
The default behavior of FileSystemStorage is, "If a file with name already exists, an underscore plus a random 7 character alphanumeric string is appended to the filename before the extension." Do you want to always overwrite existing files if a file with that name already exists? That's a bit

Re: SingleObjectMixin docs Typo?

2017-06-07 Thread Tim Graham
hank you very much for this fix and endless other fixes. > > Am Dienstag, 6. Juni 2017 17:28:00 UTC+2 schrieb Tim Graham: >> >> Yes, fixed in >> https://github.com/django/django/commit/fc13a697b41568993ba02b7c52bb863456af6c84. >> >> Thanks. >> &g

Re: How to set custom template in Class PasswordResetView

2017-06-13 Thread Tim Graham
What does your code look like now? You can subclass the PasswordResetView and set the appropriate attribute for whichever template you want to override. https://docs.djangoproject.com/en/dev/topics/auth/default/#django.contrib.auth.views.PasswordResetView Or you can override the default templat

Re: Django m2m_changed pk_set is empty

2017-06-14 Thread Tim Graham
You can step through the relevant code here: https://github.com/django/django/blob/88b290470ab3436ef0bda6b0f3057fe133bda265/django/db/models/fields/related_descriptors.py#L870-L885 On Saturday, June 10, 2017 at 5:28:12 PM UTC-4, Jason Robinson wrote: > > Hi everyone, > > Django version 1.10.7, I h

Re: limit_choices_to=function() not work in python-3.6+django-1.11.2

2017-06-28 Thread Tim Graham
To get some insight, I'd try bisecting to find the Django commit where the behavior changed: https://docs.djangoproject.com/en/dev/internals/contributing/triaging-tickets/#bisecting-a-regression On Wednesday, June 28, 2017 at 7:10:35 AM UTC-4, Drunkard Zhang wrote: > > Hi, fellows: > > I was runn

Re: limit_choices_to=function() not work in python-3.6+django-1.11.2

2017-06-28 Thread Tim Graham
10:42:50 AM UTC-4, Drunkard Zhang wrote: > > > > On Wednesday, June 28, 2017 at 10:11:35 PM UTC+8, Drunkard Zhang wrote: >> >> >> >> On Wednesday, June 28, 2017 at 7:56:36 PM UTC+8, Tim Graham wrote: >>> >>> To get some insight, I'd try bis

Re: limit_choices_to=function() not work in python-3.6+django-1.11.2

2017-06-28 Thread Tim Graham
The new ticket is https://code.djangoproject.com/ticket/28345. On Wednesday, June 28, 2017 at 5:03:54 PM UTC-4, Tim Graham wrote: > > A new ticket is appropriate since the changes for the original ticket are > already released. Please include more explicit steps about how to reprodu

Re: Django tutorial - Misleading instructions

2017-06-29 Thread Tim Graham
The 'g_auth/templates' directory should be searched because of 'APP_DIRS': True. Is 'g_auth' in INSTALLED_APPS? On Thursday, June 29, 2017 at 9:54:27 PM UTC-4, Justin Stubbs wrote: > > Hi Guys, > > Im following the tutorial > https://docs.djangoproject.com/en/1.11/intro/tutorial03/ and have foun

Re: SelectDateWidget when DateField is not required

2017-06-30 Thread Tim Graham
I can't reproduce a crash. If I select only a month, I see a validation error, "Enter a valid date." On Monday, June 12, 2017 at 6:28:29 AM UTC-4, Nonverbis M wrote: > > *Django 1.11.2* > > I'd like to use SelectDateWidget. > > > class FrameDate(models.Model): > through_date = models.DateFiel

Django bugfix release: 1.11.3

2017-07-01 Thread Tim Graham
Details are available on the Django project weblog: https://www.djangoproject.com/weblog/2017/jul/01/bugfix-release/ -- 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: Problem with views PasswordChangeView vs. password_change

2017-07-12 Thread Tim Graham
Hi, I can't reproduce that error. Can you provide a sample project? Maybe it has something to do with the ggVerfallenMiddleware? On Wednesday, July 12, 2017 at 10:48:25 AM UTC-4, Carsten Fuchs wrote: > > Dear Django group, > > using Django 1.11.3 with Python 2.7, please consider the following t

Re: Problem with views PasswordChangeView vs. password_change

2017-07-13 Thread Tim Graham
The success_url of PasswordChangeView (actually the behavior comes from the inherited FormView) only accepts a URL, not a URL name. You can update to your code like this: from django.urls import reverse_lazy ... success_url=reverse_lazy('lori:pwd_done') On Thursday, July 13, 2017 at 11:44:43 A

Re: Redirect_field_name in LoginView

2017-07-14 Thread Tim Graham
Hi, did you find the documentation for LoginView? https://docs.djangoproject.com/en/dev/topics/auth/default/#django.contrib.auth.views.LoginView On Friday, July 14, 2017 at 7:13:29 AM UTC-4, Polina Ia wrote: > > Hello, > can someone explain me the setting of 'redirect_field_name' in LoginView? >

Re: How to discover which postgres vesion is in use (on 1.11)?

2017-07-20 Thread Tim Graham
You can use: >>> from django.db import connection >>> connection.pg_version 90507 On Wednesday, July 19, 2017 at 6:15:29 AM UTC-4, HM wrote: > > When https://code.djangoproject.com/ticket/18332 lands (No generic way > to get database backend version) this will be trivial but I need a > solution

Re: upgrading django 1.11 warning list

2017-07-25 Thread Tim Graham
Yes, it's safe to add that to migrations. https://docs.djangoproject.com/en/dev/releases/1.9/#foreignkey-and-onetoonefield-on-delete-argument On Tuesday, July 25, 2017 at 8:55:24 AM UTC-4, pablochud wrote: > > Hi! > It showed me warning related to 'on_delete' as required arg for ForeignKey > in

Re: Django Forms HorizontalRadioSelect Renderer not working.

2017-07-25 Thread Tim Graham
Replace renderer=HorizontalRadioRenderer with attrs={'class': 'inline'} and then style radio elements using CSS. contrib.admin uses this approach. Here's the CSS: https://github.com/django/django/blob/d17eaa868cd6911197dcd8b096c4f0418c47007e/django/contrib/admin/static/admin/css/forms.css#L42-L6

Re: TypeError: __init__() takes 2 positional arguments but 3 were given (django-material)

2017-07-25 Thread Tim Graham
Please give the exception traceback. On Tuesday, July 25, 2017 at 3:35:41 PM UTC-4, Elias Coutinho wrote: > > Hello guys! > > I'm trying to recreate a form with Inline using django and django-stuff. I > already got it once, but this is not being easy! > > I want to create a form that can register

Re: ModelForm with field subset saving all fields

2017-07-29 Thread Tim Graham
It might be worth considering. Here's a quick patch: diff --git a/django/forms/models.py b/django/forms/models.py index ffa8982..bd5d108 100644 --- a/django/forms/models.py +++ b/django/forms/models.py @@ -454,7 +454,8 @@ class BaseModelForm(BaseForm): ) if commit:

Django bugfix release: 1.11.4

2017-08-01 Thread Tim Graham
Details are available on the Django project weblog: https://www.djangoproject.com/weblog/2017/aug/01/bugfix-release/ -- 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: Turn off migrations completely in Django 1.7

2017-08-02 Thread Tim Graham
Perhaps giving some actionable, constructive feedback would be more useful. On Tuesday, August 1, 2017 at 6:50:47 PM UTC-4, Robert F. wrote: > > I know this is an old topic but I completely agree with Frank. Nothing > gives me more headaches and makes me want to move off Django more than > migr

Re: Template Rendering Django 1.11

2017-08-05 Thread Tim Graham
Are you using the cached template loader? It may mitigate the problem to some extent. https://docs.djangoproject.com/en/1.11/ref/templates/api/#django.template.loaders.cached.Loader As of Django 1.11, it's enabled if DEBUG is False and OPTIONS['loaders']

Re: Migration of auth.user to custom user

2017-08-07 Thread Tim Graham
Some steps are outlined in https://code.djangoproject.com/ticket/25313. On Friday, August 4, 2017 at 3:37:08 AM UTC-4, Mike Dewhirst wrote: > > I have read widely (including the docs) and been daunted by the notion > of coverting auth.user into a custom user. I have data and wonder if > there

Re: AttributeError: 'module' object has no attribute 'SubfieldBase'

2017-08-07 Thread Tim Graham
>From https://bitbucket.org/schinckel/django-timedelta-field: "If you are using Django 1.8 or greater (and you really _should_ be), then you should use the included DurationField() instead of this. This field does not work with Django 1.10, and will probably not be updated to fix the issue(s).

Re: Template Rendering Django 1.11

2017-08-07 Thread Tim Graham
unacceptable right now. > > > > *From:* Tim Graham [mailto:timogra...@gmail.com] > *Sent:* Saturday, August 5, 2017 8:25 PM > *To:* Django users > *Cc:* Matthew Pava > *Subject:* Re: Template Rendering Django 1.11 > > > > Are you using the cached template loa

Re: JavaScriptCatalog: it's big or not?

2017-08-14 Thread Tim Graham
Quoting Claude from https://code.djangoproject.com/ticket/28434#comment:2, "There is a ​specific test for that in the Django test suite. It may be the test is missing something, but you should explore that

Django security releases issued: 1.11.5 and 1.10.8

2017-09-05 Thread Tim Graham
Today the Django team issued 1.11.5 and 1.10.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/2017/sep/05/security-releases/ As a reminder, we ask that potential security i

Django 2.0 alpha 1 released

2017-09-22 Thread Tim Graham
We've made the first release on the way to Django's next major release, Django 2.0! With just a little over two months until the final release (scheduled for December 1), we'll need timely testing from the community to ensure an on time, stable release. Check out the blog post: https://www.djangop

Re: How to clean a form which receives multiple files

2017-09-25 Thread Tim Graham
There's a pull request to allow FileField(multiple=True): https://github.com/django/django/pull/9011 On Monday, September 25, 2017 at 4:19:24 AM UTC-4, guettli wrote: > > thank you very much for your Feedback! > > Am Freitag, 22. September 2017 18:24:23 UTC+2 schrieb mike: >> >> I do it this way

Re: Bug to set session in Django Test?

2017-09-30 Thread Tim Graham
There's a test in Django's test suite for this: https://github.com/django/django/blob/fd866c25d1665b73aff0d8312c414ae6f69812a3/tests/test_client_regress/tests.py#L1009-L1015 I guess you'll need to figure out how your project differs from that. On Saturday, September 30, 2017 at 6:30:25 AM UTC-4,

Re: How safe is it to use sys.exit() in custom commands

2017-09-30 Thread Tim Graham
I don't know of any reason why that would be unsafe. You'll find several uses of sys.exit() in Django's built in commands located in django/core/management/commands. On Friday, September 29, 2017 at 5:13:50 PM UTC-4, phep wrote: > > Hi, > > Executive summary : everything's in the subject line.

Re: Auth Password Change template not working

2017-09-30 Thread Tim Graham
I'd temporarily remove the built-in template that's being loaded so that TemplateDoesNotExist is raised. The debug page will show the locations that Django searched for the template. On Wednesday, September 27, 2017 at 7:10:54 AM UTC-4, naitik gala wrote: > > Hi all, > > I am trying to add my ow

Django bugfix release: 1.11.6

2017-10-05 Thread Tim Graham
Details are available on the Django project weblog: https://www.djangoproject.com/weblog/2017/oct/05/bugfix-release/ -- 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: How do I request a new feature in 1.11.x?

2017-10-11 Thread Tim Graham
No, Django 1.11.x won't receive new features. The supported versions policy is the same for that release series as for other releases. https://docs.djangoproject.com/en/dev/internals/release-process/#supported-versions On Wednesday, October 11, 2017 at 12:01:06 AM UTC-4, Chris Beck wrote: > > Th

Re: How do I request a new feature in 1.11.x?

2017-10-12 Thread Tim Graham
t; > On 11 October 2017 at 10:03, Tim Graham > > wrote: > >> No, Django 1.11.x won't receive new features. The supported versions >> policy is the same for that release series as for other releases. >> >> >> https://docs.djangoproject.com/en/dev/intern

Django 2.0 beta 1 released

2017-10-16 Thread Tim Graham
We've made the second release on the way to Django's next major release, Django 2.0! 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/2017/oct/16/django-20-beta-1-

Re: Mobile friendly admin

2020-04-02 Thread Tim Graham
What version of Django are you using? https://github.com/elky/django-flat-responsive is an extension for the Django admin that makes the interface mobile-friendly. It's part of Django 2.0 and later. On Wednesday, April 1, 2020 at 4:02:57 AM UTC-4, guettli wrote: > > I know there a several thir

Re: GeoDjango with MySQL8

2020-05-25 Thread Tim Graham
Hi, you might have better luck getting an answer on the GeoDjango mailing list: https://groups.google.com/forum/#!forum/geodjango On Monday, May 25, 2020 at 11:06:26 AM UTC-4, Utkarsh Bansal wrote: > > I am facing problems while trying to use GeoDjango (v2.2) with MySQL 8.0.19 > > I created a new

Re: Possible Django bug I am considering raising

2020-06-04 Thread Tim Graham
You can try to find the commit that introduced the issue: https://docs.djangoproject.com/en/dev/internals/contributing/triaging-tickets/#bisecting-a-regression On Thursday, June 4, 2020 at 11:25:09 AM UTC-4, OwlHoot wrote: > > Hi all > > I believe the issue I have enquired about on the following

Re: Best way to get a PR Review?

2020-06-16 Thread Tim Graham
Hi Matt, Your patch is in the "Patches needing review" queue (along with 33 others issues) at https://dashboard.djangoproject.com/. Reviewing patches isn't a task limited to members of the Django team. Anyone from the community is welcome to review patches and mark the ticket as "patch needs i

Re: cx_Oracle.DatabaseError: ORA-00910: specified length too long for its datatype

2020-06-19 Thread Tim Graham
The relevant migration is: https://github.com/divio/django-cms/blob/d6cabc49f016dd9a16f91440da9fb6790d27c2ae/cms/migrations/0008_auto_20150208_2149.py It increases the length of a CharField to 2048 characters which seems to be longer than Oracle supports. As far as I know, Django CMS isn't teste

Re: Oracle 12.0.1 admin not working with django 3+

2020-06-24 Thread Tim Graham
I'm not sure if this is the cause of your issue but Django 3.0 officially supports Oracle 12.2 and higher: https://docs.djangoproject.com/en/3.0/ref/databases/#oracle-notes On Tuesday, June 23, 2020 at 10:35:24 PM UTC-4, ashish goyal wrote: > > Ho All, > > Have created lot of stuff in app, when

Re: django-admin.py sqldropindexes app_label

2015-07-28 Thread Tim Graham
I think it's this bug which will be fixed in Django 1.9: https://code.djangoproject.com/ticket/24390 On Tuesday, July 28, 2015 at 8:36:34 AM UTC-4, Franck Samson wrote: > > Hello, > > > I'm a beginner in Django, I use Django 1.8 in a virtualenv with python 3.4 > and a postgresql database. I cre

Re: Does imports of related models affect cascade deletion?

2015-07-30 Thread Tim Graham
No, import of related models shouldn't affect cascade deletion. Please open a bug report with steps to reproduce if that's actually the case. Possibly it could be a bug that's fixed by the app loading refactor in 1.7. On Thursday, July 30, 2015 at 9:38:09 AM UTC-4, Markus Amalthea Magnuson wrot

Re: Testing related models without saving

2015-07-30 Thread Tim Graham
We are working on that solution: https://github.com/django/django/pull/5060 On Thursday, July 30, 2015 at 7:19:31 AM UTC-4, mic...@herrmann.io wrote: > > Hi all, > > I've just been bitten by this new "feature" as well. I completely don't > understand this design decision of 1.8. It is very useful

Re: Django SECRET_KEY : Copying hashed passwords into different Django project

2015-08-05 Thread Tim Graham
By the way, the docs for SECRET_KEY have a description of what will be invalidated if you change it: https://docs.djangoproject.com/en/stable/ref/settings/#secret-key On Wednesday, August 5, 2015 at 11:16:21 AM UTC-4, Simon Charette wrote: > > Hi Angit, > > It shouldn't be an issue since Django'

Re: 1.8 RawSQL Parameter Issue

2015-08-12 Thread Tim Graham
Could you try adding a failing test case to Django's test suite based on your code in tests/expressions? On Wednesday, August 12, 2015 at 5:47:53 PM UTC-4, yong...@bloomsky.com wrote: > > I'm using the new RawSQL class with annotate suggested by the django > documentation. I noticed the second

Re: Django Community Blog not adding Posts from feed

2015-08-14 Thread Tim Graham
It was a bug on our end, please see https://code.djangoproject.com/ticket/25261 for resolution, and sorry for the inconvenience. On Monday, August 10, 2015 at 10:38:28 AM UTC-4, Luciano Ferrari wrote: > > Hi everyone, > > Last week I added the RSS Feed to the Django Community Blog which was > a

Re: Instantiating the SQL implementation of Aggregates in Django 1.8

2015-08-15 Thread Tim Graham
Not sure if you realize that your code is appearing on one very long line which makes it impossible to read. If you could correct that, I'm sure it'll improve your chance of getting a response. On Friday, August 14, 2015 at 1:22:04 PM UTC-4, Ramana Subramanyam wrote: > > I've been working on upd

[ANNOUNCE] Django security releases issued (1.4.22, 1.7.10, and 1.8.4)

2015-08-18 Thread Tim Graham
Today the Django team issued multiple releases -- Django 1.4.22, 1.7.10, and 1.8.4 -- as part of our security process. These releases address a security issue, and we encourage all users to upgrade as soon as possible. More details can be found on our blog: https://www.djangoproject.com/weblog/

Re: MIGRATION_MODULES possible bug.

2015-08-20 Thread Tim Graham
I guess https://github.com/django/django/commit/b9c619abc101688fbbfa981525175f831d359483 might help. On Thursday, August 20, 2015 at 10:02:04 AM UTC-4, b.w...@thelinguist.com wrote: > > I believe the cause of this is line 248 in django/db/migrations/writer.py > > create_path = os.path.join(up

Re: ATOMIC_REQUESTS Middleware inside Transaction

2015-08-20 Thread Tim Graham
I'm not sure what type of reply or answer you are looking for. Overhauling Django middleware as discussed on the developers mailing list might be best in the long run. https://groups.google.com/d/topic/django-developers/uW5Ogio8QBc/discussion On Thursday, August 20, 2015 at 3:54:20 AM UTC-4, gue

Re: Feature Suggestion: New Setting called LOGOUT_REDIRECT_URL

2015-08-20 Thread Tim Graham
In fact, there is an accepted ticket which suggests the same: https://code.djangoproject.com/ticket/12405 Feel free to try your hand at a patch if you like! On Thursday, August 20, 2015 at 4:41:05 PM UTC-4, Robert Roskam wrote: > > Basically, the same feature set as here: > https://docs.djangop

Re: Turn off migrations completely in Django 1.7

2015-08-25 Thread Tim Graham
What does "turning off migrations" mean in practice? Is it not enough to avoid the makemigrations and migrate management commands? On Tuesday, August 25, 2015 at 9:31:30 AM UTC-4, bobhaugen wrote: > > I agree that migrations should be optional, for all the reasons listed in > this thread, but ho

Re: Django 1.7 migrations: Adding one field to User`s model

2015-08-25 Thread Tim Graham
This might be related to the difficulties of migrating an existing project to a custom user model. I'm not sure the steps to workaround the problem. We have an open ticket to recommend starting off a project with a custom user model to avoid this problem [1]. Sorry I can't be of more help. [1]

Re: Possible bug - defer in a Model Manager

2015-08-27 Thread Tim Graham
Usually code needs to be adapted to work with deferred models. The class-based view issue you mentioned could be this fix for DetailView: https://github.com/django/django/commit/86aaffa5a3510c007167d116cf4ad72b79e93f31 (fixed in Django 1.9). If not, please open a bug if the issue can be reprodu

Re: Would defining MultiValueDictKeyError in django.core.exceptions be a good idea?

2015-09-05 Thread Tim Graham
The docs mention, "This is a subclass of Python's standard ``KeyError``, so you can stick to catching ``KeyError``." Does this work for you? On Saturday, September 5, 2015 at 8:24:29 AM UTC-4, Aditya Sarode wrote: > > Hi, > > MultiValueDictKeyError has to be imported from django.utils.datastructu

Re: migration error "geo_db_type" when using postgres as second database for geodjango

2015-09-14 Thread Tim Graham
This is a bug that will be fixed in Django 1.9. https://github.com/django/django/commit/0cc059cd104cdb70340bd08e597d403d80dc42a6 On Monday, September 14, 2015 at 7:35:15 AM UTC-4, Wenyao Xue wrote: > > I upgraded my router using allow_migrate, but it didn't solve my problem > > 在 2015年9月14日星期一 UT

Re: migration error "geo_db_type" when using postgres as second database for geodjango

2015-09-15 Thread Tim Graham
ember 14, 2015 at 10:58:02 PM UTC-4, Thomas wrote: > > On 9/14/15 7:10 PM, Wenyao Xue wrote: > > Thanks, I guess I have to wait for 1.9 to release then > > 在 2015年9月15日星期二 UTC+8上午12:21:58,Tim Graham写道: >> >> This is a bug that will be fixed in Django 1.9. >> >

[ANNOUNCE] Django 1.9 alpha 1 released

2015-09-23 Thread Tim Graham
We've made the first release on the way to Django's next major release, Django 1.9! With two and a half months until the scheduled final release, we'll need timely testing from the community to ensure an on-time and stable release. Check out the blog post: https://www.djangoproject.com/weblog/2

Re: Drop constrailts

2015-09-29 Thread Tim Graham
I believe it's a bug that's fixed in Django 1.9: https://github.com/django/django/commit/f37c11eea3cb860112a26f8a65d823842f65b96f On Monday, September 28, 2015 at 11:12:26 PM UTC-4, Григорий Крамаренко wrote: > > In migrations I need delete constraints before creating table-partitioning. > But Dj

Re: "django.db.models.query.QuerySet" vs "django.db.models.QuerySet"

2015-09-29 Thread Tim Graham
Either way is okay; the original location isn't deprecated. I'd use the "convenience" import in django.db.models if it were me. On Tuesday, September 29, 2015 at 2:00:00 PM UTC-4, Ilya Kazakevich wrote: > > In Django 1.6 it QuerySet was in package > "django.db.models.query.QuerySet". But since 1

Re: django on Windows

2015-10-01 Thread Tim Graham
Here's a new pull request to improve the installation instructions for Windows. Feedback and testing would be appreciated! https://github.com/django/django/pull/5376 On Thursday, October 1, 2015 at 4:49:58 PM UTC-4, Avraham Serour wrote: > > don't, just use the regular python from python.org, an

Re: Finding average

2015-10-02 Thread Tim Graham
Please have a look at the aggregation docs and see if you can figure it out: https://docs.djangoproject.com/en/stable/topics/db/aggregation/ On Friday, October 2, 2015 at 2:46:39 AM UTC-4, Bhanu Kathuria wrote: > > I have attached my model files and template files. Please tell how can i > find a

[ANNOUNCE] Django bugfix release issued: 1.8.5

2015-10-03 Thread Tim Graham
Details are available on the Django project weblog: https://www.djangoproject.com/weblog/2015/oct/03/bugfix-release-issued/ -- 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 a

Re: Possible Bug in password_reset_form

2015-10-05 Thread Tim Graham
In Django 1.9, the "extra_email_context" parameter was added to achieve this. https://docs.djangoproject.com/en/1.9/topics/auth/default/#django.contrib.auth.views.password_reset On Monday, October 5, 2015 at 5:48:57 PM UTC-4, mwidman wrote: > > Not sure if this intentional or not, but in Django

Re: exception "myapp.models.DoesNotExist" instead of "MyModel.DoesNotExist"

2015-10-06 Thread Tim Graham
I can reproduce an exception appearing as "app.models.DoesNotExist" in a traceback, but "except Model.DoesNotExist" works for me, so I can't explain that. By the way, you should probably use QuerySet.get_or_create() instead of try/except as it will be more resilient to race conditions. https:/

Re: getting started with django

2015-10-07 Thread Tim Graham
Getting Started with Django: https://docs.djangoproject.com/en/stable/intro/ Contributing: https://docs.djangoproject.com/en/dev/intro/contributing/ https://docs.djangoproject.com/en/dev/internals/contributing/ On Wednesday, October 7, 2015 at 8:12:11 AM UTC-4, Anagha R wrote: > > How to get stat

Re: how to copy data per user

2015-10-07 Thread Tim Graham
I don't think you've provided enough details about your models for anyone to provide an answer. p.s. Django 1.6 is unsupported and has unfixed security vulnerabilities so you should try to upgrade to a supported version. https://www.djangoproject.com/download/#supported-versions On Wednesday, O

Re: How to run all tests in INSTALLED_APPS with the new test runner 1.6?

2015-10-07 Thread Tim Graham
Copying the old test runner from an old version of Django seems like a fine solution. I thought someone might have published it on PyPI, but I couldn't find it if so. On Wednesday, October 7, 2015 at 2:06:08 AM UTC-4, Gergely Polonkai wrote: > > I'm not sure I understand what you want to achieve

Re: are parameters compulsary in an url pattern?

2015-10-07 Thread Tim Graham
If you can accomplish what you need without passing parameters, there is certainly no requirement to do so. Have you read: https://docs.djangoproject.com/en/stable/topics/http/urls/ ? On Wednesday, October 7, 2015 at 12:10:54 AM UTC-4, krmane wrote: > > Dear all, > I just wish to know if I must

Re: Possible Bug in password_reset_form

2015-10-07 Thread Tim Graham
bclassing > PasswordResetForm's save function or somehow getting access to the request > in urls.py to build a RequestContext. > > Regards, > Mike > > > On Monday, October 5, 2015 at 4:11:59 PM UTC-7, Tim Graham wrote: >> >> In Django 1.9, the "extra_ema

<    1   2   3   4   5   6   >