Property Decorator in Django

Django novices (including myself) might be curious about whether a field in a Django model can be set with a manual arithmetic or logical formula. If

2일 전
·
0개의 댓글

Instance, Static, Class Methods in Python

The most common type of methods in Python classes, instance methods are called as they are because they can and should access unique data of each inst

2일 전
·
0개의 댓글

Django Select_Related, Prefetch_Related

select_related and prefetch_related can significantly improve our query performance.According to the Django documentation:select_related(\*fields) ret

2020년 5월 25일
·
0개의 댓글
post-thumbnail

Shoot for a Clean, Elegant URL Scheme

When a user requests a page from a Django-powered site, Django first determines the root URLconf module to use. Django then loads that Python module a

2020년 5월 24일
·
0개의 댓글

[API][Instagram] Signup / Login / Login Decorator

When using postman, always use double quotesWhen login is successful, always return the token after performing .decode('utf-8') operation. JWT.encode(

2020년 5월 23일
·
0개의 댓글
post-thumbnail

Django Initial Settings Before Building a Website

This post discusses some required settings to initialize for Django before starting a development project. Create .gitignore file for your project fro

2020년 5월 23일
·
0개의 댓글
post-thumbnail

MySQL Cheatsheet

mysql -u root -p password 입력 show databases use dtabase_name show tables create database starbucks character set utf8mb4 collate utf8mb4generalci; d

2020년 5월 23일
·
0개의 댓글

Login, Logout, Registration

Some information on a website should be prohibited to users who have logged in, and other information should be open to the public. How does a website

2020년 5월 23일
·
0개의 댓글
post-thumbnail

Authentication & Authorization

One of the most commonly implemented feature in APIs. It is a process of confirming the user's identification, such as checking the user's ID and pass

2020년 5월 18일
·
0개의 댓글

Data Structures List, Tuple

Types of Data Structures Array(List) storing data in insertion order, iterable mutable allow repeting elements multi-dimensional array is possible: a

2020년 5월 17일
·
0개의 댓글
post-thumbnail

Introduction to Databases

ACID ACID, which is an acronym that stands for Atomicity, Consistency, Isolation, and Durability, is a set of properties that guarantee reliable datab

2020년 5월 14일
·
0개의 댓글

Introduction to HTTP

Overview of HTTP TCP/IP based application layer protocol that allows web-based applications to communicate and exchange data. A stateless, connectionl

2020년 5월 13일
·
0개의 댓글

<Django> setattr() & getattr(), Null & Blank, Field Validations, query_set.exists()

According to the documentation, getattr(x, 'foobar') is equivalent to x.foobar, and setattr(x, 'foobar', 123) is equivalent to x.foobar = 123.It is ge

2020년 5월 11일
·
0개의 댓글

<Django> Introduction to Django Project-2

As described in previous post, a model contains the essential fields and behaviors of the data the user is storing. To create a polling app, we will n

2020년 5월 5일
·
0개의 댓글
post-thumbnail

Git & Github

VCS (Version Control System) controls versions of source codes.The simplest way would be using different file names.A complex and fancy way would be u

2020년 4월 29일
·
0개의 댓글

<Javascript>

What really happend is:If we want newNum to equal 2:Concatenating Texts with NumbersWhen a String element and a number element are added, the number e

2020년 4월 27일
·
0개의 댓글

<Python> Data Types & Exceptions

Exceptions When exception occurs, following codes won't run, and the program will shut down. Exception handling is required for the program to contin

2020년 4월 24일
·
0개의 댓글
post-thumbnail

Modules, Packages, How Import Works

Simply create a file and implement functions or classes that you wish to reuseImporting the moduleIt is critical to write the name of the module in fr

2020년 4월 23일
·
0개의 댓글

<Python> Function Parameters & Nested Functions

Nested function example:There are two reasons for using nested functions: (1) Readability and (2) Closure. Nested functions can effectively rearrange

2020년 4월 23일
·
0개의 댓글