본문 바로가기

반응형

전체 글

(202)
Django all-auth 로그인 연동 https://django-allauth.readthedocs.io/en/latest/installation.html Installation — django-allauth 0.43.0 documentation Post-Installation In your Django root execute the command below to create your database tables: Now start your server, visit your admin pages (e.g. http://localhost:8000/admin/) and follow these steps: Add a Site for your domain, matching settings.SITE_ID django-allauth.readthedoc..
powershell 실행 정책 변경하기 https://docs.microsoft.com/ko-kr/powershell/module/microsoft.powershell.core/about/about_execution_policies?view=powershell-7.2 실행 정책 정보 - PowerShell PowerShell 실행 정책에 대해 설명 하 고 관리 하는 방법을 설명 합니다. docs.microsoft.com powershell 실행 시 권한이 없다고 나오는 경우에 아래 명령을 수행하면 된다. Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
작성한 PowerShell을 Windows Task Scheduler를 이용하여 작업 반복하기 1. "Windows+R" 키를 눌러서 나오는 창에 "taskschd.msc"를 입력하여 Task Scheduler를 연다. 2. Create Task를 눌러서 새로 작성한다. 3. General Tab의 Name에 적절한 이름을 적어 준다. 4. Run whether user is logged on or not을 선택해서 로그인 여부와 상관 없이 실행되도록 한다. 5. Run with highest privileges를 선택하여 최고 권한으로 실행되게 한다. 6. Trigger tab에서 on a schedule 상태에서 Daily를 선택하고 recur every 1 day로 선택하면 매일 수행하게 된다. 7. Advanced settings에서 Repeat task every 옵션을 선택하고 5 m..
Markdownx 사용하기 https://neutronx.github.io/django-markdownx/ Django Markdownx Django MarkdownX Django MarkdownX is a comprehensive Markdown plugin built for Django, the renowned high-level Python web framework, with flexibility, extensibility, and ease-of-use at its core. GitHub: https://github.com/neutronX/django-markdownx PyPi: ht neutronx.github.io 설치하기 $ pip install django-markdownx Collecting django-markdo..
Django-crispy-form을 설치하기 https://github.com/django-crispy-forms/crispy-bootstrap5 GitHub - django-crispy-forms/crispy-bootstrap5: Bootstrap5 template pack for django-crispy-forms Bootstrap5 template pack for django-crispy-forms. Contribute to django-crispy-forms/crispy-bootstrap5 development by creating an account on GitHub. github.com 폼의 디자인을 향상하기 위해 django-crispy -form을 사용할 수 있다. 설치하기 pip install django-crispy-forms s..
Python strip() https://docs.python.org/3.4/library/stdtypes.html?highlight=strip 4. Built-in Types — Python 3.4.10 documentation The following sections describe the standard types that are built into the interpreter. The principal built-in types are numerics, sequences, mappings, classes, instances and exceptions. Some collection classes are mutable. The methods that add, subtract, docs.python.org strip functi..
Django Shell Plus 고급스러운 shell 사용하기 설치 $ pip install django_extensions Collecting django_extensions Downloading django_extensions-3.1.5-py3-none-any.whl (224 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 224.2/224.2 KB 4.6 MB/s eta 0:00:00 Requirement already satisfied: Django>=2.2 in ./venv/lib/python3.8/site-packages (from django_extensions) (4.0.2) Requirement already satisfied: sqlparse>=0.2.2 in ./venv/lib/pyt..
Compile Language & Interpreter Language 내가 익숙한 complie Language는 Java 언어 & Spring Framework 이다. 올해 계속 새로운 Language인 python & Django를 이용해서 사이트를 제작하는 중이다. Compile 언어는 Source 파일 내에서 순서가 중요하지 않았다. 왜냐하면 Compiler가 Source를 Compile 함으로써 실행을 위한 파일을 생성할 때 앞뒤를 잘 맞춰서 만들어주기 때문인다. 하지만 javascript 처럼 Python도 interpreter 언어이다. 그래서 파일 내에서의 순서가 중요하다. 아래와 같이 작성하면 Unresolved reference 'Category' 에러가 발생한다. from django.db import models # Create your models ..

반응형