pythonic-news

October 25, 2019 ยท View on GitHub

A Hacker News lookalike written in Python/Django, powering https://news.python.sc

screenshot

Setup for local development

Set up virtual environment

python -m venv venv/
source venv/bin/activate

Install Dependencies

pip install -r requirements.txt

Migrate Database

python manage.py migrate

Extra setup work

  • Set DEBUG=True if necessary
  • Add 127.0.0.1 to ALLOWED_HOSTS

Run Django Server

python manage.py runserver

Now you can access the website at 127.0.0.1:8000.

Contents

  1. 1Setup for local development
  2. 1.1Set up virtual environment
  3. 1.2Install Dependencies
  4. 1.3Migrate Database
  5. 1.4Extra setup work
  6. 1.5Run Django Server