settings.py.template 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. """
  2. For more information on this file, see
  3. https://docs.djangoproject.com/en/1.7/topics/settings/
  4. For the full list of settings and their values, see
  5. https://docs.djangoproject.com/en/1.7/ref/settings/
  6. """
  7. from iepy.webui.webui.settings import *
  8. IEPY_VERSION = '{IEPY_VERSION}'
  9. IEPY_LANG = '{LANG}'
  10. SECRET_KEY = '{SECRET_KEY}'
  11. DEBUG = True
  12. TEMPLATE_DEBUG = True
  13. # Database
  14. # https://docs.djangoproject.com/en/1.7/ref/settings/#databases
  15. # DATABASES = {
  16. # 'default': {
  17. # 'ENGINE': 'django.db.backends.sqlite3',
  18. # 'NAME': '/home/python/luojiehua/dl_nlp/iepy-develop/examples/test/test.sqlite',
  19. # }
  20. # }
  21. DATABASES = {
  22. 'default': {
  23. 'ENGINE': 'django.db.backends.postgresql_psycopg2',
  24. 'NAME': 'iepy',
  25. 'USER': 'postgres',
  26. 'PASSWORD': 'postgres',
  27. 'HOST': 'localhost',
  28. 'PORT': '5432'
  29. }
  30. }
  31. # For changing tokenization options, read here.
  32. # http://nlp.stanford.edu/nlp/javadoc/javanlp/edu/stanford/nlp/process/PTBTokenizer.html
  33. # You can use as key any of the "known options" listed on that page, and as value,
  34. # use True or False (python names) for booleans, or strings when option requires a text
  35. # CORENLP_TKN_OPTS = {
  36. # 'latexQuotes': False
  37. # }