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
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
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
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),
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
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',
>
> 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;
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:
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
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:
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
11 matches
Mail list logo