Giter Site home page Giter Site logo

likelion-lottesinmungo's Introduction

MyeongHwan Lee

         

  • 애플 디벨로퍼 아카데미 (2022)
  • SW 마에스트로 14기 (2023)
  • 당근 (2024)

likelion-lottesinmungo's People

Contributors

binbin-hub avatar chajuhui123 avatar gobans avatar ina106 avatar jaehoonkimm avatar minjung0067 avatar

Watchers

 avatar  avatar

likelion-lottesinmungo's Issues

fix: Apply template.html other html files

In app/templates, Apply templates.html to other html files, use code block.
like following that,

{% extends "template.html" %}
{% load static %}

{% block title %}
{% endblock title %}

{% block contents %}
{% endblock contents %}

feat: Create signin signup signout

로그인 기능을 request.session에 user id에 넣는 것으로 구현 했습니다.

user_id = request.session.get('user')
if user_id :
    myuser_info = myUser.objects.get(pk=user_id)  #pk : primary key
    return render(request, 'index.html', {'user':myuser_info, 'user_authentication':True}) 

request.session 에서 user_id 를 갖고와 현재 로그인 되어있는 myUser 모델을 불러와 사용할 수 있습니다.
user_authentication로 로그인이 인증이 필요한 곳에 사용할 수 있습니다.

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.