how can build agilito env in ubuntu?

3 views
Skip to first unread message

Tsung

unread,
Jun 10, 2009, 5:37:49 AM6/10/09
to Agilito development
I think build agilito env in ubuntu server.

build step:
$ apt-get install python-django postgresql python-psycopg2 python-
docutils apache2 libapache2-mod-python python-mysqldb mysql-server

$ mkdir /var/django; cd /var/django
$ sudo django-admin startproject agilito

$ vim /etc/apache2/site-enabled/django.conf
=================
<VirtualHost *:80>
ServerName example.com
DocumentRoot /var/django

<Location "/">
SetHandler python-program
PythonHandler django.core.handlers.modpython
PythonPath "['/var/django'] + sys.path"
SetEnv DJANGO_SETTINGS_MODULE settings
PythonDebug On
</Location>
</VirtualHost>
=================

$ agilito-read-only/agilito/install.py /var/django/agilito

$ vim /var/django/agilito/settings.py
=================
DATABASE_ENGINE = 'mysql'
DATABASE_NAME = 'agilito'
DATABASE_USER = 'root'
DATABASE_PASSWORD = 'password'
DATABASE_HOST = ''
.....
LOGIN_REDIRECT_URL = '/'
=================

$ agilito-read-only/agilito/install.py /var/django/agilito
=> You should be good to go. Edit your settings.py a and run 'python
manage.py syncdb'

but this has error:
python manage.py syncdb
Error: Could not import settings 'agilito.settings' (Is it on
sys.path? Does it have syntax errors?): No module named settings

has any step error?

Emiliano Heyns

unread,
Jun 10, 2009, 5:44:45 AM6/10/09
to Agilito development
On Jun 10, 11:37 am, Tsung <tsung...@gmail.com> wrote:
> I think build agilito env in ubuntu server.

That's what I'm using for agilito

> but this has error:
> python manage.py syncdb
> Error: Could not import settings 'agilito.settings' (Is it on
> sys.path? Does it have syntax errors?): No module named settings

Yup, it's on the wiki but I'll make it more visible:

"Note that you don't specifically have to name the project
'agilitoproject'; it can be anything, as long as it's not agilito."

Emile
Reply all
Reply to author
Forward
0 new messages