Created a clone of Reddit built on the Django framework and bootstrap. Site is fully functional and any user can sign up for an account, login, create posts, upvote and downvote posts.
Get this project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
Python 3.4 and up. We will be using modules such as pip, virtualenv, and Django.
Here is how to get your development environment up and running with the dependencies.
- Install Python.
https://www.python.org/
- Check Python install is good.
Command: pip -V
- Install Django! Run the command below.
Command: pip install django
- Check Django install is good.
Command: python
>>> import django
>>> print(django.get_version())
- Installing other dependecy, used for static images.
Command: pip install pillow
Once everything here has been properly installed, you should be able to deploy this website on your machine.
In order to deploy this application. Have the repo on your desktop ready to use. Open up the terminal and navigate to the working directory of the repo. Follow the commands below for your system.
This is for windows 10 systems:
Command: .\venv\scripts\activate
(venv): python manage.py runserver
This is for Mac/Linux systems:
Command: source /venv/scripts/activate
(venv): python3 manage.py runserver
- Phillip Rognerud - Initial work - My GitHub Profile
See also the list of contributors who participated in this project.
- Learned Django through online classes at udemy.com. Great website!