====== Django ======
* https://docs.djangoproject.com/en/dev/howto/deployment/wsgi/modwsgi/
* https://docs.djangoproject.com/en/1.2/howto/deployment/modwsgi/
* https://www.digitalocean.com/community/articles/using-mod_wsgi-to-serve-applications-on-ubuntu-12-04
* https://www.digitalocean.com/community/articles/installing-django-on-ubuntu-12-04--4
==== Apache2-vel =====
- Telepítés:
apt-get install python-imaging python-pythonmagick python-markdown python-textile python-docutils
apt-get install python-django libapache2-mod-wsgi
# MySQL támogatással
apt-get install python-mysqldb
- Dummy projekt összelövése:
cd /var/www-private/django/
django-admin startproject tiaTest
- WSGI config:
import os
import sys
sys.path.append('/var/www-private/django/tiaTest')
os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()
- WSGI beállítása az Apache site-ban:
ServerName localhost
ServerAlias 127.0.0.1
# ...
WSGIScriptAlias /django/tiaTest/ /var/www-private/django/tiaTest/tiaTest.wsgi
# ...
- Mostmár megy a default oldal, de állítsuk be a site-ot:
# ...
TIME_ZONE = 'Europe/Budapest'
LANGUAGE_CODE = 'hu-hu'
# ...