Code Monkey home page Code Monkey logo

itnsa's Introduction

Flask Web Application Project

A web application using Flask.

How to use

Installation

# Clone the repository
git clone https://github.com/hdaojin/itnsa.git
cd itnsa

# Create a virtual environment
python3 -m venv .venv

# Activate the virtual environment (Linux, macOS)
source .venv/bin/activate

# Activate the virtual environment (Windows)
.venv\Scripts\activate

# Install the requirements
pip install -r requirements.txt

Configuration

# Set the default configuration of the application
vim config.py

# Generate a secret key
python utils/gen_seckey.py

# Set the environment variables
cp .env_simple .env
vim .env

Run the application

# Run the application
flask  --app itnsa --debug run

Initial setup

Initialize the database using flask-migrate:

# flask --app itnsa db init
# flask --app itnsa db migrate -m "init"
flask --app itnsa db upgrade

Import the default data using the following commands:

flask --app itnsa init-app
flask --app itnsa add-admin

itnsa's People

Contributors

hdaojin avatar

Watchers

 avatar

itnsa's Issues

删除自己的日志会报错

1
2

在日志界面删除自己的日志会报错:
Internal Server Error 内部服务器错误

The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.
服务器遇到内部错误,无法完成您的请求。服务器过载或应用程序出现错误。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.