You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
866 B

5 years ago
5 years ago
  1. import os
  2. # Statement for enabling the development environment
  3. DEBUG = True
  4. # Define the application directory
  5. BASE_DIR = os.path.abspath(os.path.dirname(__file__))
  6. # Define the database - we are working with
  7. # SQLite for this example
  8. SQLALCHEMY_DATABASE_URI = 'oracle+cx_oracle://whpr:w2t2pr0614@tpe3.wanhai.com:1526/whl2'
  9. DATABASE_CONNECT_OPTIONS = {
  10. "PRE_CONNECT":True
  11. }
  12. # Application threads. A common general assumption is
  13. # using 2 per available processor cores - to handle
  14. # incoming requests using one and performing background
  15. # operations using the other.
  16. THREADS_PER_PAGE = 2
  17. # Enable protection agains *Cross-site Request Forgery (CSRF)*
  18. CSRF_ENABLED = True
  19. # Use a secure, unique and absolutely secret key for
  20. # signing the data.
  21. CSRF_SESSION_KEY = "secret"
  22. # Secret key for signing cookies
  23. SECRET_KEY = "secret"
  24. JSON_AS_ASCII = False