swingerApp
一個將Swinger套用到django上的套件
Getting Started
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
Prerequisities
- OS:Ubuntu / OSX would be nice
- environment:need python3
sudo apt-get update; sudo apt-get install; python3 python3-dev
Installing
- 使用虛擬環境 Use virtualenv is recommended:
virtualenv venv
- 啟動方法 How to activate virtualenv
- for Linux:
. venv/bin/activate
- for Windows:
venv\Scripts\activate
- 安裝 Install:
pip install swingerApp
Running & Testing
Run
-
settings.py
裏面需要新增swingerApp
這個app:
-
add this:
INSTALLED_APPS=[ ... ... ... 'swingerApp', ]
-
urls.py
需要新增下列代碼 把所有swinger
開頭的request都導向到swingerApp
這個app:
-
add this:
# swingerApp import swingerApp.urls urlpatterns += [ url(r'^swinger/', include(swingerApp.urls)) ]
-
python manage.py runserver
:即可進入頁面127.0.0.1:8000/swinger
測試 swinger 是否安裝成功。
Break down into end to end tests
not yet.
And coding style tests
目前沒有coding style tests...
Deployment
swingerApp is a django-app, so depends on django project.
swingerApp 是一般的django插件,所以必須依存於django專案
Built With
- python3.5
- pymongo
Versioning
For the versions available, see the tags on this repository.
Contributors
- 張泰瑋 david
License
This package use GPL3.0
License.