Re: ATOMIC_REQUESTS setting not working

2015-09-10 Thread EJ
Small update: Wrapping the view function with *@transaction.atomic* fixes the issue -- the queries execute in a transaction as expected. So I guess my immediate problem is resolved. If anyone has an idea, I'd still love to know why the view is ignoring the top-level TRANSACTION_ATOMIC setting.

ATOMIC_REQUESTS setting not working

2015-09-10 Thread EJ
Hi All, I have ATOMIC_REQUESTS set to True in my database configuration: DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'abcd', 'USER': 'user', 'PASSWORD': '', 'HOST': '', 'PORT': '', 'ATOMIC_REQUESTS': True, } } But I started getting the following error

Multiple cache definitions all pointing to the same Redis instance. Is this okay?

2015-09-08 Thread EJ
on every page view? Are there any other downsides to this kind of setup? Or alternative ways of 'versioning' groups of keys? Thanks in advance. - EJ CACHES = { 'default': { "VERSION": 1, "BACKEND": "django_redis.cache.RedisCache&quo

Re: Removing the 'site' (not the website/url) field from django-comments

2010-09-28 Thread EJ
Hi Tim, Good idea, but that won't work unfortunately as we use the 'Site' functionality between the 40-odd sites. Thanks though! Ethan On Sep 28, 7:50 pm, "Tim Sawyer" wrote: > > Hi all, > > > I'm trying to have comments on my sites shown on all other sites, as I > > have a 'mobile' skin for m

Removing the 'site' (not the website/url) field from django-comments

2010-09-27 Thread EJ
Hi all, I'm trying to have comments on my sites shown on all other sites, as I have a 'mobile' skin for my site on a separate domain and site_id. So for example: Joe posts a comment on http://www.site1.mydomain.com Mary goes to http://www.mobilesite.mydomain.com and can see and respond to Joe's

Re: Directory structuring

2010-06-05 Thread EJ
Hi guys, thanks a lot for your help! Dmitry Dulepov wrote: > > a) It's not the standard.  I've looked around at subversion repository > > tutorials but can't seem to wrap my head around applying that to our > > software. > > Why not the standard? Many large companies do it the same way as you do.

Directory structuring

2010-06-03 Thread EJ
Hi guys, first of all: Thanks! Django-users has been a great resource for me so far; I've come across many solutions for my own problems here. I'm not even really sure if this question is totally appropriate for this page, but here goes: I'm a new developer working on a small social networking we