Commit 3925fe7a by Nicolas Joyard

Switch to PGSQL by default

parent f73b710f
Showing with 11 additions and 2 deletions
Requirements
- python 2.7
- postgresql 9.2+
- virtualenv
Installation
......@@ -8,7 +9,12 @@ Installation
- virtualenv ve
- source ve/bin/activate
- pip install -e .
- psql -c "create user parlapi with password 'parlapi';"
- psql -c "create database parlapi with owner parlapi;"
Utilisation:
Usage:
- parlapi createdb
- parlapi update_organes_an
- parlapi update_acteurs_an
- parlapi runserver
-
\ No newline at end of file
......@@ -9,7 +9,8 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
class Config(object):
DEBUG = False
SECRET_KEY = 'not secret'
SQLALCHEMY_DATABASE_URI = 'sqlite:////tmp/test.db'
SQLALCHEMY_DATABASE_URI = \
'postgresql://parlapi:parlapi@localhost:5432/parlapi'
SQLALCHEMY_TRACK_MODIFICATIONS = False
DATA_DIR = os.path.join(BASE_DIR, 'data')
......
......@@ -26,6 +26,7 @@ setup(
'html5lib>=0.9999999,<1',
'ijson>=2.3,<3',
'marshmallow-sqlalchemy>=0.10,<0.11',
'psycopg2>=2,<3',
'requests>=2.10,<3',
],
classifiers=[
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment