Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-submissions
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-submissions
Commits
7115c4cf
Commit
7115c4cf
authored
Jul 20, 2017
by
John Eskew
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add instructions and settings for running Django shell locally.
parent
64fc48d1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
1 deletions
+17
-1
README.rst
+12
-0
settings.py
+5
-1
No files found.
README.rst
View file @
7115c4cf
...
...
@@ -40,6 +40,18 @@ To run the test suite:
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
-------
...
...
settings.py
View file @
7115c4cf
...
...
@@ -8,10 +8,14 @@ TEMPLATE_DEBUG = DEBUG
DATABASES
=
{
'default'
:
{
'ENGINE'
:
'django.db.backends.sqlite3'
,
'TEST_NAME'
:
'submissions_test_db'
,
'NAME'
:
'submissions_db'
,
'TEST'
:
{
'NAME'
:
'submissions_test_db'
,
}
},
'read_replica'
:
{
'ENGINE'
:
'django.db.backends.sqlite3'
,
'NAME'
:
'submissions_read_replica_db'
,
'TEST'
:
{
'MIRROR'
:
'default'
,
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment