Skip to content
This repository has been archived by the owner on Feb 16, 2023. It is now read-only.

pastgift/seed-website-py

Repository files navigation

Seed Web Project in Flask (Python)

Summary

A Seed Web Project in Flask (Python) with basic functions.

Features

  • 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)

Dependency

See requirements.txt

Envionment Variables

Name Description Default
ADMIN_EMAIL Admin email
SECRET_KEY Flask secret key h3bF9paWv9nNfAEo
DEV_DB_CONN_URL Database connection URL sqlite:///current-path/db-dev.sqlite
PROD_DB_CONN_URL Database connection URL For Production sqlite:///current-path/db.sqlite
FLASK_CONFIG Config name (development, production) default (Same to development)

Setup Database

python manage.py initdb

Default Admin User

Email Name Password
$ADMIN_EMAIL admin admin!

Run for development

./run-dev.sh

Run for production

./run-deploy.sh

Run for production in supervisord

supervisord

Update Translation

./update-translations.sh

License

MIT

About

A Seed Web Project in Flask (Python) with basic functions.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published