Add in docs how to use with localhost for develop your own facebook apps
jorgecorrea opened this issue · 1 comments
For example you need a ssl certified conection in linux you could configure it like this:
install stunnel
create ssl file
openssl req -new -x509 -days 3650 -nodes -out stunnel.pem -keyout stunnel.pem
copy ssl file to /etc/stunnel/
In /ect/stunnel/ create a file called stunnel.conf with the following lines:
cert = /etc/stunnel/stunnel.pem
[http]
accept=8443
connect=8000
Edit /etc/default/stunnel4 and set the lines:
ENABLED=1
PPP_ENABLED=1
then start the daemon with /etc/init.d/stunnel4 start
To run django in command line write:
HTTPS=1 python manage.py runserver 0.0.0.0:8000
In the browser access to https://localhost:8443/\* to access the url with ssl (required by facebook apps)
Thanks @jorgecorrea, and sorry for taking so long to reply — I must have missed this for a while. I'm happy to add this to the README if you submit a pull request.