/dagram

A django web application replicating instagram functionalities

Primary LanguagePythonMIT LicenseMIT

Dagram

A Django based web application looking to replicate instagram functionalities

Features

  • Django 3.0+
  • Uses Pipenv - the officially recommended Python packaging tool from Python.org.
  • Development, Staging and Production settings with django-configurations.
  • Get value insight and debug information while on Development with django-debug-toolbar.
  • Collection of custom extensions with django-extensions.
  • HTTPS and other security related settings on Staging and Production.
  • Procfile for running gunicorn with New Relic's Python agent.
  • PostgreSQL database support with psycopg2.

Known Bugs

Comment functionality not working

Environment Variables

DEBUG=True
DB_NAME='dagram'
DB_USER='don'
DB_PASSWORD='XXXX
DB_HOST='127.0.0.1'
MODE='prod'
ALLOWED_HOSTS='.localhost','.herokuapp.com','.127.0.0.1'
DISABLE_COLLECTSTATIC=1

Entity Relationship Diagram

ERD

Deployment

It is possible to deploy to Heroku or to your own server.

Heroku

$ heroku create
$ heroku addons:add heroku-postgresql:hobby-dev
$ heroku pg:promote DATABASE_URL
$ heroku config:set ENVIRONMENT=PRODUCTION
$ heroku config:set DJANGO_SECRET_KEY=os.config('SECRET_KEY')

Built With

  • Django - The web framework used
  • Pipenv - Dependency Management

Versioning

We use Git for versioning.

Codebeat Grade

codebeat badge

Authors

  • Don Moses* - Initial work

License

LICENSE

Acknowledgments

  • Lawrence Karanja
  • Ashley Zawadi