Re: Proposal: Django URL Admin (django-urls)

2012-12-07 Thread Zach Borboa
orian Apolloner wrote: > Hi Zach, > > > On Friday, December 7, 2012 9:07:32 PM UTC+1, Zach Borboa wrote: >> >> Does something like this exist already? If not, it should. > > > I am wondering what you are trying to achieve with this post. If you only > want to know

Re: Proposal: Django URL Admin (django-urls)

2012-12-13 Thread Zach Borboa
For those of you following, development of django-urls has moved to github. Thanks https://github.com/django-urls/django-urls -- You received this message because you are subscribed to the Google Groups "Django developers" group. To view this discussion on the web visit https://groups.google.c

Re: Proposal: Django URL Admin (django-urls)

2012-12-16 Thread Zach Borboa
1:31:34 PM UTC-6, Amirouche B. wrote: >> >> >> >> On Friday, December 7, 2012 9:07:32 PM UTC+1, Zach Borboa wrote: >>> >>> Does something like this exist already? If not, it should. >> >> >> How this can be useful ? You still need to wr

Re: Explicit relative imports

2014-11-12 Thread Zach Borboa
Aymeric, is this the example? from .config import AppConfig # NOQAfrom .registry import apps # NOQA from https://github.com/django/django/blob/master/django/apps/__init__.py On Tuesday, November 11, 2014 1:51:19 PM UTC-8, Aymeric Augustin wrote: > > Hello, > > We’ve started using explicit relat

Re: automated import sorting and better pull request checks

2015-01-29 Thread Zach Borboa
Hi Tim, I've always found pylint a pleasure to work with. It may be worth looking into if we want additional automated testing. Pylint has great set of code checks (unused variable, unused import, trailing whitespace, bad indentation, etc.) and can integrate with Jenkin

Re: Support `manage.py shell -c 'run_code_as_django()'`?

2015-11-09 Thread Zach Borboa
I've used cat script.py | python manage.py shell -- 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 receiving emails from it, send an email to django-developers+unsubs

When to use single quotes and double quotes

2013-10-27 Thread Zach Borboa
I'm seeing a mix of both singly- and doubly-quoted strings in django source. Other than docstrings wrapped in triple-double-quotes, when is it appropriate to use double quotes instead single quotes? -- You received this message because you are subscribed to the Google Groups "Django developers"

Re: When to use single quotes and double quotes

2013-10-27 Thread Zach Borboa
I believe we should prefer one over the other. That being said, legibility, consistency, and context should be taken into account. Should our documentation examples prefer one rather over the other? > > Daniele > > -- You received this message because you are subscribed to the Google Groups

Re: When to use single quotes and double quotes

2013-10-28 Thread Zach Borboa
Here's an example from the django source where we are using double quotes in python instead of single quotes. The following code prints out html using single quotes instead of the double quotes regularly seen in html. return format_html("", csrf_token) instead of: return format_html(''

Re: When to use single quotes and double quotes

2013-10-28 Thread Zach Borboa
> Here's an example from the django source where we are using double quotes > in python instead of single quotes. The following code prints out html > using single quotes instead of the double quotes regularly seen in html. > > return format_html(" value='{0}' />", csrf_token) > > instead o

Re: The unsettings project

2014-02-10 Thread Zach Borboa
Diff https://github.com/SlashRoot/django/compare/django:master...master On Monday, February 10, 2014 6:59:41 PM UTC-8, Russell Keith-Magee wrote: > > > On Tue, Feb 11, 2014 at 10:27 AM, James Farrington > > > wrote: > >> Hello everyone, >> >> Here are some thoughts on the unsettings issue. If yo

Re: allow list_display in admin to traverse onetoonfields and foreign key relations

2014-02-25 Thread Zach Borboa
I agree that the current behaviour is confusing and needs change in order to be DRY[1] and consistent[2]. [1] https://docs.djangoproject.com/en/dev/misc/design-philosophies/#don-t-repeat-yourself-dry [2] https://docs.djangoproject.com/en/dev/misc/design-philosophies/#consistency This is how I

Re: [GSOC] Introduction and task proposal

2014-03-18 Thread Zach Borboa
2) Security implications. Unfortunately, more than one site has been > launched with debug=True accidentally left on; all you need to do then is > stimulate a server error, and you have REPL shell access to the server. > This strikes me as a remarkably effective foot-gun :-) Before you get too

Re: proposing max line length of 119 + enforcing it with flake8

2014-09-04 Thread Zach Borboa
Looks like the line length limit on Github varies[1]. Can we use 120 as it's a nice round number? [1] http://stackoverflow.com/questions/22207920/what-is-githubs-character-limit-or-line-length-for-viewing-files-on-github -- You received this message because you are subscribed to the Google Gro

Re: proposing max line length of 119 + enforcing it with flake8

2014-09-04 Thread Zach Borboa
Screenshot for comparison. -- You received this message because you are subscribed to the Google Groups "Django developers" group. To unsubscribe from this group and stop receiving emails

Re: Support `manage.py shell -c 'run_code_as_django()'`?

2016-01-12 Thread Zach Borboa
Nice to see that this was implemented. $ cat myscript.py import django print(django.__version__) $ python manage.py shell --command="import myscript" 1.10.dev2016011210 The --command option lets you pass a command as a string to execute it as Django, like so: django-admin shell --comm

Re: Value of tightening URLValidator/EmailValidator regular expressions?

2016-04-01 Thread Zach Borboa
-1 on less strict validation. Saying we need less strict validation because emails are usually confirmed by sending an email to it, is akin to saying urls are only valid if the url can be fetched. "Looks vaguely like a url" would not be enough for validation purposes. I believe we should strive