Skip to content

radzhome/django-translation-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

django-translation-demo

A simple demo of the translation in django, both dynamic (db) and static text.

pip install Django==5.0.2
python3 manage.py migrate
python3 manage.py makemessages -l fr
python3 manage.py compilemessages
python3 manage.py runserver
# Now browse the site
http://127.0.0.1:8000/fr/dual-lang/dual_language/
http://127.0.0.1:8000/en/

create super user

echo "from django.contrib.auth import get_user_model; User = get_user_model(); User.objects.filter(username='admin').exists() or User.objects.create_superuser('admin', '[email protected]', 'adminpass')" | python manage.py shell

About

localization, translation, internationalization demo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published