diff --git a/.gitignore b/.gitignore index b667f70a283368796d97696775f8977cded41c43..e06c62f5b0e4799bf7608f00057c166c93f029ba 100644 --- a/.gitignore +++ b/.gitignore @@ -45,3 +45,6 @@ smasch_*_all.deb smasch_*_amd64.build smasch_*_amd64.changes debian/ + +#OS generated folders +**/.DS_Store \ No newline at end of file diff --git a/readme.md b/readme.md index 8bb2aa520a20e586f7bea4c6693726aff61fbe0a..1277e45549755a6ace9637993a61ed93c77c35ad 100644 --- a/readme.md +++ b/readme.md @@ -49,7 +49,7 @@ pip install -r requirements-dev.txt npm install ``` - - Create `local_settings.py` file in `smash/smash` directory by copying the template in `smash/smash/local_settings.template` and edit your local_setttings.py file to change your database connection data. + - Create `local_settings.py` file in `smash/smash` directory by copying the template in `smash/smash/local_settings.template` and edit your local_setttings.py file to set `FORCE_2FA = False` and change your database connection data. ### Database configuration @@ -91,19 +91,23 @@ After database connection is configured setup a database by applying migration s ./manage.py superworker -u admin -e test@test.lu -f John -l Doe ``` + ## Development Remember, that before working you have to activate _virtualenv_ (in project directory), by: ```bash . env/bin/activate ``` - +To add dummy data, run: +```bash +python smash/db_scripts/create_dummy_data.py +``` In order to run development server, run: - ```bash cd smash ./manage.py runserver ``` + and go to `127.0.0.1:8000` in browser ### Mac Developers