Django: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Zeile 29: | Zeile 29: | ||
==Internationalization== | ==Internationalization== | ||
+ | * [https://docs.djangoproject.com/en/1.5/topics/i18n/translation/#how-django-discovers-translations How Django discovers translations] | ||
* Create or update message files: | * Create or update message files: | ||
** django-admin.py makemessages -l de | ** django-admin.py makemessages -l de |
Version vom 4. Juli 2013, 13:11 Uhr
Django - a high-level Python Web framework that encourages rapid development and clean, pragmatic design.
Aptana Configuration
- Win-Preferences->PyDev->Editor->Code Completeion: Apply completion on '.' and '('
Tutorials
Style Guides
Configure with PyCharm
Databases
- Install Databases
~/.environments/<PROJEKT>env/bin/pip install -r requirements.txt
Migrations
- Migrate on change of requirements.txt, e.g. new tables are added.
- <ENV> manage.py migrate
- Migrate on model change:
- manage.py schemamigration app_name --auto
- manage.py migrate app_name
- Django database migration tool: south, explained
Internationalization
- How Django discovers translations
- Create or update message files:
- django-admin.py makemessages -l de
- Compile all:
- bash compilemessages.sh