|
1 | | -# Heroku Django Starter Template |
| 1 | +# Implementing Facebook login for DJango web using JWT Authentication Flow |
2 | 2 |
|
3 | | -An utterly fantastic project starter template for Django 1.10. |
| 3 | +This repo contains code for the tutorial. |
4 | 4 |
|
5 | | -## Features |
6 | | - |
7 | | -- Production-ready configuration for Static Files, Database Settings, Gunicorn, etc. |
8 | | -- Enhancements to Django's static file serving functionality via WhiteNoise. |
9 | | -- Latest Python 3.6 runtime environment. |
10 | | - |
11 | | -## How to Use |
12 | | - |
13 | | -To use this project, follow these steps: |
14 | | - |
15 | | -1. Create your working environment. |
16 | | -2. Install Django (`$ pip install django`) |
17 | | -3. Create a new project using this template |
18 | | - |
19 | | -## Creating Your Project |
20 | | - |
21 | | -Using this template to create a new Django app is easy:: |
22 | | - |
23 | | - $ django-admin.py startproject --template=https://github.com/heroku/heroku-django-template/archive/master.zip --name=Procfile helloworld |
24 | | - |
25 | | -(If this doesn't work on windows, replace `django-admin.py` with `django-admin`) |
26 | | - |
27 | | -You can replace ``helloworld`` with your desired project name. |
28 | | - |
29 | | -## Deployment to Heroku |
30 | | - |
31 | | - $ git init |
32 | | - $ git add -A |
33 | | - $ git commit -m "Initial commit" |
34 | | - |
35 | | - $ heroku create |
36 | | - $ git push heroku master |
37 | | - |
38 | | - $ heroku run python manage.py migrate |
39 | | - |
40 | | -See also, a [ready-made application](https://github.com/heroku/python-getting-started), ready to deploy. |
41 | | - |
42 | | -## Using Python 2.7? |
43 | | - |
44 | | -Just update `runtime.txt` to `python-2.7.13` (no trailing spaces or newlines!). |
| 5 | +Demo at: https://sample-login-codepal.herokuapp.com/ |
45 | 6 |
|
46 | 7 |
|
47 | 8 | ## License: MIT |
48 | 9 |
|
49 | | -## Further Reading |
50 | 10 |
|
51 | | -- [Gunicorn](https://warehouse.python.org/project/gunicorn/) |
52 | | -- [WhiteNoise](https://warehouse.python.org/project/whitenoise/) |
53 | | -- [dj-database-url](https://warehouse.python.org/project/dj-database-url/) |
0 commit comments