Env Versions.
Name | Version |
---|---|
CentOS | 7.8 |
Python | 3.8.3 |
Django | 3.0.6 |
Docker | 1.13 |
MariaDB | 10.4 |
MongoDB | 4.2.7 |
$ yum install zlib-devel bzip2 bzip2-devel readline-devel sqlite sqlite-devel git gcc openssl-devel libffi-devel bzip2-devel wget
$ curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash
$ vi ~/.bashrc
# INSERT BELOW
export PATH="$HOME/.pyenv/bin:$PATH"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
$ source ~/.bashrc
Check available python versions before develop.
$ pyenv install --list | grep -v - |tail
Install python 3.8.3
$ pyenv install 3.8.3
$ pyenv versions
$ mkdir /home/django_sample
$ cd /home/django_sample
$ pyenv local 3.8.3
$ pip install --upgrade pip
$ pip install virtualenv
$ virtualenv dm_venv
$ source dm_venv/bin/activate
(When want stop, $ deactivate)
$ python -m pip install Django
$ python -m django --version
Install Docker and create MariaDB, MongoDB Container.
See the install_docker.md for more information.
$ yum install mariadb-devel
$ pip install mysqlclient
Name | Ref |
---|---|
1.Setup Django | Setup Django |
2.App | Django App |
3.Model | Django Model |
Pycharm | Pycharm sets the HTML file auto-complete code or label for Django templates http://www.programmersought.com/article/790273239/ |
4.View | Django View |
5.Signup, Login | Django Signup, Login |
6.Setup MongoDB | Setup MongoDB |
7.MongoDB With Django | MongoDB With Django |