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

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 https://docs.djangoproject.com/en/1.4/howto/static-file

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 https://docs.djangoproject.com/en/dev/howto/st

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

2015-04-21 Thread LiteWait
> that specifies a path in the extra parameters dictionary (where you have > '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 > > wrote: > >&

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

2015-04-22 Thread LiteWait
M UTC-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.view

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

2015-04-22 Thread LiteWait
x27;, 'apps/css/style.css') # >> Does not match >> >>> re.match(r'^(?P(?:js|css|img)/.*)$', 'apps/another.html')# >> Does not match >> >>> re.match(r'^(?P(?:apps|js|css|img)/.*)$', 'apps/another.htm

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 Dja