Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Jelle van der Waa
Archweb
Commits
ff5965f4
Commit
ff5965f4
authored
Mar 24, 2012
by
Dan McGee
Browse files
Switch to recommending PostgreSQL by default
Signed-off-by:
Dan McGee
<
dan@archlinux.org
>
parent
23cb0d09
Changes
3
Hide whitespace changes
Inline
Side-by-side
README
View file @
ff5965f4
...
...
@@ -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)
packages, you will probably want the following:
-
mysql-python or python-pysqlite
-
django
-
python-markdown
-
python2-psycopg2
-
python2-markdown
-
python-south
-
python-memcached
...
...
@@ -44,7 +44,8 @@ packages, you will probably want the following:
(archweb-env) $ pip install -r requirements.txt
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.
...
...
local_settings.py.example
View file @
ff5965f4
...
...
@@ -13,16 +13,15 @@ ADMINS = (
# ('Joe Admin', 'joeadmin@example.com'),
)
##
My
SQL Database settings
##
Postgre
SQL Database settings
DATABASES = {
'default': {
'ENGINE' : 'django.db.backends.
mysql
',
'ENGINE' : 'django.db.backends.
postgresql_psycopg2
',
'NAME' : 'archlinux',
'USER' : 'archlinux',
'PASSWORD': 'archlinux',
'HOST' : '',
'PORT' : '',
'OPTIONS' : {'init_command': 'SET storage_engine=InnoDB'},
},
}
...
...
requirements_prod.txt
View file @
ff5965f4
Django==1.4
Markdown==2.1.1
MySQL-python==1.2.3
South==0.7.4
pgpdump==1.1
psycopg2=2.4.4
pyinotify==0.9.3
python-memcached==1.48
pytz>=2012b
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment