使用者註冊及管理
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.
- OS:Ubuntu / OSX would be nice
- environment:need python3
Linux:
sudo apt-get update; sudo apt-get install; python3 python3-dev libmysqlclient-dev libmemcached-dev zlib1g-dev
OSX:brew install python3
git clone https://github.com/Stufinite/userpool.git
- 使用虛擬環境:
- 創建一個虛擬環境:
virtualenv venv
- 啟動方法
1. for Linux:
. venv/bin/activate
2. for Windows:venv\Scripts\activate
pip install -r requirements.txt
- 第一次的時候,需要先初始化資料庫:
python migrate
- Execute :
python manage.py runserver
. If it work fine on here , then it's done. Congratulations~~
目前還沒寫測試...
目前沒有coding style tests...
輸入相對應的url pattern就會到相對應的頁面:
127.0.0.1:8000
:就會到登入及註冊的頁面127.0.0.1:8000/accounts/profile/
:就會到帳號管理的頁面
There is no difference between other Django project
You can deploy it with uwsgi, gunicorn or other choice as you want
userpool
是一般的django專案,所以他佈署的方式並沒有不同
- python3.5
- Django==1.10.4
- libmysqlclient-dev
- libmemcached-dev
- zlib1g-dev
- 黃川哲 cjhwong