coderedcms icon indicating copy to clipboard operation
coderedcms copied to clipboard

Standard CodeRed CMS install .gitignore standard django Localize files

Open esandorfi opened this issue 6 years ago • 2 comments

Using standard CodeRed CMS install, you have .gitignore from project_templates with

# Translations
*.mo

Of course, using django compilemessages and makemessages generate a .mo files for each language. Don't forget to comment this line before your git deploy or it won't work.

esandorfi avatar Aug 22 '19 16:08 esandorfi

Would it be a best practice to include the .mo files in your repo? If so we can remove that line from the gitignore. Or do they get generated from a source file that should be included instead?

vsalvino avatar Aug 22 '19 16:08 vsalvino

Best pratices I think is to remove it from .gitignore. As normal django behaviour is to use the .mo/.po files as a standard configuration. So you do not broke it by default.

esandorfi avatar Aug 22 '19 19:08 esandorfi