Django 开发实战项目


安装 django

conda env list
conda create --name py3 python=3
conda activate py3
# conda deactivate
# conda env remove --name py3 --all
conda install django
django-admin startproject project_name
python manage.py makemigrations
python manage.py migrate
python manage.py createsuperuser
python ./manage.py runserver 0.0.0.0:8080
python manage.py startapp jobs

设置 pyCharm

Preferences/Python Interpreter 设置 interupter,安装 Django

替换技巧

替换行首

^

替换行尾

$

替换等号后面的内容

=.*$

LDAP

表头 表头
dn Distingulshed Name
ou 区域
cn common name