#10765: Problem with translations when the settings module is a folder -----------------------------------------------+---------------------------- Reporter: vbmendes | Owner: nobody Status: new | Milestone: Component: Uncategorized | Version: 1.0 Keywords: translation settings project path | Stage: Unreviewed Has_patch: 0 | -----------------------------------------------+---------------------------- My settings module is a folder with some kind of organization, to make things more clean and mantainable. The fact is that django allways gets the project path by the settings module path, so my project path is always wrong: real_project_path/settings.
When I try to create my own translations in my project, django don't recognize it, becouse it looks in real_project_path/settings/locale instead of real_project_path/locale. I make a very simple patch that fixes this problem, but the better way is to create a simple constant to store the project path. Maybe settings.PROJECT_ROOT_PATH, or something like this. I already have this constant in all my projects, and know of many people with this same practice. -- Ticket URL: <http://code.djangoproject.com/ticket/10765> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/django-updates?hl=en -~----------~----~----~----~------~----~------~--~---
