Getting started¶
Setup virtual environment:
virtualenv venv source venv/bin/activate
Setup requirements:
pip install -r requirements.txt
Sync database:
python manage.py migrate
Add user:
python manage.py createsuperuser
Run webserver:
python manage.py runserver
Starting the web server¶
Run webserver:
python manage.py runserver
Enter the front page at http://localhost:8000/static/index.html
Configure Facebook login¶
- Enter Django administration page at http://localhost:8000/admin/
- Click Sites then fix the first site name from
example.com
tolocalhost:8000
- Go back to front page and click Social applications
- Add new social application. Enter the following information:
- Name: Facebook
- Client ID, Secret Key: As given by Facebook (Register a new Facebook application)
- Sites: Add
localhost:8000
to the list