Commit 3b48e1a5 authored by Marc Duez's avatar Marc Duez
Browse files

server : put sql database address in defs.py module

parent 1f520768
......@@ -14,7 +14,7 @@ request.requires_https()
if not request.env.web2py_runtime_gae:
## if NOT running on Google App Engine use SQLite or other DB
db = DAL('sqlite://storage.sqlite',pool_size=1,check_reserved=['all'])
db = DAL(defs.DB_ADDRESS,pool_size=1,check_reserved=['all'])
## db = DAL('mysql://root:password@localhost/vidjil5',pool_size=1,check_reserved=['all'])
else:
## connect to Google BigTable (optional 'google:datastore://namespace')
......
......@@ -3,6 +3,10 @@
### This file must be named 'modules/defs.py' to be taken into account
###
### address for the sql database
###
DB_ADDRESS = 'sqlite://storage.sqlite'
### Upload directory for .fasta/.fastq.
### Old sequences files could be thrown away.
### No regular backup.
......
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 to comment