Django: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Zeile 48: | Zeile 48: | ||
* https://code.djangoproject.com/wiki/DjangoFriendlyWebHosts | * https://code.djangoproject.com/wiki/DjangoFriendlyWebHosts | ||
** http://locum.ru/public/hosting | ** http://locum.ru/public/hosting | ||
+ | |||
+ | ==Apps in Django== | ||
+ | * [http://marakana.com/s/post/1505/learn_how_disqus_does_it_when_it_is_not_django_python_video Disqus] | ||
[[Category: Software]] | [[Category: Software]] |
Version vom 14. Juli 2013, 14:18 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
If you have problems with translating strings:
- read How Django discovers translation https://docs.djangoproject.com/en/1.5/topics/i18n/translation/#how-django-discovers-translations
- Define in your settings.py to make sure that strings are first read from the directory defined by you:
- BASEPATH = realpath(join(dirname(_file), '..'))
- LOCALE_PATHS = (
- join(BASE_PATH, 'locale'),
- )
- Stackoverflow: http://stackoverflow.com/questions/1832709/django-how-to-make-translation-work?rq=1