Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tobked/contact_box
App to manage contacts, written in Django
https://github.com/tobked/contact_box
Last synced: about 1 month ago
JSON representation
App to manage contacts, written in Django
- Host: GitHub
- URL: https://github.com/tobked/contact_box
- Owner: TobKed
- Created: 2018-09-22T10:06:13.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T01:29:11.000Z (almost 2 years ago)
- Last Synced: 2023-03-06T04:27:31.035Z (over 1 year ago)
- Language: HTML
- Homepage:
- Size: 289 KB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# contact_box
Contact box application written in Django## Run project
#### PostgresSQL
The app is configured to work with PostgresSQL database and it's required to set the following environmental variables:
* DJANGO_DEBUG
* DJANGO_SECRET_KEY
* DATABASE_NAME
* DATABASE_USER
* DATABASE_PASSWORD
* DATABASE_HOST
* EMAIL_USER
* EMAIL_PASSYou can take this code, put it in your text editor, fill values and paste to terminal
```
export DJANGO_DEBUG=''
export DJANGO_SECRET_KEY=''
export DATABASE_NAME=''
export DATABASE_USER=''
export DATABASE_PASSWORD=''
export DATABASE_HOST=''
export EMAIL_USER=''
export EMAIL_PASS=''
```#### SQLite3
You can use SQLite3 as well. Default settings are commented-out. Just uncomment them and delete/comment previous database settings.
WARNING! You still have to set environmental variable for DJANGO_SECRET_KEY.#### Dependencies
```bash
$ cd src
$ pip install -r requirements.txt
```## Project details
#### Database visualisation![alt text](/img/contact_box_visualized.png)
#### Django lessons learned
* User authentication
* Generic views and mixins
* Custom model managers and querysets
* Forms, formsets, inline formsets
* Custom template filters
* Pagination
* Crispy forms
* Django debug toolbar
* Email backend (password recovery)
* Graph models ([pygraphviz](https://django-extensions.readthedocs.io/en/latest/graph_models.html))
* Signals#### Other lessons learned
* Responsive Web Design (Bootstrap)
* Heroku deployment