Hackerspace website and hackerspace blog.
- python3.8
- pipenv
- install by
pip install pipenv
- install by
-
Setup pipenv
pipenv sync --dev
-
Setup pre-commit hooks
pipenv run precommmit
-
Setup development environment variables
- Create a
.env
file. - Example for development:
DATABASE_URL = sqlite:///db.sqlite3 DEBUG = True SUPERUSER_USERNAME = ... SUPERUSER_PASSWORD = ...
- The DATABASE_URL can be set as required.
- Example for production:
DATABASE_URL = ... DEBUG = False SECRET_KEY = ...
- Create a
-
Start webserver
pipenv run start
- Note: make sure you migrate if you want to work with the database
pipenv run migrate