Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dannywillems/rlibrary
Django app to manage a library.
https://github.com/dannywillems/rlibrary
Last synced: about 1 month ago
JSON representation
Django app to manage a library.
- Host: GitHub
- URL: https://github.com/dannywillems/rlibrary
- Owner: dannywillems
- Created: 2018-06-03T17:58:25.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-06-10T20:53:16.000Z (over 3 years ago)
- Last Synced: 2024-05-02T01:51:30.657Z (7 months ago)
- Language: Python
- Size: 215 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 18
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Manage your library easily.
=================================
## Run.
*Pipenv* is used. `python-decouple` is also used for the configuration, thus, you can use a `.env` file instead of
environment variables.```
pipenv install
DJANGO_SECRET_KEY=supersecretkey python manage.py migrate
DJANGO_SECRET_KEY=supersecretkey python manage.py createsuperuser # to have access to the admin page.
DJANGO_SECRET_KEY=supersecretkey python manage.py runserver
```By default, a sqlite3 database is used. You can change it by using different parameters:
- `DATABASE_ENGINE`: see django documentation, default to sqlite3
- `DATABASE_NAME`: database name, default to `.data/db.sqlite3`
- `DATABASE_URL`: database URL, default to `None` (must be `None` for SQLite3)
- `DATABASE_PORT`: the database port, default to `None` (must be `None` for SQLite3)
- `DATABASE_USER`: the database user, default to `None` (must be `None` for SQLite3)
- `DATABASE_PASSWORD`: the database password, default to `None` (must be `None` for SQLite3)## Deploy using Docker
**Not yet available on DockerHub.**
```bash
docker run -it --name rlibrary \
-p 8000:8000 \
-e "DJANGO_SECRET_KEY=supersecretkey" dannywillems/rlibrary
```You can also specify the different variables listed above to use a different database.