Commit ff5965f4 authored by Dan McGee's avatar Dan McGee
Browse files

Switch to recommending PostgreSQL by default


Signed-off-by: default avatarDan McGee <dan@archlinux.org>
parent 23cb0d09
...@@ -23,9 +23,9 @@ More detail in `requirements.txt` and `requirements_prod.txt`; it is best to ...@@ -23,9 +23,9 @@ More detail in `requirements.txt` and `requirements_prod.txt`; it is best to
use virtualenv and pip to handle these. But if you insist on (Arch Linux) use virtualenv and pip to handle these. But if you insist on (Arch Linux)
packages, you will probably want the following: packages, you will probably want the following:
- mysql-python or python-pysqlite
- django - django
- python-markdown - python2-psycopg2
- python2-markdown
- python-south - python-south
- python-memcached - python-memcached
...@@ -44,7 +44,8 @@ packages, you will probably want the following: ...@@ -44,7 +44,8 @@ packages, you will probably want the following:
(archweb-env) $ pip install -r requirements.txt (archweb-env) $ pip install -r requirements.txt
3. Copy `local_settings.py.example` to `local_settings.py` and modify. 3. Copy `local_settings.py.example` to `local_settings.py` and modify.
Make sure to uncomment the appropriate db section (either sqlite or mysql). Make sure to uncomment the appropriate database section (either sqlite or
PostgreSQL).
4. Sync the database to create it. 4. Sync the database to create it.
......
...@@ -13,16 +13,15 @@ ADMINS = ( ...@@ -13,16 +13,15 @@ ADMINS = (
# ('Joe Admin', 'joeadmin@example.com'), # ('Joe Admin', 'joeadmin@example.com'),
) )
## MySQL Database settings ## PostgreSQL Database settings
DATABASES = { DATABASES = {
'default': { 'default': {
'ENGINE' : 'django.db.backends.mysql', 'ENGINE' : 'django.db.backends.postgresql_psycopg2',
'NAME' : 'archlinux', 'NAME' : 'archlinux',
'USER' : 'archlinux', 'USER' : 'archlinux',
'PASSWORD': 'archlinux', 'PASSWORD': 'archlinux',
'HOST' : '', 'HOST' : '',
'PORT' : '', 'PORT' : '',
'OPTIONS' : {'init_command': 'SET storage_engine=InnoDB'},
}, },
} }
......
Django==1.4 Django==1.4
Markdown==2.1.1 Markdown==2.1.1
MySQL-python==1.2.3
South==0.7.4 South==0.7.4
pgpdump==1.1 pgpdump==1.1
psycopg2=2.4.4
pyinotify==0.9.3 pyinotify==0.9.3
python-memcached==1.48 python-memcached==1.48
pytz>=2012b pytz>=2012b
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