Coder Social home page Coder Social logo

django-rest-beautifly's Introduction

Notes on configuration

Nginx config must contain -

proxy_set_header Host $host;
proxy_set_header X-Forwarded-Proto $scheme;

..in order for the django social-auth to work.

Facebook OAUTH integration

Add https://mydomain/social-auth/complete/facebook to Valid Redirect URLs

To register the app visit https://developer.facebook.com/

Google OAUTH2 integration

Add https://mydomain/social-auth/complete/google-oauth2/ to Authorized Redirect URLs

To register the app visit https://developers.google.com/identity/sign-in/web/sign-in

To edit the app visit https://console.developers.google.com/apis/dashboard

SSL Certificates

Easiest way to load on SSL certificates is using Certbot:

$ certbot --nginx -d aws.filips -d www.aws.filips --nginx-server-root=/usr/local/nginx/conf --nginx-ctl=/usr/local/nginx/sbin/nginx

django-rest-beautifly's People

Contributors

janfilips avatar

Stargazers

 avatar ranjanprj avatar

Watchers

James Cloos avatar  avatar

django-rest-beautifly's Issues

upcoming races crashes on when the last race finished and the new one haven't strated yet

File "/usr/local/lib64/python3.6/site-packages/django/core/handlers/exception.py" in inner
34. response = get_response(request)

File "/usr/local/lib64/python3.6/site-packages/django/core/handlers/base.py" in _get_response
115. response = self.process_exception_by_middleware(e, request)

File "/usr/local/lib64/python3.6/site-packages/django/core/handlers/base.py" in _get_response
113. response = wrapped_callback(request, *callback_args, **callback_kwargs)

File "/usr/local/lib64/python3.6/site-packages/django/views/decorators/csrf.py" in wrapped_view
54. return view_func(*args, **kwargs)

File "/usr/local/lib64/python3.6/site-packages/django/views/generic/base.py" in view
71. return self.dispatch(request, *args, **kwargs)

File "/usr/local/lib/python3.6/site-packages/rest_framework/views.py" in dispatch
505. response = self.handle_exception(exc)

File "/usr/local/lib/python3.6/site-packages/rest_framework/views.py" in handle_exception
465. self.raise_uncaught_exception(exc)

File "/usr/local/lib/python3.6/site-packages/rest_framework/views.py" in raise_uncaught_exception
476. raise exc

File "/usr/local/lib/python3.6/site-packages/rest_framework/views.py" in dispatch
502. response = handler(request, *args, **kwargs)

File "/var/www/ioi-game/ioi/game/views.py" in get
122. ).order_by("-pk")[0]

File "/usr/local/lib64/python3.6/site-packages/django/db/models/query.py" in getitem
309. return qs._result_cache[0]

Exception Type: IndexError at /ioi/races/upcoming/
Exception Value: list index out of range

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.