2007-11-03 00:45:10 -07:00
|
|
|
# License
|
|
|
|
See LICENSE file.
|
|
|
|
|
|
|
|
# Authors
|
|
|
|
See AUTHORS file.
|
|
|
|
|
2007-12-29 14:49:45 -08:00
|
|
|
# Dependencies
|
2007-11-03 00:45:10 -07:00
|
|
|
- python
|
2008-01-05 11:52:19 -08:00
|
|
|
- mysql-python or python-pysqlite
|
2007-12-29 14:49:45 -08:00
|
|
|
- Django = 0.96
|
2007-11-03 00:45:10 -07:00
|
|
|
|
2007-12-29 14:49:45 -08:00
|
|
|
# Installation
|
|
|
|
For a simple testing installation:
|
2007-11-03 00:45:10 -07:00
|
|
|
|
2007-12-29 14:49:45 -08:00
|
|
|
1. Install dependencies.
|
2008-01-05 11:52:19 -08:00
|
|
|
pacman -S django python-pysqlite sqlite3
|
|
|
|
|
2008-01-10 00:23:31 -08:00
|
|
|
2. Fetch and extract test database
|
2008-01-05 16:01:48 -08:00
|
|
|
For simple testing, sqlite is a good option. We have provided an
|
|
|
|
example test database.
|
2008-01-05 16:16:36 -08:00
|
|
|
wget http://dev.archlinux.org/~eliott/archweb_sqlite.db.gz -O - | zcat > archweb.db
|
2008-01-05 11:52:19 -08:00
|
|
|
|
2008-01-05 16:01:48 -08:00
|
|
|
3. Copy local_settings.py.example to local_settings.py and modify
|
|
|
|
Make sure to uncomment the sqlite section.
|
2008-01-05 11:52:19 -08:00
|
|
|
|
2007-12-29 14:49:45 -08:00
|
|
|
4. Use the following commands to start a service instance
|
|
|
|
export PYTHONPATH=`pwd`:${PYTHONPATH}
|
|
|
|
export DJANGO_SETTINGS_MODULE=archweb_dev.settings
|
|
|
|
python manage.py runserver
|
2008-01-08 18:37:12 -08:00
|
|
|
|
|
|
|
5. The test database has a few test accounts in it.
|
|
|
|
To login, use the following credentails.
|
|
|
|
User: admin
|
|
|
|
Pass: pass
|
|
|
|
|
|
|
|
You can then reset the password on any of the test users by
|
|
|
|
going into the django admin interface and doing so.
|
|
|
|
|