diff --git a/readme.md b/readme.md index 01d8a7868e425892cac5f1f2997a39498226eb22..617e9c35b82b1dc807c74bf31f686ef0115bb0ea 100644 --- a/readme.md +++ b/readme.md @@ -14,7 +14,7 @@ - `virtualenv env` to create new virtualenv (contains clean python working environment) - `. env/bin/activate` (to start using virtualenv) - `pip install -r requirements.txt` to install project's dependencies - - Create `local_settings.py` file in `/scheduling-system/smash/smash` directory (see template below), and change your connection data: + - Create `local_settings.py` file in `(./scheduling-system)/smash/smash` directory (see template below), and change your database connection data: ``` # SECURITY WARNING: keep the secret key used in production secret! @@ -44,11 +44,12 @@ DATABASES = { } } -STATIC_ROOT = '/tmp/static' +STATIC_ROOT = '/tmp/static' # Warning! `/tmp` directory can be flushed in any moment; use a persistent one; e.g. ~/tmp/static +MEDIA_ROOT = '/tmp/media' # Warning! `/tmp` directory can be flushed in any moment; use a persistent one, e.g. ~/tmp/media ``` + - Create the database by applying migrations (`./scheduling-system/smash/manage.py migrate`) + - Create the first, administrative, user- (`./scheduling-system/smash/manage.py createsuperuser`) ## Development - Remember, that before working you have to activate _virtualenv_, by: `devel@host ~/home/smash/scheduling-system $ . env/bin/activate` - In order to run development server, run: `devel@host ~/home/smash/scheduling-system/smash $ ./manage.py runserver` and go to `127.0.0.1:8000` in browser - -