settings.py 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. """
  2. Django settings for django-spaghetti test project.
  3. """
  4. # Build paths inside the project like this: os.path.join(BASE_DIR, ...)
  5. import os
  6. BASE_DIR = os.path.dirname(os.path.dirname(__file__))
  7. # SECURITY WARNING: keep the secret key used in production secret!
  8. SECRET_KEY = 'just_another_test_key'
  9. # SECURITY WARNING: don't run with debug turned on in production!
  10. DEBUG = True
  11. ALLOWED_HOSTS = []
  12. # Application definition
  13. TEMPLATES = [
  14. {
  15. 'BACKEND': 'django.template.backends.django.DjangoTemplates',
  16. 'DIRS': [os.path.join(BASE_DIR, 'templates')],
  17. 'APP_DIRS': True,
  18. },
  19. ]
  20. INSTALLED_APPS = (
  21. 'django_spaghetti.tests',
  22. 'django_spaghetti',
  23. 'django.contrib.auth',
  24. 'django.contrib.contenttypes',
  25. 'django.contrib.staticfiles',
  26. )
  27. ROOT_URLCONF = 'django_spaghetti.tests.urls'
  28. DATABASES = {
  29. 'default': {
  30. 'ENGINE': 'django.db.backends.sqlite3',
  31. 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
  32. }
  33. }
  34. STATIC_URL = '/static/'
  35. SPAGHETTI_SAUCE = {
  36. 'apps': ['tests', 'auth'],
  37. 'exclude': {},
  38. 'show_fields': False,
  39. 'ignore_self_referential': True,
  40. }