A web application project template based on Flask(Python).
Welcome to Web App Template project (WAT). This project is aimed to provide the common programming works and let the developers focus on their business logic.
Notice that ths project is NOT a framework or someting else, it's just a semi-finished web app. Copy the project to your workplace and be free to change any code in the project.
WAT is base on Flask, and of course you can use all the original programming APIs provided by Flask.
- Basic Authentication
- Password
- CAPTCHA (With
Pillow
)
- User Management
- Add User
- Edit User (include Resetting Password)
- Enable / Disable User
- Search User
- ACL Support
- User Operation Records
- Search Record
- Multi-Language (With
Flask-Babel
)- English
- Simplified Chinese
- Traditional Chinese
- Japanese
- Deploy Ready (With
gunicorn
,supervisord
)
See requirements.txt
Name | Description | Default |
---|---|---|
ADMIN_USERNAME | Admin username | |
SECRET_KEY | Flask secret key | h3bF9paWv9nNfAEo |
WAT_DB_DEV_URL | Database connection URL | sqlite:///current-path/db-dev.sqlite |
WAT_DB_URL | Database connection URL For Production | sqlite:///current-path/db.sqlite |
FLASK_CONFIG | Config name (development , production ) |
default (Same to development ) |
python manage.py initdb
Name | Password | |
---|---|---|
$ADMIN_USERNAME |
admin |
admin! |
./manage.py runserver -h localhost -p 9999
gunicorn -b localhost:8000 -c gunicorn.conf manage:app
supervisord
./update-translations.sh