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.

34 lines
920 B

5 years ago
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": False
  11. }
  12. WHL_FAMILY_ID = 'M1933'
  13. WHL_FAMILY_PW = 'Whlm1933'
  14. # Application threads. A common general assumption is
  15. # using 2 per available processor cores - to handle
  16. # incoming requests using one and performing background
  17. # operations using the other.
  18. THREADS_PER_PAGE = 2
  19. # Enable protection agains *Cross-site Request Forgery (CSRF)*
  20. CSRF_ENABLED = True
  21. # Use a secure, unique and absolutely secret key for
  22. # signing the data.
  23. CSRF_SESSION_KEY = "secret"
  24. # Secret key for signing cookies
  25. SECRET_KEY = "secret"
  26. JSON_AS_ASCII = False