Coder Social home page Coder Social logo

m-kepler / keplerblog Goto Github PK

View Code? Open in Web Editor NEW
57.0 6.0 20.0 9.4 MB

Flask 入门项目

Home Page: https://kepler.pythonanywhere.com

Python 13.39% HTML 11.00% Mako 0.10% CSS 19.73% JavaScript 55.71% Shell 0.07%
flask blog sqlalchemy bootstrap python

keplerblog's Introduction

[TOC]

keplerblog

Typing SVG

说明

  • 博客测试地址

  • python manage.py --help 下有很多有用的命令

    # 创建数据库
    # create database if not exists keplerblog;
    
    cd source/
    
    # 部署
    python manage.py deploy
    
    # 添加管理员
    python manage.py create_user
    
    # 生成测试数据
    python manage.py fake
    
    # 也可以单独构造用户、文章、评论测试数据
    # python manage.py userfake
    # python manage.py commonfake
    # python manage.py categoryfake
    
    # 创建账号
    python manage.py create_user
    
    # 查询全部用户
    python manage.py query_all

虚拟环境

# Python 3.9.5
python -m venv venvdir
source venvdir/bin/activate
pip install -r source/requirements/dev.txt

遇到的问题

本地启动

cd source/
# python manage.py dev
python wsgi.py

部署

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.