Overview
This is a Django 2.2 example app featuring a homepage + article page. Article pages display article content retireved from a fake API and stock quote tickers from another fake API, as well as a Commenting feature providing the ability to post and delete comments as unauthenticated user. This commenting feature is a basic CRUD system built with Django models.
Installation
-
Clone this repo and navigate into the
dafool
directory -
Create and activate a python3 virtualenv for this project (I used pipenv, a simplified virtual environment manager that work son Unix and Windows systems).
-
To create a python3 virtualenv, from within the project directory, you need to run the command:
virualenv --python=/path/to/python3 .
-
Make sure your current version of python is at least python3.6 by running:
python --version
-
If you aren't using python3 by default, and don't know where you python3 is, run:
python3 --version
if that command works, run:which python3
and that will display thepath/to/python3
Otherwise, you need to install python3.
-
Once you've crated the virtualenv, from within that same project directory, run:
source bin/activate
-
-
Run
./setup.sh
inside thedafool
project directory- If you get
permission denied
when trying to execute, run:chmod +x ./setup.sh
then try again
- If you get
-
Run
python manage.py runserver
to start the Django server!