Commit d716d648 authored by eliott's avatar eliott
Browse files

Updated docs

parent 424d2a77
...@@ -14,16 +14,14 @@ For a simple testing installation: ...@@ -14,16 +14,14 @@ For a simple testing installation:
1. Install dependencies. 1. Install dependencies.
pacman -S django python-pysqlite sqlite3 pacman -S django python-pysqlite sqlite3
or
pacman -S django mysql mysql-python
2. Configure database 2. Extract test database
For simple testing, sqlite is a good option. For simple testing, sqlite is a good option. We have provided an
If using mysql, create a database, and a user with permission to example test database.
that database. gzip -cd ./testing/database/archweb_sqlite.db.gz > archweb.db
3. Populate database with test data 3. Copy local_settings.py.example to local_settings.py and modify
Run ./scripts/testing/load_data.bash Make sure to uncomment the sqlite section.
4. Use the following commands to start a service instance 4. Use the following commands to start a service instance
export PYTHONPATH=`pwd`:${PYTHONPATH} export PYTHONPATH=`pwd`:${PYTHONPATH}
......
...@@ -10,7 +10,7 @@ ADMINS = ( ...@@ -10,7 +10,7 @@ ADMINS = (
## Sqlite Database settings ## Sqlite Database settings
#DATABASE_ENGINE = 'sqlite3' #DATABASE_ENGINE = 'sqlite3'
#DATABASE_NAME = 'archlinux.db' #DATABASE_NAME = 'archweb.db'
## MySQL Database settings ## MySQL Database settings
#DATABASE_ENGINE = 'mysql' #DATABASE_ENGINE = 'mysql'
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment