/tests/test_project/settings.py

https://bitbucket.org/cklein/django-piston · Python · 25 lines · 23 code · 2 blank · 0 comment · 0 complexity · f4e7c676e571a0338315cf136b382c7f MD5 · raw file

  1. import os
  2. DEBUG = True
  3. DATABASE_ENGINE = 'sqlite3'
  4. DATABASE_NAME = '/tmp/piston.db'
  5. INSTALLED_APPS = (
  6. 'django.contrib.auth',
  7. 'django.contrib.contenttypes',
  8. 'django.contrib.sessions',
  9. 'django.contrib.sites',
  10. 'piston',
  11. 'test_project.apps.testapp',
  12. )
  13. TEMPLATE_DIRS = (
  14. os.path.join(os.path.dirname(__file__), 'templates'),
  15. )
  16. SITE_ID = 1
  17. ROOT_URLCONF = 'test_project.urls'
  18. MIDDLEWARE_CLASSES = (
  19. 'piston.middleware.ConditionalMiddlewareCompatProxy',
  20. 'django.contrib.sessions.middleware.SessionMiddleware',
  21. 'piston.middleware.CommonMiddlewareCompatProxy',
  22. 'django.contrib.auth.middleware.AuthenticationMiddleware',
  23. )