Back end/django
-
DB 연결Back end/django 2023. 9. 13. 10:09
* Maria db Enter password: **** Welcome to the MariaDB monitor. Commands end with ; or \g. Your MariaDB connection id is 5 Server version: 11.1.2-MariaDB mariadb.org binary distribution Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. MariaDB [(none)]> creat database kicdb -> ; ERROR 1064 (42000): ..
-
django 흐름Back end/django 2023. 9. 11. 09:24
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): """Run administrative tasks.""" os.environ.setdefault("DJANGO_SETTINGS_MODULE", "kicwebpro.settings") try: from django.core.management import execute_from_command_line except ImportError as exc: raise ImportError( "Couldn't import Django. Are you sure it's installed and " "availab..
-
django (업뎃예정)Back end/django 2023. 9. 8. 09:48
* Manual 1) pip install django python -m diango --version #버젼 확인 2) project의 workspace 결정 folder를 workspace 이동 #C:\Users\KITCOOP\pyworkspace\django 3) django-admin startproject kicwebpro #project 만들어짐 ..>cd kicwebpro ..>dir 확인 (manage.py) 4) settings.py 수정한다 # LANGUAGE_CODE = "en-us" LANGUAGE_CODE = "ko-kr" #1 #TIME_ZONE = "UTC" TIME_ZONE = "Asia/Seoul" #2 #USE_TZ = True USE_TZ = False #3 STATIC..