blob: ebb58175b14fc6c60e73f8e2d10bc1cb79d88afe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# Make a migration
change model in models.py
python manage.py makemigrations
python manage.py migrate
#Django source code
python -c "import django; print(django.__path__)"
# Enable virtual env:
mkvirtualenv --python=/usr/bin/python3 oscar
# Don't forget to install
pip install django
# Run dev server
python manage.py runserver 127.0.0.1:8000
# tinymce for django
https://github.com/romanvm/django-tinymce4-lite
# For create a .po file for translation
# first create a locale folder in module folder or edit LOCALE_PATH in conf file
# run command for generate the file
django-admin makemessages -l fr
# update the file if there are new translation
django-admin makemessages -l fr
# compil translations files
django-admin compilemessages
|