Skip to content

econti/quora-clone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quora clone

Quora clone written in Django.

alt tag

Installation

# clone repo
git clone https://github.com/econti/quora-clone.git
# go into repo
cd quora-clone
# make a virtual environment
virtualenv env
# start the env
. env/bin/activate
# install the requirements
pip install -r requirements.txt

Now set up your db. Install postgres and make sure you are running it.

psql
create database quora;

Now set up the environment variables.

# make .env file in root of directory with following variables
DEBUG=True
SECRET_KEY='mys3cr3tk3y'
DATABASE_URL='postgres://<your_pg_username>:p4ssw0rd@localhost:5432/quora'

Now run the database migrations

python manage.py migrate

Now run the server

python manage.py runserver

Head to http://127.0.0.1:8000/

Fb Auth & Authenticating users

There are two ways to create users. One via fb authentication and the other via the app's authentication.

For the app's native authentication vist localhost:8000/hidden_login. To set up fb auth simply create a new fb app and modify the following variables in settings.py.

SOCIAL_AUTH_FACEBOOK_KEY = ''
SOCIAL_AUTH_FACEBOOK_SECRET =''

Admin Site

Create superuser for admin site

python manage.py createsuperuser

Head to http://127.0.0.1:8000/admin

About

Quora clone built in Django

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published