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
cd /var/www-private/django/ django-admin startproject tiaTest
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()
<VirtualHost *:80> ServerName localhost ServerAlias 127.0.0.1 # ... WSGIScriptAlias /django/tiaTest/ /var/www-private/django/tiaTest/tiaTest.wsgi # ... </VirtualHost>
# ... TIME_ZONE = 'Europe/Budapest' LANGUAGE_CODE = 'hu-hu' # ...