h the base.html template
* have a get_params(request) function there that returns a dict with
the base template parameters
* every view would use this and add its own values before passing it
to render_to_response.
But is there something more generic for this problem in D
I use the sqlite manager extension for firefox. Very good.
http://code.google.com/p/sqlite-manager/
/Mattias
From: django-users@googlegroups.com [mailto:[EMAIL PROTECTED]
On Behalf Of sadeesh Arumugam
Sent: den 5 november 2008 11:07
To: django-users@googlegroups.com
Subject: Help
s created by the foreign keys
in Route will have the same same if we don't change the names via
related_name. Is there someway to skip the reverse relations entirely?
Regards,
Mattias
--~--~-~--~~~---~--~~
You received this message because you are subscribed t
ll be taken from unittest2.
2. Is there a better way to combine django.test.TestCase and
unittest2, until Django 1.3 is released?
Thanks,
Mattias
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send ema
ead of caching it at the object, but this would
require looking through all reservations and sales ever made to know
the current state of a product.
Thanks for any advice,
Mattias
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To pos
ok at first?
Thanks,
Mattias
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For mor
It is possible to override the save() method in a model to add functionality:
https://docs.djangoproject.com/en/dev/topics/db/models/#overriding-model-methods
Another choice would be to register a receiver for the pre_save or
post_save signals:
https://docs.djangoproject.com/en/dev/ref/models/inst
e admin as more of a data browsing UI rather than a
management UI.
Thanks,
Mattias
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, s
nd make all
editable=False fields show up as readonly: after all, their data is
still interesting to look at, just should not be editable.
Mattias
On Wed, Sep 5, 2012 at 1:37 PM, Mattias Linnap wrote:
> Hi all,
>
> I have a model X that references another model Y with a ForeignKey.
> There
real model inherit from models.Model (probably
required if all the mixins are plain classes), or inherit from the
first mixin that is an abstract model?
* does the order of the base classes in SomeFullModel matter?
Thanks,
Mattias
--
You received this message because you are subscribed to the Goo
https://github.com/coderholic/django-cities parses the GeoNames
export, and makes it very easy to integrate into Django apps.
On Tue, Feb 26, 2013 at 11:32 AM, Daniel Blasco wrote:
> This is a useful resource http://download.geonames.org/export/dump/
>
>
> On Monday, February 25, 2013 7:05:54 AM
stions, or links to useful libraries, tutorials and
blog posts about how to best approach this?
Thanks,
Mattias
--
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
ble to access
the file. However, this approach would still allow the user to share a
direct link to the file to other people.
Mattias
On Tue, Sep 24, 2013 at 9:53 PM, J Y wrote:
> I am buliding a tool that needs to have the ability to allow user to
> upload a file, and the file shoul
.count() keeps the .distinct() part, but replaces the
.extra() and .values() parts with counting primary keys?
I tried it with values('tens'), values_list('tens'), and
values_list('tens', flat=True), as well no change.
So far I've tested Django 1.6 with Python
to document these downsides or problems in more detail.
But until that happens, is there a blog post or mailing list post somewhere
that summarises the gotchas to watch out for with auto_now?
Thanks,
Mattias
--
You received this message because you are subscribed to the Google Groups
"
t-wide for other models).
For example, Java has the @SupressWarnings() annotation, and C++/Clang has
the #pragma clang diagnostic ignored block directive.
Is there a way to do this with Python/Django?
Best,
Mattias
--
You received this message because you are subscribed to the Google Groups
&
Hi all,
I'm having some issues with integrating automatic group messaging based on
a post save signal from Django models.
I'm currently running a Graphene environment (graphene-python.org) to
support a webapp running React/Relay. In this setup we're performing
*Mutations* which will manipulate
t that, I can't help, as it could be anything - your code or
> Django's.
>
> Andrew
>
> On Mon, Jun 19, 2017 at 7:21 AM, Mattias Olsson > wrote:
>
>> Hi all,
>>
>> I'm having some issues with integrating automatic group messaging bas
18 matches
Mail list logo