2024-12-14.15-12-33.mp4
A Flask-based web application that serves as a comprehensive biosecurity guide for agricultural pests and weeds. This platform provides targeted information and management capabilities for different user roles including Agronomists, Staff, and Administrators.
- User Role Management: Distinct interfaces and capabilities for Agronomists, Staff, and Administrators
- Comprehensive Guide: Detailed information about agricultural pests and weeds
- Responsive Design: Mobile-friendly interface with Bootstrap CSS
- Image Management: Support for pest and weed image uploads and management
- Secure Authentication: Role-based access control and secure password handling
- Python 3.8+
- MySQL Server
- Modern web browser
Flask==3.0.2
mysql-connector-python==8.3.0
Werkzeug==3.0.1
WTForms==3.1.2
- Clone the repository:
git clone https://github.com/ChanMeng666/biosecurity.git
- Install required packages:
pip install -r requirements.txt
- Configure MySQL database:
# config.py class Config(object): SECRET_KEY = '123456' DATABASE_URI = 'mysql://root:123456@localhost/biosecurity'
- Agronomists: View and access detailed pest and weed information
- Staff: Manage guide content and agronomist profiles
- Administrators: Full system access including user management
- Role differentiation with specific permissions
- User management with role associations
- Efficient data handling and storage
- Support for image management
The application is deployed on PythonAnywhere and can be accessed at 1160210.pythonanywhere.com
Role | Username | Password |
---|---|---|
Agronomist | agro1 | 123qweASD@ |
Staff | staff1 | 123qweASD@ |
Admin | admin1 | 123qweASD@ |
Role | Username | Password |
---|---|---|
Admin | hello777 | 1234qweASD@ |
Admin | admin0 | 123qweASD@ |
Staff | staff1 | 123qweASD@ |
Agronomist | agro1 | 123qweASD@ |
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
PythonAnywhere: 1160210.pythonanywhere.com
Created and maintained by Chan Meng.