thulethi / django-apps

An example project in Django and PostgreSQL

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

django-polls-app

Polls Application is a web-based polls written in Django.

Stack

  • Python 3.8
  • Django 3.0.8
  • PostgreSQL 12.3

Development

  • Make sure to have python and pip installed
  • Install PipEnv
pip install --user pipenv
  • Activate a virual environment using pipenv
pipenv shell
  • Install required packages with dev dependencies
pipenv install -r requirements.txt
  • Create .env file and fill in SECRET_KEY
  • Start the development server inside the same directory with manage.py
python manage.py runserver

Unit tests

Run tests

python manage.py test polls

About

An example project in Django and PostgreSQL


Languages

Language:Python 91.8%Language:HTML 8.1%Language:CSS 0.1%