Mercurial > personas_backend
changeset 116:ae03ae3d91e9
We're no longer hard-coded to only serve the en-US locale; however, no localization is currently being done, we're just pointing any locales to en-US, essentially.
author | avarma@sm-labs01.mozilla.org |
---|---|
date | Fri, 28 Mar 2008 19:10:24 -0700 |
parents | a1e344b3c064 |
children | a8305e2ea47b |
files | PersonasBackend/personas/urls.py |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/PersonasBackend/personas/urls.py Fri Mar 28 19:03:13 2008 -0700 +++ b/PersonasBackend/personas/urls.py Fri Mar 28 19:10:24 2008 -0700 @@ -2,10 +2,13 @@ urlpatterns = patterns('', # JSON feeds - url(r'^en-US/personas_categories.dat$', + + # TODO: Replace the '.+' at the beginning of these with + # a real regexp that conveys the locale to the view. + url(r'^.+/personas_categories.dat$', 'PersonasBackend.personas.json_feeds.categories', name='personas-categories-json'), - url(r'^en-US/personas_all.dat$', + url(r'^.+/personas_all.dat$', 'PersonasBackend.personas.json_feeds.personas', name='personas-all-json'),