Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small bugfix for src/settings/local.py handling NameError. #360

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Python 3.5
General setup
=============

You need the latest version that is compatible with the Python version used.
You need the latest version that is compatible with the Python version used.
We also highly recommend to use virtualenv so your system Python installation remains clean.

If you are having trouble with
Expand Down Expand Up @@ -189,7 +189,7 @@ Python installation or inside a designated virtualenv (recommended).
The following describes a recommended setup using virtualenv.

```bash
git clone --recursive git://github.com/KITPraktomatTeam/Praktomat.git
git clone --recursive https://github.com/KITPraktomatTeam/Praktomat.git
virtualenv -p python3 --system-site-packages env/
. env/bin/activate
pip install -U pip virtualenv setuptools wheel urllib3[secure]
Expand Down Expand Up @@ -239,7 +239,7 @@ Deployment installation
Like for the development version, clone the Praktomat and install its dependencies:

```bash
git clone --recursive git://github.com/KITPraktomatTeam/Praktomat.git
git clone --recursive https://github.com/KITPraktomatTeam/Praktomat.git
virtualenv -p python3 --system-site-packages env/
. env/bin/activate
pip install -U pip virtualenv setuptools wheel urllib3[secure]
Expand Down Expand Up @@ -370,7 +370,7 @@ To access the praktomat usersessions from an phpBB follow the instructions in `s
CUnit CPPUnit Checker
=================

For configuration please have a look into README_feature_CUnitCppUnit_Checker.txt.
For configuration please have a look into `README_feature_CUnitCppUnit_Checker.txt`.


[Bug tracker]: https://github.com/KITPraktomatTeam/Praktomat/issues
Expand Down
5 changes: 3 additions & 2 deletions src/settings/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@
else:
raise NotImplementedError("Autoconfig for PRAKTOMAT_ID %s not possible", PRAKTOMAT_ID)


# The URL where this site is reachable. 'http://localhost:8000/' in case of the
# development server.
BASE_HOST = 'https://praktomat.cs.kit.edu'
Expand Down Expand Up @@ -124,6 +123,8 @@

SERVER_EMAIL = '[email protected]'

try: MIRROR
except NameError: MIRROR = False

if MIRROR:
EMAIL_BACKEND = 'django.core.mail.backends.filebased.EmailBackend'
Expand Down Expand Up @@ -228,7 +229,7 @@
# Our VM has 4 cores, so lets try to use them
NUMBER_OF_TASKS_TO_BE_CHECKED_IN_PARALLEL = 6
# But not with Isabelle, which is memory bound
if match.group('tba') is not None:
if match and match.group('tba') is not None:
NUMBER_OF_TASKS_TO_BE_CHECKED_IN_PARALLEL = 1


Expand Down