Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8233451
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T18:08:09+00:00 2026-06-07T18:08:09+00:00

My site structure looks like this: project –apps —-app1 —-app2 –docs –templates —-module1 —-module2

  • 0

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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T18:08:11+00:00Added an answer on June 7, 2026 at 6:08 pm

    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

    Project
    --App1
    ----locale
    --App2
    ----locale
    --ProjectRoot - settings.py file is in ProjectRoot folder
    ----locale
    etc
    

    This script (run_makemessages.py) lives in the Project folder

    import os
    project_root = "/path/to/your/Project"
    dirs = os.listdir(project_root)
    for app in dirs:
        app_path = os.path.join(project_root, app)
        locale_path = os.path.join(app_path, "locale")
        if(os.path.exists(locale_path)): #modify this condition for exclusion of specific folders
            os.chdir(app_path)
            os.system("django-admin.py makemessages -a --no-wrap")
    

    and is called with python run_makemessages.py – ie it’s called directly and doesn’t use django-admin or manage.py

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My site structure looks like this: - top-level site --sub-site ---page ---page --sub-site ---page
The structure looks like this: <form> ... some stuff ... file select ... some
I have a site with this simple structure: \public_html {files}.php \files \es For the
Here's what my model structure looks like: class Visitor(models.Model): id = models.AutoField(primary_key=True) class Session(models.Model):
What is a clean way to convert an array that looks like this: [584]
I have two dataframes; one is 48 rows long and looks like this: name
I have many static images under a directory in my site structure, and I'm
For our CMS we have a site manager that defines the site's tree structure
I have my URL structure as www.site.com/listings/232-real-estate where 232 is the category ID and
I have a site where the pages have the following structure: <?php include('header.php'); ?>

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.