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
b7485e89
Commit
b7485e89
authored
Jan 10, 2014
by
Xavier Antoviaque
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clarify if commands are run from the mentoring or XBlock repositories
parent
fea1d3e8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
16 deletions
+20
-16
README.md
+20
-16
No files found.
README.md
View file @
b7485e89
...
@@ -102,8 +102,8 @@ Second XBlock instance:
...
@@ -102,8 +102,8 @@ Second XBlock instance:
Installing dependencies
Installing dependencies
-----------------------
-----------------------
Within the Python virtual environment you used to setup the XBlock workbench or the LMS, install the
From the xblock-mentoring repository, and within the Python virtual environment you used to setup the XBlock
requirements:
workbench or the LMS, install the
requirements:
```
bash
```
bash
$
pip install
-r
requirements.txt
$
pip install
-r
requirements.txt
...
@@ -119,7 +119,8 @@ $ pip install -e .
...
@@ -119,7 +119,8 @@ $ pip install -e .
Custom workbench settings
Custom workbench settings
-------------------------
-------------------------
In the main XBlock repository, create the following configuration file in
`workbench/settings_mentoring.py`
:
In the main XBlock repository, create the following configuration file in
`workbench/settings_mentoring.py`
in the XBlock repository:
```
python
```
python
from
settings
import
*
from
settings
import
*
...
@@ -128,21 +129,11 @@ INSTALLED_APPS += ('mentoring',)
...
@@ -128,21 +129,11 @@ INSTALLED_APPS += ('mentoring',)
DATABASES
[
'default'
][
'NAME'
]
=
'workbench.sqlite'
DATABASES
[
'default'
][
'NAME'
]
=
'workbench.sqlite'
```
```
Adding custom scenarios in the workbench
----------------------------------------
Create the
`templates/xml`
and add XML scenarios to it - all files with the
`*.xml`
extension will be
automatically loaded by the workbench:
```
bash
$
mkdir templates/xml
$
cat
>
templates/xml/my_mentoring_scenario.xml
```
Starting the workbench
Starting the workbench
----------------------
----------------------
Because this XBlock uses a Django model, you need to sync the database before 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:
```
bash
```
bash
$
./manage.py syncdb
--settings
=
workbench.settings_mentoring
$
./manage.py syncdb
--settings
=
workbench.settings_mentoring
...
@@ -159,7 +150,7 @@ Access it at http://localhost:8000/
...
@@ -159,7 +150,7 @@ Access it at http://localhost:8000/
Running tests
Running tests
-------------
-------------
Run
with the following command:
From the xblock-mentoring repository root, run the tests
with the following command:
```
bash
```
bash
$ DJANGO_SETTINGS_MODULE
=
"workbench.settings_mentoring"
PYTHONPATH
=
".:/path/to/xblock"
nosetests
--with-django
$ DJANGO_SETTINGS_MODULE
=
"workbench.settings_mentoring"
PYTHONPATH
=
".:/path/to/xblock"
nosetests
--with-django
...
@@ -167,3 +158,16 @@ $ DJANGO_SETTINGS_MODULE="workbench.settings_mentoring" PYTHONPATH=".:/path/to/x
...
@@ -167,3 +158,16 @@ $ DJANGO_SETTINGS_MODULE="workbench.settings_mentoring" PYTHONPATH=".:/path/to/x
`/path/to/xblock`
is the path to the XBlock main repository (the one containing the workbench)
`/path/to/xblock`
is the path to the XBlock main repository (the one containing the workbench)
Adding custom scenarios to the workbench
----------------------------------------
Within the xblock-mentoring repository, create the
`templates/xml`
and add XML scenarios to it - all files with
the
`*.xml`
extension will be automatically loaded by the workbench:
```
bash
$
mkdir templates/xml
$
cat
>
templates/xml/my_mentoring_scenario.xml
```
Restart the workbench to take the new scenarios into account.
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