Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed runshell.py

  • Loading branch information...
commit 875813eec4f08a905a54bf6e05fbd164b1109d83 1 parent c72dfc5
@ojii ojii authored
Showing with 2 additions and 6 deletions.
  1. +2 −6 runshell.py
View
8 runshell.py
@@ -1,4 +1,5 @@
#!/usr/bin/env python
+import os
from cms.test_utils.cli import configure
from cms.test_utils.tmpdir import temp_dir
@@ -7,15 +8,10 @@ def main():
with temp_dir() as STATIC_ROOT:
with temp_dir() as MEDIA_ROOT:
configure(
+ os.environ.get('DATABASE_URL', 'sqlite://localhost/cmstestdb.sqlite'),
ROOT_URLCONF='cms.test_utils.project.urls',
STATIC_ROOT=STATIC_ROOT,
MEDIA_ROOT=MEDIA_ROOT,
- DATABASES = {
- 'default': {
- 'ENGINE': 'django.db.backends.sqlite3',
- 'NAME': 'cmstestdb.sqlite',
- }
- }
)
from django.core.management import call_command
call_command('shell')
Please sign in to comment.
Something went wrong with that request. Please try again.