silly to have to duplicate everything for every tag.
However the documentation seems to suggest it is not possible to
simplify this?
--
Brian May
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users"
ldn't that be "return f(*args,**kwargs)"? ie. don't you need to return the
value?
--
Brian May
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, se
do that?
The only line containing QWERTY is commented out, and even if it wasn't
commented out it does nothing. Maybe you meant to say:
self.fulltitle = self.title = 'QWERTY'
As such, what you have is:
self.fulltitle = self.title
self.title
mpt to pass kwargs instead of args (which doesn't work
- seems so obvious now...).
I think django is great, unfortunately sometimes the documentation is lacking.
--
Brian May
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Goo
-to-many relationships are a different story. You do have to be
careful here.
--
Brian May
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-use
y have died, and now they are trying to log in
on another computer. They can't log out on the first computer - it crashed.
Instead they will have to wait for the session to time out.
--
Brian May
--~--~-~--~~~---~--~~
You received this message because you are
sequence for the second parameter in
> this case, because we only want to pass keyword parameters, not
> positional ones.
> ---
> isn't it the right text?
Yes, you are right. Not sure how I missed this now. Repeatedly. :-(
--
Brian May
--~--~-~--~~---
uldn't it help here too?
{% for i in object.object_set.select_related %}
...
{% endfor %}
Or have I misunderstood how select_related works?
--
Brian May
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Dja
.
So I have two fields, one for the datetime in UTC, and another one for the
timezone. I have a template filter (or tag - my memory is fuzzy) to convert the
UTC time to the specified timezone for displaying.
--
Brian May
--~--~-~--~~~---~--~~
You received this m
ody
please provide a link to the discussion?
Thanks.
- Forwarded message from Brian May -
Date: Fri, 13 Mar 2009 12:26:12 +1100
From: Brian May
Subject: selecting foreign keys
To: undisclosed-recipients: ;
Newsgroups: gmane.comp.python.django.user
Hello,
A frequent problem people seem to
lresolvers import reverse
>>> reverse('person_list')
'/photos/person/'
So it would appear that on Debian Lenny, reverse URLs are broken when using
include(...)
Are there any known compatibility issues with Django and Debian Lenny?
If not, how do I debug this issu
On Fri, May 22, 2009 at 10:06:50AM +1000, Brian May wrote:
> urlpatterns = patterns('',
> [...]
> (r'^(.*)', include('microcomaustralia.zoph.urls'))
> [...]
> )
Errr... Sorry, found out it was my fault. That should be:
(r'^', include(
.
--
Brian May
--~--~-~--~~~---~--~~
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-user
r that would mean the URL refers to the object via search result number,
as opposed to object id. Something I hoped to avoid.
However, maybe I might have to take this approach anyway. Considering the
object ids are not guaranteed to be in sequential order, it might be the only
solution.
-
On Thu, May 21, 2009 at 10:45:06AM +1000, Brian May wrote:
> A frequent problem people seem to have with Django[1] is the default
> interface for selecting foreign keys is slow and clumsy to use if there
> are lots of selections. To the best of my knowledge there is no solution
> i
erent data types, and rather not have
to create a custom tag for every one. If I can help it.
Thanks.
--
Brian May
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this gr
ike just what I was after...
I never thought of using forloop.last in an if condition like that.
--
Brian May
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, s
't click on the items in the list.
--
Brian May
--~--~-~--~~~---~--~~
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
On Fri, May 29, 2009 at 01:50:38AM -0700, V wrote:
> if you do this to get a comma separated list you might like
> https://launchpad.net/django-export-csv
No, I don't use CSV here, but it is nice to know such a facility exists - I have
used CSV for other projects. Thanks.
--
mp that data with column names. So if the change meant the
columns were in a different order (or new columns between old columns), the
import would be wrong. As a result I migrated to mysql, which is more flexible.
--
Brian May
--~--~-~--~~~---~--~~
You received
in the
index,
meaning it can't be used.
--
Brian May
--~--~-~--~~~---~--~~
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 unsu
ase changed
after doing a loaddata/dumpdata. I could reproduce this on demand.
I don't expect anybody to take my claims too seriously, the problems I
encountered were probably fixed ages ago. I don't like to assume something is
fixed though unless I ha
> arguments '()' and keyword arguments '{'args': u'my_name'}' not found.
I haven't double checked, but I think that should read:
{% url public_comments user.username %}
or
{% url public_comments username=user.username %}
--
Brian May
--~--~---
lace the "copy" operation with
something that compresses Javascript/css code making download times
faster.
I can't help but think that requiring every project come up with their
own solution is bad for code re-usability. As much as I like D
Comments? Suggestions?
Thanks!
Brian M
Hello,
I would like to be able to create a Django Channels group such that:
1. Websockets can can subscribe and unsubscribe (or disappear) to group
that the client specifies.
2. When the first client subscribes to a group, it starts some process
(e.g. via celery task) that feeds thi
On Friday, 2 June 2017 13:04:48 UTC+10, Andrew Godwin wrote:
>
> You can't do what you ask with the current Groups system - it is
> deliberately very simple as anything more complex involves picking scaling
> tradeoffs that are particular to the thing it's powering. You'll have to
> layer some o
On Friday, 2 June 2017 14:08:40 UTC+10, Andrew Godwin wrote:
>
> I don't have any direct examples to hand - and this sort of thing does
> come all the time, but much like Django is not in the business of including
> a full CMS, Channels can't add lots of high-level features without really
> narr
27 matches
Mail list logo