tech 409

21/07/13 TicTacToe - COMPOSER SCENE & PLAYER CHARACTERS: The first step in creating our Game Play file.

https://youtu.be/Ew8Ikkfy6Es ``` local composer = require( "composer" ) local scene = composer.newScene() -- ----------------------------------------------------------------------------------- -- Code outside of the scene event functions below will only be executed ONCE unless -- the scene is removed entirely (not recycled) via "composer.removeScene()" -- ----------------------------------------..

tech/game 2021.07.13

21/06/24 stock dashboard 만들기 #4 tiingo api 사용 (외국 finance data)

views.py 변경 stock 함수 내용 수정 requests, json 추가 stock_info 변수에 저장에서 넘겨줌 from django.shortcuts import render import requests import json def index(request): return render(request, 'stock/index.html', {}) def stock(request): headers = { 'Content-Type': 'application/json' } api_requests = requests.get('https://api.tiingo.com/tiingo/daily/aapl/prices?startDate=2021-01-02&tok..

tech/finance 2021.06.24

21/06/24 stock dashboard 만들기 #3 (bootstrap style) 적용

https://getbootstrap.com/ 에서 Starter Template https://getbootstrap.com/docs/5.0/getting-started/introduction/ templates/template_bootstrap.html 추가 {% url '변수이름' %} : django urls.py name 변수 사용 동적으로 적용 {% url 'stock' %} 아래 예제 참고 My Dasboard My Stock Search {% block content %} {% endblock%} template/home.html 적용 {% extends 'template_bootstrap.html' %} {% block content %} This is Home Page {% endblo..

tech/finance 2021.06.24