Re: Rendered output from a template tag

2009-06-26 Thread Brian May
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"

Re: how to call a view from inside a decorator?

2009-06-27 Thread Brian May
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

Re: Model save() weird behaviour

2009-07-20 Thread Brian May
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

Re: permalink don't works

2009-07-29 Thread Brian May
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

Re: Removing objects with many-to-many relationship

2009-07-30 Thread Brian May
-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

Re: Stopping people loging in twice

2009-07-31 Thread Brian May
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

Re: permalink don't works

2009-07-31 Thread Brian May
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 --~--~-~--~~---

Re: Select_related and foreign keys

2009-08-05 Thread 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

Re: Timezones in Django

2009-08-10 Thread Brian May
. 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

[br...@vpac.org: selecting foreign keys]

2009-05-20 Thread Brian May
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

reverse URLs on Debian Lenny

2009-05-21 Thread Brian May
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

Re: reverse URLs on Debian Lenny

2009-05-21 Thread Brian May
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(&#x

prev/next links

2009-05-25 Thread Brian May
. -- 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

Re: prev/next links

2009-05-26 Thread Brian May
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. -

Re: [br...@vpac.org: selecting foreign keys]

2009-05-26 Thread Brian May
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

comma seperated lists

2009-05-28 Thread Brian May
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

Re: comma seperated lists

2009-05-28 Thread Brian May
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

Re: comma seperated lists

2009-05-31 Thread Brian May
'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

Re: comma seperated lists

2009-05-31 Thread Brian May
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. --

Re: dumpdata and loaddata as simple DB migration tool?

2009-06-03 Thread Brian May
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

Re: multiple column primary key

2009-06-03 Thread Brian May
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

Re: dumpdata and loaddata as simple DB migration tool?

2009-06-03 Thread Brian May
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

Re: reverse url fails on existing url

2009-06-16 Thread Brian May
> 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 --~--~---

media files

2010-06-01 Thread 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

django channels group subscriptions

2017-06-01 Thread Brian May
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

Re: django channels group subscriptions

2017-06-01 Thread Brian May
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

Re: django channels group subscriptions

2017-06-01 Thread Brian May
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