Skip to content

ghlaunchcode/build-a-blog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

== QuickUP

XX WrongWay XX

$ ./main.py

TODO: rename app.py


== LC101 formal method

create a python virtual environment

$ virtualenv --python=python3

switch user to root

$ su

run environment

# python main.py

== Create initial Database

>>> from app import g_db,BlogEntry
>>> g_db.create_all()

=== Add new entry
>>> new_entry = BlogEntry("First","This is the first (initial) entry")
>>> g_db.session.add(new_entry)
>>> g_db.session.commit()

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published