Tool to search for residences of social housing corporations in the Netherlands.
This project consists of two repositories:
- De Woonplaats
- Aalten
- Boekelo
- Dinxperlo
- Enschede
- Neede
- Wehl
- Winterswijk
- Zwolle
- Domijn
- Enschede
- Haaksbergen
- Losser
- Overdinkel
- Ons Huis
- Enschede
Make sure Python 3, pip, PyCharm and Pipenv are installed on your system.
You can install Pipenv by running pip install pipenv
in a terminal.
- Clone this repository.
- Open the folder in PyCharm.
- Go to
Settings > Project > Python Interpreter
. - Go to the settings next to
Python Interpreter
and clickAdd...
. - Select
Pipenv environment
on the left side. - Make sure the
Base interpreter
andPipenv executable
are correct. - Make sure
Install packages from Pipfile
is checked. - Click
Ok
. PyCharm will now install the dependencies. - Close the settings.
- Open PyCharm's terminal (bottom left).
- Run the migrations with
python manage.py migrate
. - Seed the database with
python manage.py loaddata */fixtures/*.json
. - Run the cache migrations with
python manage.py createcachetable
. - Create an admin user with
python manage.py createsuperuser
. - Close PyCharm's terminal.
PyCharm should have automatically detected Django and created a run configuration for the project.
You can now run the project by clicking the green arrow (Run
) or green bug (Debug
) in the top right corner.
TODO
Run the following commands in the Docker container (docker exec -it <container id> bash
).
# Seed database
pipenv run python manage.py loaddata */fixtures/*.json
# Create super user
pipenv run python manage.py createsuperuser
TODO