Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
problem-builder
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
OpenEdx
problem-builder
Commits
b0a0e743
Commit
b0a0e743
authored
Sep 12, 2014
by
dragonfi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
readme: Expand workbench instructions
parent
a3ffcdda
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
9 deletions
+22
-9
README.md
+22
-9
No files found.
README.md
View file @
b0a0e743
...
...
@@ -471,8 +471,14 @@ like the one below:
The default title is "Mentoring Block".
Custom workbench settings
-------------------------
Workbench installation and settings
-----------------------------------
Install to the workbench's virtualenv by running the following command form the mentoring repo root:
```
bash
pip install
-r
requirements.txt
```
In the main XBlock repository, create the following configuration file
in
`workbench/settings_mentoring.py`
in the XBlock repository:
...
...
@@ -484,9 +490,6 @@ INSTALLED_APPS += ('mentoring',)
DATABASES
[
'default'
][
'NAME'
]
=
'workbench.sqlite'
```
Starting the workbench
----------------------
Because this XBlock uses a Django model, you need to sync the database
before starting the workbench. Run this from the XBlock repository
root:
...
...
@@ -495,7 +498,8 @@ root:
$
./manage.py syncdb
--settings
=
workbench.settings_mentoring
```
Then start the workbench:
Running the workbench
---------------------
```
bash
$
./manage.py runserver 8000
--settings
=
workbench.settings_mentoring
...
...
@@ -510,11 +514,12 @@ From the xblock-mentoring repository root, run the tests with the
following command:
```
bash
$ DJANGO_SETTINGS_MODULE
=
"workbench.settings_mentoring"
PYTHONPATH
=
".:/path/to/xblock"
nosetests
--with-django
$ DJANGO_SETTINGS_MODULE
=
"workbench.settings_mentoring"
nosetests
--with-django
```
`/path/to/xblock`
is the path to the XBlock main repository (the one
containing the workbench).
If you have not installed the xblock-sdk in the active virtualenv,
you might also have to prepend
`PYTHONPATH=".:/path/to/xblock"`
to the command above.
(
`/path/to/xblock`
is the path to the xblock-sdk, where the workbench resides).
Adding custom scenarios to the workbench
----------------------------------------
...
...
@@ -530,6 +535,14 @@ $ cat > templates/xml/my_mentoring_scenario.xml
Restart the workbench to take the new scenarios into account.
If you modified a scenario already loaded in the workbench,
you will also have to purge and rebuild the database:
```
bash
rm workbench.sqlite
./manage.py syncdb
--settings
=
workbench.settings_mentoring
<<<
"no"
```
License
-------
...
...
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