https://github.com/uinika/jungle
Another Django2 boilerplate !
https://github.com/uinika/jungle
django django2 python python3
Last synced: 13 days ago
JSON representation
Another Django2 boilerplate !
- Host: GitHub
- URL: https://github.com/uinika/jungle
- Owner: uinika
- Created: 2018-12-26T13:48:01.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-02-01T04:55:45.000Z (over 7 years ago)
- Last Synced: 2025-07-08T00:52:17.398Z (11 months ago)
- Topics: django, django2, python, python3
- Language: Python
- Homepage: https://github.com/uinika/jungle
- Size: 549 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Jungle

## 安装步骤
### 建立虚拟环境
```cmd
C:\Workspace\django
λ python -m venv venv
```
### 激活虚拟环境
```cmd
C:\Workspace\django
λ .\venv\Scripts\activate.bat
(venv) λ
```
### 升级 Pip 包管理器
```cmd
C:\Workspace\nfc-cloud (master -> origin)
(venv) λ python -m pip install --upgrade pip
Collecting pip
Using cached https://files.pythonhosted.org/packages/c2/d7/90f34cb0d83a6c5631cf71dfe64cc1054598c843a92b400e55675cc2ac37/pip-18.1-py2.py3-none-any.whl
Installing collected packages: pip
Found existing installation: pip 10.0.1
Uninstalling pip-10.0.1:
Successfully uninstalled pip-10.0.1
Successfully installed pip-18.1
```
### 安装项目依赖包
```cmd
pip install -r requirements.txt
```
## 同步 SQLite 数据库
生成 migrations 文件。
```cmd
C:\Workspace\cloud-key\mysite (master -> origin)
(venv) λ python manage.py makemigrations nfc
Migrations for 'nfc':
nfc\migrations\0001_initial.py
- Create model NfcKey
```
执行 migrations 文件。
```cmd
C:\Workspace\cloud-key\mysite (master -> origin)
(venv) λ python manage.py migrate
Operations to perform:
Apply all migrations: admin, auth, contenttypes, nfc, sessions
Running migrations:
Applying contenttypes.0001_initial... OK
Applying auth.0001_initial... OK
Applying admin.0001_initial... OK
Applying admin.0002_logentry_remove_auto_add... OK
Applying admin.0003_logentry_add_action_flag_choices... OK
```
### 启动 Django 服务
```cmd
(venv) λ python manage.py runserver 8080
Performing system checks...
System check identified no issues (0 silenced).
January 03, 2019 - 21:31:48
Django version 2.1.4, using settings 'mysite.settings'
Starting development server at http://127.0.0.1:8080/
Quit the server with CTRL-BREAK.
```