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

Re: Proposal: add new template tag "age"

2015-11-09 Thread Dheerendra Rathor
If we ever need to implement age filter, I would rather suggest for modification of naturaltime in django.contrib.humanize to take an optional parameter (age = True). On Tue, 10 Nov 2015 at 01:22 Tim Graham wrote: > For questions of whether or not to include something like

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

2015-11-09 Thread Tim Graham
Similar to "python -c", there's been a request for: python manage.py shell -c 'run_code_as_django()' to avoid writing simple management commands. What do you think about this idea? https://code.djangoproject.com/ticket/25680 -- You received this message because you are subscribed to the

Re: Proposal: add new template tag "age"

2015-11-09 Thread Tim Graham
For questions of whether or not to include something like this in core, my own rule of thumb is, "Is this difficult to implement as a third-party package? If not, do more than ~80% of sites need this feature?" If the answer to both questions is "no" (which is the case here, in my opinion),

Proposal: add new template tag "age"

2015-11-09 Thread Paulo Maciel
My proposal is to add a new template tag "age": {{ birthday|age }}. I think it is a common need for many users know the age from a date. -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from

Re: startproject values for STATICFILES_DIRS and TEMPLATES

2015-11-09 Thread Collin Anderson
I wouldn't mind having these in the project template. They're already the example values in the docs. It could make it slightly easier for beginners. STATICFILES_DIRS = [os.path.join(BASE_DIR, 'static')] TEMPLATES = [ { 'BACKEND': 'django.template.backends.django.DjangoTemplates',

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

2015-11-09 Thread José Tomás Tocino
> > Well maybe extending queries to do that. Wonder is there similiar issues > with postgresql? > Nope, I've just tried granting SELECT access to a user and he can inspect the tables properly (in postgresql): postgres=# CREATE DATABASE permissions; CREATE DATABASE postgres=# \c permissions;

Re: #25582: Add a way to build URLs with query strings

2015-11-09 Thread Merijn Bertels
I think would be a good thing if we create a function to support this. But I don't think it should be build in the reverse function. Like to point out that the Admin ChangeList has a function on the class who does something like this:

Re: Testing Django using Docker

2015-11-09 Thread Anssi Kääriäinen
There would be huge benefit if we could somewhat easily test against different database and python versions. Right now, if you are faced with "doesn't work on MySQL 5.7" bug, it is a bit complicated to verify such issues if you don't happen to have the version installed. - Anssi On Nov 9, 2015

Re: Testing Django using Docker

2015-11-09 Thread Enrique Paredes
There's one good basic example of docker-compose in pydanny's cookiecutter django package, if you need it. — Sent from Mailbox On Mon, Nov 9, 2015 at 9:04 AM, Jani Tiainen wrote: > Hi, > I think you should document this in Wiki at least. > Few additional questions notes:

Re: Testing Django using Docker

2015-11-09 Thread Jani Tiainen
Hi, I think you should document this in Wiki at least. Few additional questions notes: What's the Docker overhead? (starup/shutdown time) Could waiting for db container be more robust? Now it's just "random number". Using docker-compose would be nice to avoid problems with container