My site structure looks like this:
project
--apps
----app1
----app2
--docs
--templates
----module1
----module2
----module3
how can I run
django-admin.py makemessages --locale=en
on all apps and template dirs but leave out module1 and module3?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I have written a short script to iterate over the folders in my project directory and create translations if the folder contains a locale folder. The script which can be easily modified to exclude apps/directories if required
My project folder structure is
This script (
run_makemessages.py) lives in theProjectfolderand is called with
python run_makemessages.py– ie it’s called directly and doesn’t use django-admin or manage.py