Commit 7115c4cf by John Eskew

Add instructions and settings for running Django shell locally.

parent 64fc48d1
...@@ -40,6 +40,18 @@ To run the test suite: ...@@ -40,6 +40,18 @@ To run the test suite:
tox # to run only a single environment, do e.g. tox -e django18 tox # to run only a single environment, do e.g. tox -e django18
To use a Django shell to test commands:
.. code:: bash
pip install -r django-requirements.txt
pip install -r requirements.txt
pip install -r test-requirements.txt
./manage.py migrate
./manage.py shell --settings=settings
>>> from submissions.serializers import StudentItemSerializer
>>> <other commands...>
License License
------- -------
......
...@@ -8,10 +8,14 @@ TEMPLATE_DEBUG = DEBUG ...@@ -8,10 +8,14 @@ TEMPLATE_DEBUG = DEBUG
DATABASES = { DATABASES = {
'default': { 'default': {
'ENGINE': 'django.db.backends.sqlite3', 'ENGINE': 'django.db.backends.sqlite3',
'TEST_NAME': 'submissions_test_db', 'NAME': 'submissions_db',
'TEST': {
'NAME': 'submissions_test_db',
}
}, },
'read_replica': { 'read_replica': {
'ENGINE': 'django.db.backends.sqlite3', 'ENGINE': 'django.db.backends.sqlite3',
'NAME': 'submissions_read_replica_db',
'TEST': { 'TEST': {
'MIRROR': 'default', 'MIRROR': 'default',
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment