Re: orm relation

2019-12-03 Thread bill dexter
> 'prn')) > > > Plz add more alias field as your sql command according to a sample above. > > Ps: check your question first(sql), then pass to communities. > > > > On Mon, Dec 2, 2019, 21:16 bill dexter <55dexte...@gmail.com> wrote: > >> thank you, but if

Re: orm relation

2019-12-02 Thread bill dexter
ups-with-q > > On Sun, Dec 1, 2019, 21:08 bill dexter <55dexte...@gmail.com> wrote: > >> ELECT a.matr >> ,[nom] >> ,[prn] >> ,cast([dat_nais] as date) as dat_nais >> , (YEAR(getdate()) - YEAR(dat_nais)) as age >> ,cast([dat_d

orm relation

2019-12-01 Thread bill dexter
ELECT a.matr ,[nom] ,[prn] ,cast([dat_nais] as date) as dat_nais , (YEAR(getdate()) - YEAR(dat_nais)) as age ,cast([dat_deces] as date) as dat_deces ,cast([dat_imm] as date) as dat_imm ,cast([dat_aj] as date) as dat_j ,[cod_position] ,YEAR(dat_imm) as

Re: Scaling Django

2016-02-06 Thread Dexter T.
Serge > > > +380 636150445 > skype: skhohlov > > On Sat, Feb 6, 2016 at 7:09 PM, Dexter T. <dext...@gmail.com > > wrote: > >> Lots of great replies already. >> I also want to add a few (random) things ... >> >> - have you clearly defined and is

Scaling Django

2016-02-06 Thread Dexter T.
Lots of great replies already. I also want to add a few (random) things ... - have you clearly defined and isolated what issue(s) are you facing? - you mentioned using DRF in a service, with a large JSON reponse taking seconds to finish, how did you troubleshoot/profile this? Seconds to process

Re: Creating a custom view in Django admin,

2010-05-28 Thread Dexter
an intermediary step before actually saving the object. In which I have a custom view? What I actually want is a multiple step saving process. Is that possible without ugly hacks? Thanks in advance. Grtz, Dexter On Thu, May 27, 2010 at 8:54 PM, chr <ch...@statesofpop.de> wrote: > On May 26

Creating a custom view in Django admin,

2010-05-26 Thread Dexter
the events in the admin. How can I make sure only the events coming (ie date__gte=datetime.now()) are displayed in the admin? Thanks in advance for your help. Greetings, Dexter -- You received this message because you are subscribed to the Google Groups "Django users" group. To post

Re: Sync user objects with sympa mailinglist

2010-05-19 Thread Dexter
Hi thanks for your replies, I couldn't run the django page on a different server, because I only have one VPS running. But I understand there isn't a way to catch "events" on a database update. Grtz, Dexter On Wed, May 19, 2010 at 3:43 PM, Daniel Hilton <daniel.hil...@gmail.com>

Re: Sync user objects with sympa mailinglist

2010-05-19 Thread Dexter
Hi, I'm just trying to run a mailinglist now, but when I set alias_manager in sympa.conf, I get the following error: unknown field: alias_manager in sympa.conf How should I set my alias_manager? Grtz, Dexter On Wed, May 19, 2010 at 1:02 AM, Dexter <a.essel...@gmail.com> wrote: >

Sync user objects with sympa mailinglist

2010-05-18 Thread Dexter
they use really vague, but I guess its powerful as well. Does anyone know how this is done? Grtz, Dexter -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubs

Re: One to One chat like Facebook?

2010-05-16 Thread Dexter
I don't know, but I guess you could easily make your own. Django and Comet would be a nice combination Grtz, Dexter On Sun, May 16, 2010 at 12:13 PM, Anand Agarwal <ananda...@gmail.com> wrote: > Hi All > > Is there any chat application in django similar to facebook chat? > &

Re: formsets and empty results

2010-05-15 Thread Dexter
Hey, Ik zou deze pagina even bekijken: http://docs.djangoproject.com/en/1.1/ref/forms/validation/#ref-forms-validation Grtz On Sat, May 15, 2010 at 7:34 PM, Wim Feijen wrote: > Hi all, > >

Re: Loading picasa photo's with syncr

2010-05-11 Thread Dexter
I now hacked it like this: updated = datetime(*strptime(album.updated.text[:-5], "%Y-%m-%dT%H:%M:%S")[:7]) not very pretty imho. But its stable, and I don't know a better way. Grtz, Dexter On Tue, May 11, 2010 at 12:02 PM, Dexter <a.essel...@gmail.com> wrote: > Hi e

Loading picasa photo's with syncr

2010-05-11 Thread Dexter
did not match format: data=2009-12-23T14:26:34.825Z fmt=%Y-%m-%dT%H:%M:%S.000Z Do you know how I can format the format so the .***Z is catched? Grtz, Dexter -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this

Re: Generic web-dev question: Best way to do a processing page?

2010-05-01 Thread Dexter
You could try to juggle with comet, but I wouldn't if its the best solution, Otherwise you could let them fill in an email address, and send the result to that emailaddress On Sat, May 1, 2010 at 2:22 PM, Joshua Russo wrote: > This is mainly just curiosity at the

Re: Django app svn management

2010-04-29 Thread Dexter
This was not really a feature request or how its really setup. But I wanted to know how the community thinks of this kind of development setup. I'm looking forward to your responses. Grtz, Dexter On Thu, Apr 29, 2010 at 4:10 PM, Dexter <a.essel...@gmail.com> wrote: > Hi the

Django app svn management

2010-04-29 Thread Dexter
of this? Grtz, Dexter -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For mo

Re: Distributing application

2010-04-29 Thread Dexter
their own django installation, and with that a python installation Grtz, Dexter On Thu, Apr 29, 2010 at 1:37 PM, Mag <magaw...@gmail.com> wrote: > I have been using Django and I like it a lot. > > I was wondering what is the best way to distribute my application? > Previously,

Re: How to return an audio file in django

2010-04-26 Thread Dexter
X-Sendfile doesn't work (yet), Although I got the ugly way working now. When I try to download it manually, it seems to be getting an empty file. even though I have set the Content-Length value. Any suggestions? Grtz, Dexter On Mon, Apr 26, 2010 at 9:24 PM, Dexter <a.essel...@gmail.com>

Re: How to return an audio file in django

2010-04-26 Thread Dexter
It doesn't seem to work very good. I'll read about X-Sendfile, don't know if it suits my purpose. On Mon, Apr 26, 2010 at 8:52 PM, Dexter <a.essel...@gmail.com> wrote: > I'm using both, > > I'm not familiar with X-Sendfile, > > But my situation is this: I have a folder wit

Re: how to display only one instance of an object returned by a query.

2010-04-26 Thread Dexter
Oops, wrong post On Mon, Apr 26, 2010 at 9:23 PM, Dexter <a.essel...@gmail.com> wrote: > It doesn't seem to work very good. > > > On Mon, Apr 26, 2010 at 8:53 PM, greatlemer <greatle...@googlemail.com>wrote: > >> > @G >> > >> > thanks f

Re: how to display only one instance of an object returned by a query.

2010-04-26 Thread Dexter
It doesn't seem to work very good. On Mon, Apr 26, 2010 at 8:53 PM, greatlemer wrote: > > @G > > > > thanks for that. the code im writing will wait til dev version becomes > > 1.2 so at least i know there is a way to do it in the next version. > > must check when 1.2

Re: How to return an audio file in django

2010-04-26 Thread Dexter
. Is this possible with X-Sendfile? TY Nick, I'll try this one. But I guess X-Sendfile is a better solution. Grtz, Dexter On Mon, Apr 26, 2010 at 8:43 PM, Christophe Pettus <x...@thebuild.com> wrote: > Another possibility, if you are using either Apache or Lighttpd, is the > X-Sendfil

How to return an audio file in django

2010-04-26 Thread Dexter
Hi there, I want to send an audio file via a django view, but I don't know how. This doesn't seem to work: return HttpResponse(open(song.path).read(), mimetype = "audio/mpeg") Can you guy's help me? Grtz, Dexter -- You received this message because you are subscribed to

Re: TemplateDoesNotExistError makes no sense

2010-04-12 Thread Dexter
AAh, Why didn't I think of that ><, Well, thank you very much. It works now. Grtz, Dexter On Mon, Apr 12, 2010 at 1:16 AM, Sam Lai <samuel@gmail.com> wrote: > On 12 April 2010 07:41, Dexter <a.essel...@gmail.com> wrote: > > I have problem's with 2 templates, th

Re: TemplateDoesNotExistError makes no sense

2010-04-11 Thread Dexter
, 2010, at 5:22 PM, David Zhou wrote: > > > On Sun, Apr 11, 2010 at 4:26 PM, Dexter <a.essel...@gmail.com> wrote: > > > >> I have a server running with primarily nginx and secundary apache2, > >> And I am getting an template error trying to bro

TemplateDoesNotExistError makes no sense

2010-04-11 Thread Dexter
Hi, I have a server running with primarily nginx and secundary apache2, And I am getting an template error trying to browse an app. It seems it cannot find a template, but it is certainly there, the runserver just works fine. Can anyone point me in a direction to look for, Thanks, Dexter

Re: Media Server

2010-04-02 Thread Dexter
Hi, I don't have any experience with lighthttpd, but I guess you shouldn't use django for serving your static files. You should redirect your domain.tld/media folder to your box using lighthttpd or apache. Grtz, Dexter On Fri, Apr 2, 2010 at 5:21 PM, Media Server setup <enpa...@gmail.com>

Re: Problem with defer

2010-02-23 Thread Dexter
Aah.. TY On Tue, Feb 23, 2010 at 9:46 PM, Daniel Roseman <dan...@roseman.org.uk>wrote: > > On Feb 23, 8:25 pm, Dexter <a.essel...@gmail.com> wrote: > > I want to stringify that objectList with only the name field in the > result. > > How can I achieve this? &g

Re: Problem with defer

2010-02-23 Thread Dexter
s additional queries, behind the scenes. > > On Mon, Feb 22, 2010 at 12:31 PM, Dexter <a.essel...@gmail.com> wrote: > > Oh, I'm sorry, > > > > no error appears, but the queryset returns the complete objects with all > the > > fields, not only the name field > >

Re: integration of non-sql

2010-02-23 Thread Dexter
You don't have to use the standard managers, You could search for a orm with MongoDB support. I can't see why the dev's should integrate support for such db. Grtz, Dexter On Tue, Feb 23, 2010 at 11:56 AM, Joan Miller <pelok...@gmail.com> wrote: > Will be there interation for non-sql

Re: Problem with defer

2010-02-22 Thread Dexter
Oh, I'm sorry, no error appears, but the queryset returns the complete objects with all the fields, not only the name field On Mon, Feb 22, 2010 at 6:30 PM, Daniel Roseman <dan...@roseman.org.uk>wrote: > On Feb 22, 5:15 pm, Dexter <a.essel...@gmail.com> wrote: > > Hi, &g

Problem with defer

2010-02-22 Thread Dexter
#print data > return HttpResponse(data) > > return HttpResponse("Operation not permitted!") > Thanks in advance. Grtz, Dexter -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this gro

Re: pushing messages on a webapp

2010-02-22 Thread Dexter
Hi there, I was wondering if it is possible to push messages to client side, or is the only possible way polling from client to server. Grtz, Dexter -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

Re: How add extra data to m2m-field before saving form?

2008-11-26 Thread dexter
This is the error i receive: 'EventForm' object has no attribute 'managers' --~--~-~--~~~---~--~~ 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

How add extra data to m2m-field before saving form?

2008-11-26 Thread dexter
I want to add 'request.user' to 'members' of an 'event' that the user creates. I have tried several different methods and googled without finding any correct solutions. Right now, code looks like this but still wont work: # views.py def new_event(request): if request.method == 'POST':

Re: In forms, how add dynamic initial values out of reach for clients?

2008-11-17 Thread dexter
I've already read that and can't get the first one working: instance = Instance(required_field='value') form = InstanceForm(request.POST, instance=instance) new_instance = form.save() In my case, shouldn't it look like this: user = request.user discussion =

In forms, how add dynamic initial values out of reach for clients?

2008-11-16 Thread dexter
I want logged in users to be able to add comments but only want some of the formfields displayed. Fields 'user', 'date' and 'discussion' should be out of reach for my sitevisitors/clients. #models.py: class Comment(models.Model): user = models.ForeignKey(User) date =

Sort querysets by their data attribute values

2008-11-06 Thread dexter
I have a queryset which I have looped thru and added a (temporary) data attribute to each instance. Now I would like to order the queryset by the value of the data attributes. If I do it like this: sorted(queryset, key=lambda x: x.data_attr) the queryset turns into a list and I can't use it