# qiweb_admin_index_2025etf **Repository Path**: qiweb/qiweb_admin_index_2025etf ## Basic Information - **Project Name**: qiweb_admin_index_2025etf - **Description**: 一个通用的python 网站首页导航,加后台配置管理一体的代码工程 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-08-25 - **Last Updated**: 2025-09-09 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Index Setting Management System A Flask-based web application for managing index settings, announcements, banners, and quick access links with an admin interface. ## Features - **Admin Dashboard**: Manage all site settings through an intuitive admin interface - **Announcement Management**: Create and update site announcements - **Banner Management**: Upload and manage banner images - **Quick Access Links**: Configure quick navigation links - **Responsive Design**: Works on desktop and mobile devices ## Project Structure ``` indexSeting/ ├── admin.py # Main application file with routes and configurations ├── instance/ │ └── index_settings.db # SQLite database file ├── static/ │ └── uploads/ # Directory for uploaded files (images, etc.) └── templates/ ├── financial_app.html # Frontend template for financial application └── index_setting.html # Admin interface template ``` 动态管理 ![管理页面.jpg](imgs/%E7%AE%A1%E7%90%86%E9%A1%B5%E9%9D%A2.jpg) 首页导航 2025年8月25日11:31:20 ![首页.jpg](imgs/%E9%A6%96%E9%A1%B5.jpg) http://localhost:5000/admin/setting pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple Flask-SQLAlchemy ## Prerequisites - Python 3.6+ - pip (Python package manager) ## Installation 1. Clone the repository: ```bash git clone cd indexSeting ``` 2. Create a virtual environment (recommended): ```bash python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate` ``` 3. Install the required packages: ```bash pip install -r requirements.txt ``` ## Configuration 1. Set up the environment variables: ```bash # Windows set FLASK_APP=admin.py set FLASK_ENV=development # Linux/MacOS export FLASK_APP=admin.py export FLASK_ENV=development ``` 2. Initialize the database: ```bash flask shell >>> from admin import db >>> db.create_all() >>> exit() ``` ## Running the Application ```bash flask run ``` Access the application at `http://127.0.0.1:5000/` ## Admin Access Access the admin dashboard at `http://127.0.0.1:5000/admin/setting` http://47.116.207.108:8169/ http://47.116.207.108:8168/ ## File Uploads - Supported file types: PNG, JPG, JPEG, GIF - Maximum file size: Configured in Flask settings - Uploads are stored in: `static/uploads/` ## Database The application uses SQLite by default, with the database file located at `instance/index_settings.db`. ## Security Notes - Change the `SECRET_KEY` in `admin.py` before deploying to production - Ensure proper file upload validation is in place - Implement user authentication for admin access in production ## License [Specify your license here] ## Contributing [Add contribution guidelines if applicable] ## Support [Add support information or contact details]