Re: Django 1.8 - It translates or it falls back when it should'nt...

2015-09-23 Thread PyMan
Oh shame on me! I had this problem may years ago.here I go with the ugettext_lazy http://stackoverflow.com/questions/2694798/django-form-and-i18n/2694847#2694847 Il giorno mercoledì 23 settembre 2015 14:23:38 UTC+2, PyMan ha scritto: > > Hi, > I'm using django 1.8.4 with these

Django 1.8 - It translates or it falls back when it should'nt...

2015-09-23 Thread PyMan
Hi, I'm using django 1.8.4 with these settings LANGUAGE_CODE = 'en' ugettext = lambda s: s LANGUAGES = ( ('it', ugettext('LANG_ITALIANO')), ('en', ugettext('LANG_INGLESE')), ) LOCALE_PATHS = ( 'C:/path1/locale', 'C:/path2/locale', ) In

Re: After posting an ajax login form successfully, randomly user is still anonymous

2014-05-13 Thread PyMan
Anyone? -- 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 an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to

After posting an ajax login form successfully, randomly user is still anonymous

2014-04-29 Thread PyMan
Hello to everyone. I'm experiecing a weird problem. I have an ajax form used to log users in, with username and a password and I use the jquery ajax form plugin. The django view is more or less like many others you can see everywhere: given the right username and password I call the

HY010 Function sequence error (mssql django-pyodbc)

2011-09-26 Thread PyMan
Hi guys, I'm experiencing a problem with ODBC driver. I'm quite sure is not a django problem, but I'm posting here 'cause maybe someone can help me. I'm using Python 2.6, Django 1.2.0, pyodbc 2.1.7, django-pyodbc (not the last version, but it's ok for this django version). In the settings the

Re: default_if_none as settings (??)

2010-12-13 Thread PyMan
Oohh yes! That is what I was looking for. Still thanks! As you said it's not working exactly how I use to rememeber...but it's ok! :) On 13 Dic, 14:15, bruno desthuilliers <bruno.desthuilli...@gmail.com> wrote: > On 13 déc, 10:00, PyMan <claudio.marino...@rsoft.it> wrote: > &

default_if_none as settings (??)

2010-12-13 Thread PyMan
Maybe I'm wrong but I remember about a setting whose I don't remember the name...acting like a default for default_if_none where default_if_none was not used. Example: {{ value }} <-- I forgot about using the "default_if_none" filter If the setting I'm talking about is defined then its value is

Re: Different logins in same browser session and login_required

2010-10-20 Thread PyMan
> > > It shouldn't happen, but it could. It's an office or it's a warehouse, > > people could work with the same user and/or (above all) people may > > work on the same machine...so they should pay attention on what they > > do...but even no. > > > Just an example when the problem can occurs: > >

Re: Different logins in same browser session and login_required

2010-10-20 Thread PyMan
On 20 Ott, 10:28, Daniel Roseman <dan...@roseman.org.uk> wrote: > On Oct 20, 8:11 am, PyMan <claudio.marino...@rsoft.it> wrote: > > > > Firefox has long had its "profile" functionality. > > > > firefox -no-remote -ProfileManager > > > >

Re: Different logins in same browser session and login_required

2010-10-20 Thread PyMan
> > Firefox has long had its "profile" functionality. > > firefox -no-remote -ProfileManager > > You can create multiple firefox profiles, then run multiple instances of > firefox at once - so long as you use different profiles for them.  A bit > fiddly, but obviously useful for

Different logins in same browser session and login_required

2010-10-19 Thread PyMan
Hi guys, I need some help about logins and session and any help would be much appreciated :) This is the scenario: * Django 1.2.0 * Firefox (but I think any browser too) This the steps: 1) In the same computer (so in the same browser session) I have two browser windows "W1" and "W2" where the

Re: DjangoUnicodeDecodeError sqlserver latin-1

2010-03-01 Thread PyMan
up, anyone? -- 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 more options, visit

DjangoUnicodeDecodeError sqlserver latin-1

2010-02-26 Thread PyMan
Hi guys I'm having a problem with encoding (the bad beast :D ). I'm using django 1.1.1, sqlserver 2005 with charset latin1, sql_server.pyodbc as DATABASE_ENGINE Here's my model-like: class MgArtbase(models.Model): cod_art = models.TextField(primary_key=True) des_articolo =

How to set the CURRENT_TIMESTAMP in a datetime field

2009-03-30 Thread PyMan
Hi all guys. I tried to look for around a way to set a datetime field with the CURRENT_TIMESTAMP value. I found nothing useful. Did I miss anything? Imagine some processes running on parallel servers: what when one process has to set a datetime field to "now" where "now" MUST BE set using the

Insert vs. Update

2007-07-23 Thread PyMan
Can anyone tell me why Django do this while using save()? : 1) do select 2) if found do update 3) else do insert In both case (insert or update) it ends in 2 steps. It could be so : 1) Do insert 2) If ok then stop (1 step) 3) else if error because of PK's dupkey then do update (2 step only in