Skip to content

yuki5155/django_sso_auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Getting Started

Build the Django Project

create those available pages with the render function

example


def login_top(request):

    return render(request, 'top/index.html')

def callback(request):

    return render(request, 'top/callback.html')


def mypage(request):
   
    return render(request, 'top/mypage.html')

Run the redis container(recommended)

For saving cashe, usage of redis is recommended as more helpful features

The django default cache version may be upcomming

Run those command on your command line


docker run -p 6379:6379 redis

Run the MySQL container(recommended)

Dockerfile


FROM mysql

ENV MYSQL_ROOT_PASSWORD=sample
ENV MYSQL_DATABASE=sample
ENV MYSQL_USER=sample
ENV MYSQL_PASSWORD=sample

run those commands on your commandline


docker build -t mysql/test .
docker run mysql/test

For Twitter

  • create an account
  • build a project
  • generate API KEY and Secret
  • set the callback url

DOC

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages