Skip to content

TSkrebe/BlogPy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple flask website

Writen with python3

Instructions:

  1. Clone this project

  2. Open config.py file and change variables SECRET_KEY, DATABASE, etc.

  3. Create virtual environment and install dependencies from requirements.txt file: pip install -r requirements.txt

  4. Depending on your DB you will need to install additional dependencies

  5. To create a database and tables you will need to run these command lines

  6. python startup.py db init

  7. python startup.py db migrate

  8. python startup.py db upgrade

  9. Now you can start website by executing python startup.py runserver -h 0.0.0.0

  10. If you want to access admin panel (which you probably want) you will need to create a row in "users" table. To do that simply write python startup.py add_user

  11. repeat step 4 and go to www.ipaddress:port/login

  12. Enjoy your website

More info

Flask provided webserver should not be used in production applications. To have fully functioning website read about Gunicorn and nginx.

About

Personal website

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published