The purpose of this page is to help developers setting up django-hotsauce as a development platform for building scalable web apps.

Prerequirements

List of initial softwares required for a minimal install:

Useful environment variables for development and production sites

DJANGO_HOME

Location (path) where Django is installed.

Ie:

export DJANGO_HOME=/usr/local/share/django-somerev

DJANGO_SETTINGS_MODULE

Set this to the global Django settings module for this app.

Examples

Good:

DJANGO_SETTINGS_MODULE='local_settings'
export DJANGO_SETTINGS_MODULE

Bad:

export DJANGO_SETTINGS_MODULE='mysite.local_settings'

Bad:

export DJANGO_SETTINGS_MODULE='mysite.settings'

SCHEVO_OPTIMIZE

Set to '1' to allow optimizing the Schevo based ORM.

Ie:

export SCHEVO_OPTIMIZE=1

XDSERVER_ROOTDIR

Location (path) where Durus db files are stored. Ie:

export XDSERVER_ROOTDIR=/var/db/blogengine

System-wide rc config for Django (/etc/djangorc)

To distribute your standard Django configuration over multiple systems, copy the file djangorc.sample to /etc/djangorc for a system-wide install.

Recommended usage, to run the HTTP server in development mode using tools/httpserver.py (wsgiref):

source /etc/djangorc
cd /srv/mysite.com
which httpserver.py
/usr/local/bin/httpserver.py
echo $DJANGO_HOME
/usr/local/share/django/django-r13404
httpserver.py --settings $DJANGO_SETTINGS_MODULE mysite

Development

CPython

Python 2.7.9 is the best Python interpreter version to use with notmm.

Python 3.x is not currently supported.

(!) You may remove --without-pymalloc if debugging the Python interpreter with Valgrind. Otherwise using --with-pymalloc is recommended.

FreeBSD

LLVM

just another Wiki: DjangoHotSauce/GettingStarted (last edited 2017-03-12 10:48:06 by EtienneRobillard)