You can have local customizations in the local_settings.py file. Optionally set DEBUG option to False.

# vi local_settings.py

Build nuages database

# cd /usr/local/lib/nuages

# ./manage.py syncdb

# ./manage.py collectstatic

# vi /usr/local/lib/nuages/nuages/local_settings.py

There are several ways to configure Apache and python, we recommend wsgi, simply install libapache2-mod-wsgi, and add the following to /etc/apache2/sites-available/nuages

There are several ways to configure Apache and python, we recommend wsgi, simply install libapache2-mod-wsgi, and add the following to /etc/apache2/sites-available/nuages, replacing ServerName accordingly.

<VirtualHost *:80>

ServerName localhost.locadomain

Alias /static/ /usr/local/lib/nuages/staticroot/

WSGIScriptAlias / /usr/local/lib/nuages/apache/django.wsgi

WSGIScriptAlias / /usr/local/lib/nuages/nuages/wsgi.py

WSGIPythonPath /usr/local/lib/nuages

<Directory /usr/local/lib/nuages/apache>

Order allow,deny

Allow from all

<Directory /usr/local/lib/nuages/nuages>

<Files wsgi.py>

Order deny,allow

Allow from all

</Files>

</Directory>

<Directory /usr/local/lib/nuages/staticroot>

...

...

@@ -93,13 +90,11 @@ There are several ways to configure Apache and python, we recommend wsgi, simply

</VirtualHost>

Adapt the path in file apache/django.wsgi

Set permission for apache user

Build database, collect static files and set permissions:

sudo chown -R www-data /usr/local/lib/nuages

# make update

Set domain name: login to /admin/sites/site/1/ and modify the entry from "example.com" to your domain name.

Set domain name: Point your browser to /admin/sites/site/1/ and modify the entry from "example.com" to your domain name.

Email Service

=============

...

...

@@ -118,20 +113,19 @@ Another option is to add attributes in settings.py, this make email work only wh

Update

======

In order to update your nuages installation, you can issue:

In order to update your nuages installation:

# make update

Migration

=========

When models change, we need to perform some manual steps to keep existing data:

When models change, we need to perform some manual steps to keep existing data. The following example backups all databases to json files, and resets only the poll table.