Re: Writing tests for a custom auth

2014-10-11 Thread Valery Melou
='auth.ExtensionUser') as you suggested. Thanks again. Le samedi 11 octobre 2014 00:49:51 UTC+1, Russell Keith-Magee a écrit : > > Hi Valery, > > We don't currently ship an integration test to validate your custom User > model, for two reasons: > > 1) The requirements for a User

Writing tests for a custom auth

2014-10-10 Thread Valery Melou
Hi everybody. I'm creating a custom auth user model to remove 'first_name' and 'last_name' attributes from the default one and to make the 'email' field required and unique. I would like to know which tests I'm supposed to write to make sure that my model support each feature of the default

How to make the authorized cross-domain AJAX-requests with Django as AJAX-server backend?

2009-06-15 Thread Valery
could hardly be used because the pages from http://*-3rd-party-site.tld have their domains other than my Django-site, so I should forget about cookies. So, how to get through? regards Valery --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: Troubles after switching to WSGI: lost apache processes, multiple view func calls per HTTP request

2009-05-27 Thread Valery Khamenya
thankful for the link, it is indeed interesting, I am likely to return to that. best regards -- Valery A.Khamenya On Wed, May 27, 2009 at 11:42 PM, Graham Dumpleton < graham.dumple...@gmail.com> wrote: > > > > On May 28, 5:42 am, Valery Khamenya <khame...@gmail.com> wrote:

Re: Troubles after switching to WSGI: lost apache processes, multiple view func calls per HTTP request

2009-05-27 Thread Valery Khamenya
Hi Karen, I appreciate very much your reply, thank you. the line is injected, it does logging fine, let's wait for the next occurrence. (yep, things are not reproducible) best regards -- Valery A.Khamenya On Wed, May 27, 2009 at 5:51 PM, Karen Tracey <kmtra...@gmail.com> wrote: > On

Re: Troubles after switching to WSGI: lost apache processes, multiple view func calls per HTTP request

2009-05-27 Thread Valery Khamenya
multiple calls. How can I register those multiple calls? Easily, I send only one single email notification per veiw function call, but I receive multiple emails after one HTTP-request. best regards -- Valery A.Khamenya On Wed, May 27, 2009 at 4:09 PM, Karen Tracey <kmtra...@gmail.com>

Re: Troubles after switching to WSGI: lost apache processes, multiple view func calls per HTTP request

2009-05-27 Thread Valery Khamenya
Hi Graham, I do not do touch anymore. However multiple view func calls per single HTTP-request still happen. best regards -- Valery A.Khamenya On Wed, May 27, 2009 at 1:47 PM, Graham Dumpleton < graham.dumple...@gmail.com> wrote: > > > > On May 27, 9:11 pm, Valery <kham

Re: Troubles after switching to WSGI: lost apache processes, multiple view func calls per HTTP request

2009-05-27 Thread Valery
c) No one got the same? regards Valery On May 15, 1:55 am, Graham Dumpleton <graham.dumple...@gmail.com> wrote: > On May 14, 11:08 pm, Valery <khame...@gmail.com> wrote: > > > By the way, regarding the 30 func calls per HTTP request you'd mean > > it is a bare conflic

Re: Troubles after switching to WSGI: lost apache processes, multiple view func calls per HTTP request

2009-05-14 Thread Valery
o' as > explained in: >  http://code.google.com/p/modwsgi/wiki/DebuggingTechniques > Then you need to work out what the process is perhaps hanging on. OK, I'll do. By the way, regarding the 30 func calls per HTTP request you'd mean it is a bare conflict WSGI vs mod_python? Kind regards Valery --~

Troubles after switching to WSGI: lost apache processes, multiple view func calls per HTTP request

2009-05-14 Thread Valery Khamenya
are purely Pinax-related, but if so, I am sorry. Best regards -- Valery A.Khamenya --~--~-~--~~~---~--~~ 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

Re: How to keep the translations for the templates from different applications separately?

2009-04-11 Thread Valery
for those who is interested, the issue is solved: http://groups.google.com/group/pinax-users/browse_thread/thread/58d45dab96840ee5/0f62760ab5223b2e regards valery On Apr 7, 8:27 pm, Valery <khame...@gmail.com> wrote: > Hi > > no answers... does it mean that it is impos

Re: How to keep the translations for the templates from different applications separately?

2009-04-07 Thread Valery
Hi no answers... does it mean that it is impossible in Django to separate the template translations from different applications?.. regards, Valery On Apr 4, 7:07 pm, Valery <khame...@gmail.com> wrote: > Hi > > How could one keep the translations for the templates from d

How to keep the translations for the templates from different applications separately?

2009-04-04 Thread Valery
S to point to myproject/templates/application-N/ locale/ where the translations are stored (this didn't work for me) P.S. In fact I have cross-posted this question from pinax-user group regards Valery --~--~-~--~~~---~--~~ You received this message because you are

Re: one symbol "i" causes the template system to raise an exception

2008-09-19 Thread Valery Khamenya
the "lng" variable. 3. guys I could now even believe you can predict the end of the world's financial crisis :D thanks best regards -- Valery On Fri, Sep 19, 2008 at 9:52 AM, Daniel Roseman < [EMAIL PROTECTED]> wrote: > > On Sep 19, 5:02 am, "Karen Tracey" <[

one symbol "i" causes the template system to raise an exception

2008-09-18 Thread Valery Khamenya
hen things are OK. I am puzzled. Any comments? best regards -- Valery [18/Sep/2008 23:34:58] "GET / HTTP/1.1" 200 18 [18/Sep/2008 23:34:58] "GET /i HTTP/1.1" 301 0 Traceback (most recent call last): File "/usr/lib/python2.5/site-packages/django/core/servers/basehttp.py

Re: How to switch/force a language from inside a usual view function?

2008-07-18 Thread Valery Khamenya
Hi Malcolm, it worked out, many thanks for the great help! best regards -- Valery --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to dj

Re: How to switch/force a language from inside a usual view function?

2008-07-17 Thread Valery
d be applied to the current single HTTP-request (for a given URL) only. I start to believe that it is impossible to control translation language of a view from inside of view functions. Although I wouldn't find this as a very odd use case. Regards Valery --~--~-~--~~~---~--~~

Re: [i18n] How to switch/force a language from inside a usual view function?

2008-07-17 Thread Valery Khamenya
e to apply this language change only for the given HTTP request to the give URL not for all... Thanks in advance for any further hints. Best regards -- Valery --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups &qu

[i18n] How to switch/force a language from inside a usual view function?

2008-07-16 Thread Valery
language should be taken inside of a regular view function. My view function is very simple: def myview(request,lng, myval): return render_to_response('mytemplate.html', { 'myvar' : myval}) How could it be done (if at all) ? Thanks Valery --~--~-~--~~~---~--~~ You

Re: how to create many records in a single transaction (or in a few transactions)?

2008-04-07 Thread Valery
Hi thanks, it worked out :) regards Valery On Apr 4, 2:04 pm, sector119 <[EMAIL PROTECTED]> wrote: > http://www.djangoproject.com/documentation/transactions/ > > On 4 Кві, 13:54, Valery <[EMAIL PROTECTED]> wrote: > > > Hi all, > > > what is the us

how to create many records in a single transaction (or in a few transactions)?

2008-04-04 Thread Valery
this in the docs. thanks in advance, regards Valery --~--~-~--~~~---~--~~ 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,

Re: is Django OK for parallelized computations?

2008-04-02 Thread Valery
ot;. It is difficult to separate queries and these "sleepy" actions, but on the high level devide this soup into 10 or 20 parts is no problem at all from algorithmic point of view. Just Django won't allow me to query the DB via same Model object from different processes... Regards, Val

Re: UPDATE: is Django OK for parallelized computations? (both psql and mysql won't work when parallelized)

2008-04-02 Thread Valery
it is all strange, because even if i have 2 working streams then I have a problem, but when I use the same parallelized framework and limit calculations to 1 stream (also pickleing, but no parallelization) then everything is OK. Any comments? Regards, Valery On Apr 2, 11:16 am, Valery <[EM

Re: is Django OK for parallelized computations?

2008-04-02 Thread Valery
way, maybe Django's DB Model isn't much compatible with serialization à lá pickle module? Regards Valery On Apr 2, 10:46 am, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Wed, 2008-04-02 at 01:21 -0700, Valery wrote: > > Hi > > > did anyone here use Django in parallelized computa

Re: do Django's models support the aggregated database views?

2008-04-02 Thread Valery
Hi Malcolm, thank you for the answer. I simply re-created my SQL VIEWs with fake/ dummy primary keys and Django became happy with it :) Regards Valery P.S. Sorry, that I have found your answer so late, google's interface to groups doesn't allow intuitively to set up notifications. On Mar 24

is Django OK for parallelized computations?

2008-04-02 Thread Valery
comments are very welcome! Regards, Valery --~--~-~--~~~---~--~~ 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 g

do Django's models support the aggregated database views?

2008-03-24 Thread Valery
s are very welcome! Regards Valery --~--~-~--~~~---~--~~ 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