wsl 기준
miniconda 설치 후, 실행
conda create -n django python=3.10
conda activate django
pip install 'django<5' # 4.x 버전 사용
mkdir {프로젝트폴더}
cd {프로젝트폴더}
django-admin startproject config .
python manager.py runserver
# 일반적인 개발 순서
1. app 생성
python manager.py startapp {app명}
2. settings.py 에 app 추가 (INSTALL_APPS)
3. model 구현
4. 데이터베이스 마이그레이션
5. 어드민사이트에 모델 관리 추가
6. view 구현
7. template 생성
8. settings.py 에 template 구성정보 추가
TEMPLATES_DIR = BASE_DIR / 'templates'
...
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [TEMPLATES_DIR],
...
# 유용한 도구
DB Browser for SQLite 설치
Downloads - DB Browser for SQLite
Downloads - DB Browser for SQLite
(Please consider sponsoring us on Patreon 😄) Windows Our latest release (3.13.1) for Windows: Free code signing provided by SignPath.io, certificate by SignPath Foundation. Windows PortableApp There is a PortableApp available, but it’s still the previ
sqlitebrowser.org
난 wsl 이라 리눅스 용 설치하는데 Rocky Linux8 설치 방법이 없다. ( Fedora 가 있지만 패키지가 없다고 나온다.. )
epel-release 저장소를 추가 한 후, 설치하면 된다.
sqlitebrowser-3.13.0-0.7.gita302128.el8.x86_64.rpm RHEL 8, Rocky Linux 8, AlmaLinux 8 Download
wget https://dl.fedoraproject.org/pub/epel/8/Everything/x86_64/Packages/e/epel-release-8-21.el8.noarch.rpm
rpm -Uvh epel-release-8-21.el8.noarch.rpm
dnf install sqlitebrowser