Re: Collectstatic and determine which files need to be updated by comparing their checksum

2016-04-14 Thread Tim Graham
A proposal to use checksums was closed as wontfix in https://code.djangoproject.com/ticket/19021. On Thursday, April 14, 2016 at 1:16:39 PM UTC-4, bliy...@rentlytics.com wrote: > > This makes a lot of sense to me. > > On Tuesday, April 12, 2016 at 9:07:51 AM UTC-7, Daniel Blasco wrote: >> >> Hi,

Re: Django template 'if ... is' feature design

2016-04-14 Thread Tim Graham
Hi Sven, Here are some examples of when the "is" operator isn't equivalent to "==". http://stackoverflow.com/questions/3647692/when-is-the-operator-not-equivalent-to-the-is-operator-python Preston (author of the patch to add the "is" operator [0]) indicated support for "is" was necessary for tem

Re: Reopening of Ticket "list_display does not allow functions of referenced objects (#5863)"

2016-04-13 Thread Tim Graham
I believe https://code.djangoproject.com/ticket/10743 is an accepted ticket for this (limited to allowing referencing fields, but not methods, of related objects. On Wednesday, April 13, 2016 at 1:54:29 PM UTC-4, Olivier Dalang wrote: > > Dear List, > > The idea of allowing relations lookups in

Re: Form field labels change proposal

2016-04-13 Thread Tim Graham
ticed that there are cases where the label itself is > not wrapped in a tag > (django.tests.forms_tests.tests.test_forms.FormsTestCase.test_templates_with_forms). > > On Friday, November 20, 2015 at 8:31:55 PM UTC+1, Tim Graham wrote: >> >> Looks easy enough. I was going

Re: Land Information System in Django

2016-04-13 Thread Tim Graham
The django-developers mailing list is for the development of Django itself. Please use django-users for questions like this. Did you find out about this mailing list from somewhere where this distinction isn't clear? On Wednesday, April 13, 2016 at 8:36:49 AM UTC-4, Wanjohi Kibui wrote: > > Hel

Re: Enforcing a max size for form field values read into memory (review/determination of next steps needed)

2016-04-13 Thread Tim Graham
hanks! https://github.com/django/django/pull/6447 On Wednesday, September 9, 2015 at 8:22:23 PM UTC-4, Tim Graham wrote: > > Hi, I think I will be able to make good on my promise to give all the > tickets that were in the review queue on last Friday a review for 1.9, > except for this

Re: is_authenticated as property

2016-04-11 Thread Tim Graham
Florian has raised the issue of custom user models which define these methods, "Allowing custom user models to have a method is a security risk since all checks will now return true." I proposed a compatibility system check error to detect that situation to alert the user. Do you think the back

Re: Making Django more PaaS-friendly

2016-04-11 Thread Tim Graham
Here is some past work on "Minimize the risk of SECRET_KEY leaks" [0] that was never completed: https://github.com/django/django/pull/2714 [0] https://code.djangoproject.com/ticket/20081 On Monday, April 11, 2016 at 6:51:38 AM UTC-4, Josh Smeaton wrote: > > I kind of like the idea of making all

Fellow Report - April 9, 2016

2016-04-09 Thread Tim Graham
Triaged --- https://code.djangoproject.com/ticket/26456 - Document formfield_callback attribute in ModelForm (wontfix) https://code.djangoproject.com/ticket/26463 - Allowing Callbacks/Handlers to be called on Cache entry Expiration (wontfix) https://code.djangoproject.com/ticket/26459 -

Re: A helpful ImportError for manage.py when Django isn't installed/available

2016-04-09 Thread Tim Graham
import > django". > If this works, reraise, if it fails, print helpful message. > > On Thursday 31 March 2016 20:15:05 Tim Graham wrote: > > Ben Welsh (palewire) raised a proposal on a GitHub pull request [0]: > > > > I've seen newbies flounder w

Re: A helpful ImportError for manage.py when Django isn't installed/available

2016-04-07 Thread Tim Graham
Yes, I always install Django in a virtualenv rather than system-wide. I'm sure there are some users installing it system-wide, but I think that's more and more a niche use case. On Thursday, April 7, 2016 at 4:33:44 PM UTC-4, Rafael Henter wrote: > > Tim Graham, > > How

Re: Add documentation to address OWASP Top 10?

2016-04-06 Thread Tim Graham
Proposed text: Take a look at the Open Web Application Security Project (OWASP) Top 10 list which identifies some common vulnerabilities in web applications. While Django has tools to address some of the issues, other issues must be accounted

must we include the source files for all minified JavaScript?

2016-04-06 Thread Tim Graham
>From a Trac ticket [0]: In Debian, we like to have the sources of everything that we ship and we consider that minified javascript files are not really scripts (which are their own source). There are currently two problematic files in Django: js_tests/qunit/blanket.min.js django/contrib/a

Add documentation to address OWASP Top 10?

2016-04-05 Thread Tim Graham
>From a Trac ticket [0]: "Using incremental URLs (i.e. /comment/1 is the first comment and /comment/2 is the second comment, respectively for base 64 or other counting systems) is highly dangerous for private information. You could simply get all of the, say, private comments by accessing all

Re: Value of tightening URLValidator/EmailValidator regular expressions?

2016-04-05 Thread Tim Graham
Any thoughts about whether or not to make similar simplifications to URLValidator? There's an old ticket to add a DomainNameValidator [0] which may or may not be worth moving forward with based on the decision. [0] https://code.djangoproject.com/ticket/18119 On Saturday, April 2, 2016 at 3:05:1

Should DecimalField have special rounding to make float assignments match string assignments?

2016-04-05 Thread Tim Graham
If you assign a float with more decimal places than a DecimalField field supports to that field, the value may round differently than if you assign the same value as a string. For example: class Invoice(models.Model): gross = models.DecimalField(max_digits=10, decimal_places=1) invoice.gros

Re: New `pre_handler()` method on Class-Based Views

2016-04-05 Thread Tim Graham
See the discussion on the pull request: https://github.com/django/django/pull/6416 Aymeric says, "The GCBV API is already widely criticized for being too complicated. I think that adding one method to save one line of code is a bad trade-off. I'm -1." On Sunday, April 3, 2016 at 3:35:26 PM UTC

Re: Feedback on improving GeoDjango docs

2016-04-04 Thread Tim Graham
I'm not sure about expanding and/or splitting the platform-specific instructions. These are not so well maintained and might be better suited for some wiki pages or something, e.g. https://code.djangoproject.com/ticket/25633. On Monday, April 4, 2016 at 7:10:03 AM UTC-4, Mattias Linnap wrote: >

Re: utils.suppress_warning, TestCase.assertWarns

2016-04-04 Thread Tim Graham
I think django.test.ignore_warnings may meet your needs. As for the latter idea, unless something is really eager to add a Python 2 compatible version (if possible) to Django's SimpleTestCase, we can wait until dropping Python 2 support and then use the TestCase.assertWarns() in Python 3.2+. O

Fellow Report - April 2, 2016

2016-04-02 Thread Tim Graham
Triaged --- https://code.djangoproject.com/ticket/26413 - Abstract model inheritance regression with string model references in 1.9 (accepted) https://code.djangoproject.com/ticket/26418 - models.URLField does not validate with an rtmp:// url (wontfix) https://code.djangoproject.com/tic

Re: geodjango.org status

2016-04-02 Thread Tim Graham
I'm not sure if that domain is under the control of the Django Software Foundation. It might be registered by Justin Bronn, the original author of GeoDjango. It looks like Justin works at Counsyl, which explains the last retweet on the Twitter account. On Saturday, April 2, 2016 at 10:12:22 AM

Re: Deprecating User.is_anonymous ?

2016-04-02 Thread Tim Graham
Did you look into why both methods exist in the first place? I didn't know the reason. is_anonymous() preceded is_authenticated(). The concern was that template code like this: {% if not user.is_anonymous %}Content for logged in users.{% else %}Content for non-logged in users.{% endif %} wou

[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 developers (Contributions to Django itself)" group. To unsubscribe from this group and stop

A helpful ImportError for manage.py when Django isn't installed/available

2016-03-31 Thread Tim Graham
Ben Welsh (palewire) raised a proposal on a GitHub pull request [0]: I've seen newbies flounder when they receive this error after running manage.py. $ python manage.py Traceback (most recent call last): File "manage.py", line 7, in from django.core.management import execute_from_command_

Re: Value of tightening URLValidator/EmailValidator regular expressions?

2016-03-30 Thread Tim Graham
How did you imagine the deprecation cycle working? Do you want Django to raise a warning saying that the regular expression is changing and provide a temporary setting or something to opt-in to the simpler validation? On Saturday, March 26, 2016 at 5:25:04 AM UTC-4, Shai Berger wrote: > > On Tu

Re: I have a problem when linking two urls

2016-03-29 Thread Tim Graham
This mailing list is for the development of Django itself. Please use django-users for usage questions. On Tuesday, March 29, 2016 at 5:28:30 PM UTC-4, ludovic coues wrote: > > Without a bit more of information, it will be kinda hard to help you. > The full text of the error, the content on the

Re: relative path in {% extends "...base.html" %} like relative import

2016-03-29 Thread Tim Graham
I found a couple previous discussions but no strong arguments against the feature so I'll move forward with reviewing the patch. https://groups.google.com/d/topic/django-users/qX2ThbMk_So/discussion https://groups.google.com/d/topic/django-users/_dUhA_IWpl8/discussion On Friday, March 25, 2016

Re: An idea for Q filter objects

2016-03-28 Thread Tim Graham
I think the issue would be fixed by tackling the ticket, "Get rid of field.get_db_prep_lookup()" [0]. If I understand correctly, the exception is coming from DateField.get_db_prep_value() which is trying to do the conversion to a datetime. [0] https://code.djangoproject.com/ticket/22936 On Mon

Fellow Report - March 26, 2016

2016-03-26 Thread Tim Graham
Triaged --- https://code.djangoproject.com/ticket/26386 - ManifestStaticFilesStorage not respecting commented lines in collect static (duplicate) https://code.djangoproject.com/ticket/26381 - UserCreationForm cannot be reused with a custom USERNAME_FIELD value (fixed) https://code.djang

Re: GSoC

2016-03-24 Thread Tim Graham
Sorry but there isn't enough time left to put together a successful proposal. It takes weeks to do that, not hours. Start your involvement with contributing to Django now and you'll have a better chance next year: https://docs.djangoproject.com/en/dev/internals/contributing/new-contributors/ On

Re: relative path in {% extends "...base.html" %} like relative import

2016-03-23 Thread Tim Graham
Asking again... I am not sure if the Django Template Language should evolve new features like this. Is there any prior art in Jinja2? Absent any other +1's, I guess I would be more comfortable accepting the feature if so. The code seems too complicated. Could we reuse os.path handling from the

Re: [GSoC 2016]Proposal: Validity check at client and dynamic form framework

2016-03-22 Thread Tim Graham
I agree with Jani that you should think about trying to make the proposal accommodate different JavaScript frameworks. You might look at https://github.com/jrief/django-angular, for example, for inspiration. Just thinking about what problems Django should be trying to solve, I'm wondering if cl

Re: GSoC 2016: Draft Proposal on SQLAlchemy Integration with django

2016-03-22 Thread Tim Graham
I've never used SQLAlchemy myself, so I can't really comment on it without the technical details of what you would actually be doing. On Friday, March 18, 2016 at 8:11:12 AM UTC-4, Asif Saifuddin wrote: > > Hi, > > I have been working for preparing a proposal on SqlAlchemy integration > with dja

Re: Proposal on Custom Indexes - Google Summer of Code

2016-03-22 Thread Tim Graham
Instead of aiming for one huge patch to be merged at the end of the summer, I'd suggest to think about whether you can break up the work in chunks that can be merged incrementally. This should decrease the risk that comes with a huge patch going stale and makes code review much easier. It's hel

Re: Working on a profiling/benchmark tool for the django template language. Looking for feedback on my work so far.

2016-03-22 Thread Tim Graham
Did FunkyBob indicate he was interested in mentoring this project? In my view, the idea isn't so important now that we have Jinja2 integration but I didn't remove it from the idea list since I didn't get a definitive answer about that. On Saturday, March 19, 2016 at 8:41:33 AM UTC-4, Quentin Fu

Re: help

2016-03-22 Thread Tim Graham
Is this about Google Summer of Code (if so, it's too late to start a proposal) or something else? If it's about contributing to Django, please see https://docs.djangoproject.com/en/dev/internals/contributing/new-contributors/ for advice. On Tuesday, March 22, 2016 at 8:32:40 AM UTC-4, SANGAPU

Re: Index expressions

2016-03-21 Thread Tim Graham
Sorry, but if you haven't started a proposal yet and haven't contributed to Django before, it's unlikely you'll develop a successful proposal in less than a week (the application deadline is Friday). On Monday, March 21, 2016 at 2:59:43 PM UTC-4, aleksand...@gmail.com wrote: > > Hello, Tim. > >

Re: code.djangoproject vs docs.djangoproject

2016-03-21 Thread Tim Graham
Copying my response from the ticket, "The wiki isn't part of the official documentation so a Trac ticket isn't needed. Just make sure you are logged in and use the "Edit this page" button at the bottom of the page. Thanks!" On Monday, March 21, 2016 at 2:41:54 PM UTC-4, Becka R. wrote: > > Hi! >

Re: relative path in {% extends "...base.html" %} like relative import

2016-03-21 Thread Tim Graham
There are backwards-compatibility concerns as a leading dot can no longer be used in a template name, though if developers are following the advice about template namespacing it wouldn't be a problem. Still, I am not sure if the Django Template Language should evolve new features like this. Is

Fellow Report - March 19, 2016

2016-03-19 Thread Tim Graham
Triaged --- https://code.djangoproject.com/ticket/26351 - Recommend enabling MySQL's STRICT_TRANS_TABLES to prevent silent truncation (accepted) https://code.djangoproject.com/ticket/26355 - Add support for PostgreSQL's array_append to ArrayField (accepted) https://code.djangoproject.co

Re: Override the default form field for a model field

2016-03-19 Thread Tim Graham
I'm not sure whether or not to accept a related proposal to add a "formfield_defaults" keyword to model fields [0]. e.g. link = models.OneToOneField( ... formfield_defaults={ 'widget': forms.RadioSelect, } ) It seems useful, but I'm not sure if it increases the coupling betw

Re: Override the default form field for a model field

2016-03-18 Thread Tim Graham
, then I don't see a clear place to draw the line to reject this other proposal. [0] https://code.djangoproject.com/ticket/22609 On Thursday, March 17, 2016 at 9:46:30 AM UTC-4, is_null wrote: > > On Thu, Mar 17, 2016 at 2:17 PM, Tim Graham > wrote: > > It seems useful, bu

Re: Documentation for deployment on OpenShift Origin

2016-03-15 Thread Tim Graham
I don't mind maintaining the instructions for these common platforms and if Django's docs didn't have any deployment instructions that might be a bit odd. For what it's worth, the uwsgi docs do have some nice (at a very quick glance) looking instructions: https://uwsgi-docs.readthedocs.org/en/

Re: Documentation for deployment on OpenShift Origin

2016-03-15 Thread Tim Graham
Does OpenShift have some suitable docs you can contribute to? I don't think the Django docs are the right place for specific deployment scenarios like this. On Tuesday, March 15, 2016 at 5:42:31 PM UTC-4, is_null wrote: > > Hi, > > OpenShift Origin is an Open Source PaaS system based on cool st

Re: Status of DEP 0005: Improved middleware?

2016-03-15 Thread Tim Graham
Here's the mailing list thread: https://groups.google.com/d/topic/django-developers/8LMJ44KAxWI/discussion I think mostly the implementation just needs to be completed. On Tuesday, March 15, 2016 at 10:32:15 AM UTC-4, guettli wrote: > > I like the improved middleware proposal: > https://github.

Value of tightening URLValidator/EmailValidator regular expressions?

2016-03-14 Thread Tim Graham
On a pull request that proposes to tighten the validation of EmailValidator [0], Ned Batchelder questioned the usefulness of this: "Can I respectfully suggest that continuing to tweak this complex regex to get asymptotically closer to perfection is not worth it? Especially to fix false positive

MySQL data loss possibility with concurrent ManyToManyField saves

2016-03-14 Thread Tim Graham
Could some MySQL users take a look at ticket #26347 [0] and recommend how to proceed? I think it's probably not a new issue but I'm a bit surprised it hasn't come up before if so. [0] https://code.djangoproject.com/ticket/26347 -- You received this message because you are subscribed to the Goo

Fellow Report - March 12, 2016

2016-03-12 Thread Tim Graham
Triaged --- https://code.djangoproject.com/ticket/26326 - Admin related object pop-ups not working (worksforme) https://code.djangoproject.com/ticket/26327 - Add JSON_AGG to contrib.postgres (accepted) https://code.djangoproject.com/ticket/26313 - Show labels next to ManyToMany with ra

Re: Improving MSSQL and Azure SQL support on Django

2016-03-11 Thread Tim Graham
Yes, I wonder if Microsoft abandoned the idea of providing engineering resources to help out projects like django-mssql or if things are just moving really slowly? I'm not aware of any follow up related to that idea since Michael, Michiya, and I visited Microsoft in October. On Wednesday, March

Re: Surprising behaviour in case of exception in form widget when DEBUG=False

2016-03-11 Thread Tim Graham
Yes, I think it's {% include %} rendering an empty string if there's an exception. In Django 1.9, we added a logger for these exceptions to make debugging easier: https://docs.djangoproject.com/en/stable/topics/logging/#django-template. On Friday, March 11, 2016 at 6:30:35 AM UTC-5, Federico Ca

Re: [ GSoC2016 ] Integration of django and angular2

2016-03-09 Thread Tim Graham
I'm not sure what the end product you have in mind would look like, but I don't think Django (core) is going to adopt tight integration with any JavaScript framework. You pointed to a third-party package... what's the problem with it and how would your proposal differ? On Wednesday, March 9, 20

Re: Summer of Code Idea: Class-based [Object] Permissions

2016-03-09 Thread Tim Graham
1. Not sure, but it seems similar to the access mixins introduced in Django 1.9: https://docs.djangoproject.com/en/1.9/releases/1.9/#permission-mixins-for-class-based-views 2. Any large feature that is twelve weeks worth of work for which you can find a mentor for should be okay. You should incl

Re: Is there a reason these features cannot be added inside Django core?

2016-03-07 Thread Tim Graham
1. This has been raised before, but it seems there's not much interest. See also: https://groups.google.com/d/topic/django-developers/jsMlF6u4yxU/discussion 2. Here's a tentatively accepted ticket for editing OneToOne related models as inlines: https://code.djangoproject.com/ticket/21135 For f

Re: Adding "bits of entropy" argument to crypto.get_random_string

2016-03-07 Thread Tim Graham
My opinion is that django.utils needn't grow features that Django itself doesn't use. On Monday, March 7, 2016 at 11:04:48 AM UTC-5, Nick Timkovich wrote: > > By the presence of a "bits" measure in the documentation of the function > it seems to be known that it's a measure of interest. The bene

Re: remove old SVN branches from git repository?

2016-03-07 Thread Tim Graham
should still be available. > > /Markus > > On Wed, Feb 24, 2016 at 12:46:38PM -0800, Tim Graham wrote: > >They're already in everyone's forks too unless you delete them. Not sure > if > >deleting them from the main repo would delete them for all forks

Re: URL dispatching framework: feedback requested

2016-03-07 Thread Tim Graham
Hi Marten, How are things going? Do you plan to make a push to merge this for 1.10? The alpha is scheduled for May 16. Are you still waiting for feedback? I think writing documentation would certainly facilitate that. Also, if there's any chance to break the existing commit into some smaller lo

Re: Spatial lookups for RasterField

2016-03-07 Thread Tim Graham
The index approach seems consistent with ArrayField's index transforms [0] so that seems okay to me. [0] https://docs.djangoproject.com/en/1.9/ref/contrib/postgres/fields/#index-transforms On Thursday, January 28, 2016 at 10:33:54 AM UTC-5, Daniel Wiesmann wrote: > > Hello Everyone > > I have b

Re: Admin hstore widget

2016-03-07 Thread Tim Graham
1. Merging something minimal always help to get feature requests. :-) 2. Could you be more specific about what you're looking for? All the existing documentation for style related stuff is at https://docs.djangoproject.com/en/dev/internals/contributing/writing-code/coding-style/. I also though

Re: context = context.new(context)

2016-03-07 Thread Tim Graham
I guess this should go to django-users (usage questions). It's not clear to me how this is related to the development of Django itself. To increase the likelihood of getting an answer, make the code example more complete and find the commit in Django where the behavior changed. I can't answer th

Re: Translate permission Django

2016-03-07 Thread Tim Graham
This has been discussed in several tickets (https://www.google.com/search?&q=translate+permissions+site%3Acode.djangoproject.com) and mailing list threads (search the archives of this list for "translate permissions"). As far as I can tell, there's no clear solution at this time. On Monday, Fe

Re: Add support for relative imports in django.conf.urls.include()?

2016-03-07 Thread Tim Graham
How common are "heavily nested apps"? Is there anyone else reading this who would find this useful? On Thursday, March 3, 2016 at 3:40:14 AM UTC-5, lamby wrote: > > This just made me realize that the whole problem can already be fixed from >> the user's perspective by importing the module instea

Re: Override the default form field for a model field

2016-03-07 Thread Tim Graham
One idea (and it could be a terrible one) after a few minutes of thinking about it is an API similar to the query lookup/tranform API where you could write something like: from django.db import models models.CharField.register_formfield(MyCustomFormField) which would make all subsequent CharFie

Re: Should tutorial start with minimal Django?

2016-03-07 Thread Tim Graham
I think it could be useful to document that you can use Django with such a minimal setup. My preference wouldn't be to put it in the tutorial but maybe it has a place in docs/topics/overview.txt or similar. On Tuesday, March 1, 2016 at 8:07:38 PM UTC-5, Curtis Maloney wrote: > > When we were tea

Re: Problems with cache.get_or_set behaviour

2016-03-07 Thread Tim Graham
A solution is proposed in https://code.djangoproject.com/ticket/26332. It looks reasonable to me. Feel free to give your feedback there. On Sunday, February 28, 2016 at 5:26:50 PM UTC-5, Raphael Michel wrote: > > Hi, > > I just experienced the following behaviour and would like to ask for > you

Re: [Question] jsi18n - get_javascript_catalog a bit obscure?

2016-03-07 Thread Tim Graham
For posterity, ticket is https://code.djangoproject.com/ticket/26328. On Friday, March 4, 2016 at 4:54:06 PM UTC-5, Tim Graham wrote: > > Please read https://code.djangoproject.com/ > > On Friday, March 4, 2016 at 4:47:39 PM UTC-5, Cristiano Coelho wrote: >> >> Where do I

Re: [Feature Request] Orderable ArrayAgg and StringAgg in contrib.postgres.aggregates

2016-03-07 Thread Tim Graham
Ticket for JSON_AGG: https://code.djangoproject.com/ticket/26327 On Thursday, January 7, 2016 at 5:45:03 PM UTC-5, Josh Smeaton wrote: > > Seems reasonable enough to me. Expressions already support generating an > ORDER BY clause by calling .asc() or .desc() on them. That'd allow your > proposed

Fellow Report - March 5, 2016

2016-03-05 Thread Tim Graham
Triaged --- https://code.djangoproject.com/ticket/26282 - db.connection.is_usable throws when no connection exists yet (wontfix) https://code.djangoproject.com/ticket/26283 - SplitArrayField failed to validate because remove_trailing_nulls doesn't work properly (accepted) https://code.d

Re: Django Integration

2016-03-05 Thread Tim Graham
Hi Andrew, What's your thinking about whether or not any of this will make it into 1.10? The alpha is scheduled for May 16. On Saturday, March 5, 2016 at 2:40:05 PM UTC-5, Andrew Godwin wrote: > > Hi Chad, > > The REST framework request feature integration, in particular, has not > started yet;

Re: Intro + A few questions about Formset Improvements

2016-03-05 Thread Tim Graham
Hi, I'll answer your questions inline: 1. How many bugs does your average applicant solve for his/her proposal to > considered amazing? > The number of bugs isn't relevant as the amount of work per bug or feature varies greatly. T

deprecating the "escape" half of django.utils.safestring (#24046)

2016-03-05 Thread Tim Graham
Aymeric raised this ticket [0] while working on multiple template engines: "Since any data that isn't explicitly marked as safe must be treated as unsafe, I don't understand why we have EscapeData and its subclasses nor the mark_for_escaping function. It seems to me that we could keep only t

[ANNOUNCE] Django bugfix releases issued: 1.9.4 and 1.8.11

2016-03-05 Thread Tim Graham
Details are available on the Django project weblog: https://www.djangoproject.com/weblog/2016/mar/05/bugfix-releases/ -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group and stop

Re: [Question] jsi18n - get_javascript_catalog a bit obscure?

2016-03-04 Thread Tim Graham
Please read https://code.djangoproject.com/ On Friday, March 4, 2016 at 4:47:39 PM UTC-5, Cristiano Coelho wrote: > > Where do I get an account for Trac tickets? :) I guess I should still open > a ticket first > > El viernes, 4 de marzo de 2016, 18:31:41 (UTC-3), Tim Graham escri

Re: [Question] jsi18n - get_javascript_catalog a bit obscure?

2016-03-04 Thread Tim Graham
side translations) that some people might find useful, rather than >> always falling back to the default configured language, you could have a >> map of fallbacks, for example, if the user requests a portuguese language, >> but you only have english (default) and spanish (secondar

Re: I don't understand this error - Django 1.9

2016-03-04 Thread Tim Graham
Try emptying your __init__.py file -- its contents aren't necessary and "import apps" may be causing the problem. In the future, please use django-users for usage/debugging questions like this. This mailing list is for discussion about the development of Django itself. Thanks! On Friday, March

Re: Adding SASL authentication support to PyLibMCCache

2016-03-04 Thread Tim Graham
As it so happens, someone else ended up tackling this problem for a different use case in https://github.com/django/django/pull/6233. There's a small design discussion on the pull request about how to structure OPTIONS (possibly deprecating the current behavior of pylibmc that passes them direc

Re: Proposal: django.contrib.mysql

2016-03-03 Thread Tim Graham
Nice work, Adam. What's your main motivation for wanting to include it in Django itself? Do you think that including it will simplify the code much? Do you hope to attract new contributors by including it in Django itself? It's a bit concerning to me that the project seems like a one man show as

Re: Index expressions

2016-03-03 Thread Tim Graham
No, I'm not aware of any ongoing work or plans to add SQLAlchemy support. Let's continue the discussion in a separate thread since this is now off topic. On Thursday, March 3, 2016 at 11:36:16 AM UTC-5, Asif Saifuddin wrote: > > Hi Tim, > > Thanks for your early input on the issue. I don't think

Re: Index expressions

2016-03-03 Thread Tim Graham
FYI, I'm aware of another student working on a proposal for that project. You're welcome to develop a competing proposal, but you're at a disadvantage at this point since the other student has a track record of successful contributions. On Wednesday, March 2, 2016 at 2:46:29 PM UTC-5, Asif Saif

Re: GSoC 2016

2016-03-02 Thread Tim Graham
The best thing you can do to improve your chances to be accepted as a Django GSoC student is to start contributing now. Read up on ​Django’s contribution documentation and make yourself known to the core team by your contributions

Re: Asking for some beginner friendly tasks

2016-03-02 Thread Tim Graham
Hi, have you read https://docs.djangoproject.com/en/dev/internals/contributing/new-contributors/ and taken a look at the "Easy" tickets linked from there? On Wednesday, March 2, 2016 at 9:18:08 AM UTC-5, anshul singhal wrote: > > Hi everyone, > > I am Anshul Singhal second year undergraduate stu

Re: [Question] jsi18n - get_javascript_catalog a bit obscure?

2016-03-01 Thread Tim Graham
Have you tried looking through history with git blame to find related tickets? Another tip is to search Google with a query like "javascript_catalog site:code.djangoproject.com". This will let you find tickets to see if the issue was raised before. This is how I try to answer questions like thi

[ANNOUNCE] Django security releases issued: 1.9.3 and 1.8.10

2016-03-01 Thread Tim Graham
Today the Django team issued 1.9.3 and 1.8.10 as part of our security process. This releases address two security issues, and we encourage all users to upgrade as soon as possible. Details are available on the Django project weblog: https://www.djangoproject.com/weblog/2016/mar/01/security-rele

Add support for relative imports in django.conf.urls.include()?

2016-02-29 Thread Tim Graham
For example, within myproject.urls: urlpatterns = ( url(r'', include('.myapp.urls')), ) .. becomes equivalent to:: urlpatterns = ( url(r'', include('myproject.myapp.urls')), ) Whilst a contrived example, this can make heavy-nested apps look far, far cleane

Fellow Report - February 27, 2016

2016-02-27 Thread Tim Graham
This report concludes the first year of the fellowship program. Thank you to everyone who contributes to allow it to happen. My contract is renewed for the next six months. I hope the ongoing fundraising efforts enable the program to continue throu

Re: should manage.py test run system checks?

2016-02-26 Thread Tim Graham
>> workflow, as often code can be developed with nothing but running the >>> tests. It is also surprising that *only* test doesn't run them, since >>> every other manage command does. >>> >>> >>> I agree with this. I don't see why an opt-o

Re: Cleaning up admin CSS

2016-02-26 Thread Tim Graham
Here is the contributing documentation: https://docs.djangoproject.com/en/dev/internals/contributing/ If you have further questions about contributing feel free to ask in #django-dev IRC or on the django-core-mentorship mailing list. Thanks and I look forward to your contributions. On Friday,

Re: Improving django.setup() and app loading performance

2016-02-26 Thread Tim Graham
I'm not sure we can load apps in parallel -- they are loaded in the order in which they appear in INSTALLED_APPS so the process is consistent. Maybe it would work for some setups, but I guess it would introduce subtle bugs in others. https://docs.djangoproject.com/es/stable/ref/applications/#ho

Add warning or prohibit module level queries?

2016-02-25 Thread Tim Graham
Simon proposed [0]: "I wonder if we should prevent django.db from executing queries until django.apps.apps.ready or at least issue a RuntimeWarning. We would have to go through deprecation but I'm pretty sure this would uncover a lot of existing application bugs and prevent future ones. This i

Re: remove old SVN branches from git repository?

2016-02-24 Thread Tim Graham
They're already in everyone's forks too unless you delete them. Not sure if deleting them from the main repo would delete them for all forks too. On Wednesday, February 24, 2016 at 3:36:53 PM UTC-5, Florian Apolloner wrote: > > > > On Wednesday, February 24, 2016 at 9:12:19 PM UTC+1, Shai Berger

remove old SVN branches from git repository?

2016-02-24 Thread Tim Graham
Will anyone miss these branches if we remove them from the repository? I presume they've all either been merged or are so outdated that there isn't value in keeping them. attic/boulder-oracle-sprint attic/full-history attic/generic-auth attic/gis attic/i18n attic/magic-removal attic/multi-auth a

Re: Logged out sessions are resurrected by concurrent requests (ticket 21608)

2016-02-24 Thread Tim Graham
You could ask a friend or colleague to review the patch using the patch review checklist [1] and mark it "Ready for checkin" if it looks good. Otherwise, you just wait for someone to review it. [1] https://docs.djangoproject.com/en/dev/internals/contributing/writing-code/submitting-patches/#pat

Re: Feature proposal: selection of views and tables for inspectdb

2016-02-24 Thread Tim Graham
] : > https://github.com/django/django/blob/53ccffdb8c8e47a4d4304df453d8c79a9be295ab/django/db/backends/oracle/introspection.py#L54 > [2] : http://stackoverflow.com/a/205746/276451 > > El jueves, 19 de noviembre de 2015, 2:30:24 (UTC+1), Tim Graham escribió: >> >> One correc

Re: % vs {} string formatting for public APIs

2016-02-22 Thread Tim Graham
As Claude noted in the ticket for the success_url change: "I think that using the old percent-based interpolation method in get_success_url was not very wise, considering that % is a common escape marker in URLs. I'd suggest using the new format interpolation method to elude conflicts with esca

Fellow Report - February 20, 2016

2016-02-20 Thread Tim Graham
Triaged --- https://code.djangoproject.com/ticket/26222 - In migrating older project, after pip upgrade of Django to 1.9.2, Gunicorn crashes on failure to find validation (invalid) https://code.djangoproject.com/ticket/26215 - FloatRangeField/IntegerRangeField with None as a range bound

Re: remove support for unsalted password hashers?

2016-02-18 Thread Tim Graham
edge continued use of a weak hasher. On Wednesday, February 17, 2016 at 1:24:04 PM UTC-5, Tim Graham wrote: > > To answer my own question, I did a little experiment and cracked about 10% > of the SHA1 password hashes in the djangoproject.com database in minutes > on my sever

Re: [Discussion] Legacy documentation / Boken docs Django v1.2

2016-02-18 Thread Tim Graham
I guess I'm not strongly opposed if someone wants to do that, but I don't think I can justify spending time on the DSF's dime to help out users of unsupported versions. On Thursday, February 18, 2016 at 9:33:52 AM UTC-5, Fred Stluka wrote: > > I vote for a 301 to the matching ReadTheDocs page. >

Re: Contribution to django

2016-02-18 Thread Tim Graham
Please read our contributing documentation: https://docs.djangoproject.com/en/dev/internals/contributing/new-contributors/ On Thursday, February 18, 2016 at 8:28:07 AM UTC-5, ABHINAV RAI wrote: > > Hello > > I am Abhinav Rai, Sophomore from Computer Science Engineering from Indian > Institute of

Re: remove support for unsalted password hashers?

2016-02-17 Thread Tim Graham
ns in [1] 2. Remove SHA1PasswordHasher from the default PASSWORD_HASHERS in Django 1.10 to force projects to explicitly acknowledge use of an insecure hash if they require it. [1] https://github.com/django/django/pull/6114 On Wednesday, February 10, 2016 at 5:16:11 PM UTC-5, Tim Graham wrote: &

Re: thinking about the admin's scope and its description in the docs

2016-02-17 Thread Tim Graham
Here's another try for the docs: One of the most powerful parts of Django is the automatic admin interface. It reads metadata from your models to provide a quick, model-centric interface where trusted users can manage content on your site. The admin's recommended use is limited to an organization

Re: [Discussion] Legacy documentation / Boken docs Django v1.2

2016-02-16 Thread Tim Graham
s far back as 1.4 today. On Monday, April 13, 2015 at 11:08:59 AM UTC-4, Florian Apolloner wrote: > > As long as it doesn't hurt we can keep em there -- remove as soon as they > cause a problem ;) > > On Monday, April 13, 2015 at 4:30:01 PM UTC+2, Tim Graham wrote: >>

<    4   5   6   7   8   9   10   11   12   13   >