mirror of
https://github.com/djohnlewis/stackdump
synced 2024-12-04 23:17:37 +00:00
Fixed settings for Windows compatibility.
This commit is contained in:
parent
2fea457b06
commit
5868c8e328
@ -18,7 +18,7 @@ SERVER_PORT = 8080
|
||||
SOLR_URL = 'http://localhost:8983/solr/stackdump/'
|
||||
|
||||
import os
|
||||
DATABASE_CONN_STR = 'sqlite://%s/../../../data/stackdump.sqlite' % os.path.dirname(__file__)
|
||||
DATABASE_CONN_STR = 'sqlite:///' + os.path.join(os.path.dirname(__file__), '..', '..', '..', 'data', 'stackdump.sqlite')
|
||||
|
||||
# if the website is hosted under a subpath, specify it here. It must end with a
|
||||
# slash.
|
||||
|
@ -19,9 +19,10 @@ from default_settings import *
|
||||
# uncomment if the default host and port for Solr is different.
|
||||
#SOLR_URL = 'http://localhost:8983/solr/stackdump/'
|
||||
|
||||
# uncomment if the database for Stackdump is not the default SQLite one
|
||||
#import os
|
||||
#DATABASE_CONN_STR = 'sqlite://%s/../../../data/stackdump.sqlite' % os.path.dirname(__file__)
|
||||
# uncomment if the database for Stackdump is not the default SQLite one or you
|
||||
# wish to have the database at a different path to the stackdump_root/data
|
||||
# directory
|
||||
#DATABASE_CONN_STR = 'sqlite:///' + path_to_the_database
|
||||
|
||||
# if the website is hosted under a subpath, specify it here. It must end with a
|
||||
# slash.
|
||||
|
Loading…
Reference in New Issue
Block a user