[Answer]-Not Able to create django.po

1πŸ‘

βœ…

I think there is a problem with your template directory structure. Django template loader is looking for a directory called β€œtemplates” within your app.

Your templates are located under core/login_register/, so django can’t find them.

You can use the following structure for your templates :

└── yourapp
    └── templates
        └── yourapp 
            β”œβ”€β”€ base.html
            └── index.html

This way, django will find your templates, and you’ll even be able to override these templates in other apps :

└── yourapp
    └── templates
        └── yourapp 
            β”œβ”€β”€ base.html
            └── index.html
└── anotherapp
    └── templates
        └── yourapp 
            β”œβ”€β”€ base.html # it will override the template yourapp/templates/yourapp/base.html

It’s a common structure for django projects.

πŸ‘€Agate

Leave a comment