Django datetime localisation by user session

2014-09-17 Thread Philip Goh
Hello, I'm trying to localise the date time format in my product so that it appears in the UK format of DD/MM/ HH:MM by default unless the user explicitly changes it to the US format of MM/DD/ HH:MM. I've got a number of modal forms that contain a `DateTimeField` and I've overridden th

Dynamic database routing in Django

2014-03-12 Thread Philip Goh
Hello list, In my database, I have a `Customer` table defined in my database that all other tables are foreign keyed on. class Customer(models.Model): ... class TableA(models.Model): Customer = models.ForeignKey(Customer) ... class TableB(models.Model):

Re: django user (using django ORM) + SQLAlchemy for other db tables

2014-03-12 Thread Philip Goh
On Tuesday, 10 September 2013 20:31:20 UTC+1, Avraham Serour wrote: > > so again I question why? what exactly do you need in SQLAlchemy? also > what's so special about django auth? you could easily create your own > custom auth relying on SQLAlchemy. > I'm in a similar situation as I have an a

Re: PostgresSQL or MySql with django?

2013-03-18 Thread Philip Goh
They're much of a muchness. I've favoured Postgres because it seems more straightforward as there aren't multiple distributions and crucially multiple storage engines to worry about. In MySQL's favour, Amazon RDS makes it incredibly simple to set up a scalable and reliable database so bear that

Re: Session values (occasionally) not being persisted

2013-03-18 Thread Philip Goh
On Monday, 18 March 2013 15:11:10 UTC, Shawn Milochik wrote: > > Do you have SESSION_SAVE_EVERY_REQUEST enabled? > > > https://docs.djangoproject.com/en/1.4/topics/http/sessions/#session-save-every-request > > I currently do not have it enabled. I have tried enabling it and it did not make an

Session values (occasionally) not being persisted

2013-03-18 Thread Philip Goh
Dear list, This is a question that was asked on Stackoverflow more than a week ago, but I haven't had an answer so I am posting this to the Django mailing list as well. http://stackoverflow.com/questions/15338103/django-session-values-occasionally-not-persisted