Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
CoNekT/tests/config.py
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
72 lines (53 sloc)
1.87 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Configuration of the website and database. | |
Copy this file to config.py and change the settings accordingly | |
""" | |
import os | |
import tempfile | |
basedir = os.path.abspath(os.path.dirname(__file__)) | |
# Flask settings, make sure to set the SECRET_KEY and turn DEBUG and TESTING to False for production | |
DEBUG = False | |
TESTING = True | |
WTF_CSRF_ENABLED = False | |
SECRET_KEY = 'DragonsLiveHere' | |
# Login settings + admin account | |
LOGIN_ENABLED = True | |
ADMIN_PASSWORD = 'admin' | |
ADMIN_EMAIL = 'admin@web.com' | |
# Database settings, database location and path to migration scripts | |
# THIS WILL CREATE A NEW DATABASE AND FILL IT WITH DUMMY DATA | |
# DO NOT RUN THIS WITH AN EXISTING DATABASE AS IT WILL BE DROPPED ! | |
_, DATABASE_PATH = tempfile.mkstemp() | |
SQLALCHEMY_DATABASE_URI = 'sqlite:///' + DATABASE_PATH | |
SQLALCHEMY_MIGRATE_REPO = os.path.join(basedir, 'migration') | |
SQLALCHEMY_ECHO = DEBUG | |
SQLALCHEMY_TRACK_MODIFICATIONS = False | |
# Settings for the FTP/bulk data | |
PLANET_FTP_DATA = tempfile.mkdtemp() | |
# Settings for Cache | |
CACHE_TYPE = 'null' | |
CACHE_DEFAULT_TIMEOUT = 600 | |
CACHE_THRESHOLD = 10000 | |
CACHE_NO_NULL_WARNING = True | |
# Whooshee settings | |
WHOOSHEE_DIR = tempfile.mkdtemp() | |
WHOOSHEE_MIN_STRING_LEN = 3 | |
WHOOSHEE_WRITER_TIMEOUT = 2 | |
WHOOSHEE_MEMORY_STORAGE = False | |
WHOOSHEE_ENABLE_INDEXING = True | |
# Minify pages when debug is off | |
MINIFY_PAGE = not DEBUG | |
TMP_DIR = tempfile.mkdtemp() | |
# BLAST settings | |
BLAST_ENABLED = False | |
BLAST_TMP_DIR = tempfile.mkdtemp() | |
BLASTP_PATH = 'D:/blast/bin/blastp.exe' | |
BLASTP_DB_PATH = 'D:/blast/db/ath_db' | |
BLASTN_PATH = 'D:/blast/bin/blastn.exe' | |
BLASTN_DB_PATH = 'D:/blast/db/ath_cds_db' | |
BLASTP_CMD = BLASTP_PATH + ' -db ' + BLASTP_DB_PATH + ' -query <IN> -out <OUT> -outfmt 6 -num_threads 1' | |
BLASTN_CMD = BLASTN_PATH + ' -db ' + BLASTN_DB_PATH + ' -query <IN> -out <OUT> -outfmt 6 -num_threads 1' | |
# Debug settings | |
DEBUG_TB_INTERCEPT_REDIRECTS = False | |
# Twitter Handle | |
TWITTER_HANDLE = None | |