Django distributed memcached handling when server in cluster goes offline

2015-09-14 Thread LiteWait
I've got Django/memcached running in a 4 web server configuration on AWS. In settings.py each web server has (of course) a list of all the IPs participating in the memcached cluster. What I am noticing is when a server goes offline, all requests slow to a complete crawl presumably because

Re: Serving / out of static directory, /api for Django DRF services (development/runserver/DEBUG mode)

2015-04-22 Thread LiteWait
gt; >>> >> >> On Wed, Apr 22, 2015 at 11:06 AM, Bill Freeman <ke1...@gmail.com >> > wrote: >> >>> Are css and js subdirectries of apps as implied by the (as received) >>> indentation of your message? Note that your "other" url

Re: Serving / out of static directory, /api for Django DRF services (development/runserver/DEBUG mode)

2015-04-22 Thread LiteWait
-4, LiteWait wrote: > > I have no clue why this works, but I added the /client directory (full > path) to STATICFILE_DIRS and... > > from django.conf import settings > if settings.DEBUG: > urlpatterns += patterns( > 'django.contrib.staticfiles.views', >

Re: Serving / out of static directory, /api for Django DRF services (development/runserver/DEBUG mode)

2015-04-21 Thread LiteWait
'document_root', and you may want it's document_root to be different to > avoid serving the home page at two urls). > > On Tue, Apr 21, 2015 at 1:56 PM, LiteWait <t...@toogopos.com > > wrote: > >> Planning to host the client side of our application in production from

Runserver/DEBUG only, serve / from static directory

2015-04-21 Thread LiteWait
I have the need in runserver/debug mode to map http://127.0.0.1:8000/ out of a static /client directory. Django will only serve up pages from /api which a DRF REST services. I can't seem to find a way to create the URL mapping for this. It seems

Serving / out of static directory, /api for Django DRF services (development/runserver/DEBUG mode)

2015-04-21 Thread LiteWait
Planning to host the client side of our application in production from a proxy to an S3 site from Nginx. The problem is we'd like to mimic this behavior by serving / in Django runserver using a static directory url() entry. I've read over

simple translation not working

2013-10-30 Thread LiteWait
Django 1.5 I am just testing that translation is working. I generated /locale/es/LC_MESSAGES/django.po|mo I added LOCALE_PATHS as 'locale' I set my LANGUAGE_CODE = "es-ES" Admin site is in Spanish, however my translations are not working. What am I missing here? Thanks. -- You received