This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# INCREMENTAL PYTHON CODE - REMOVED ID ATTRIBUTE FROM THE __INIT__() & __REPR__() METHODS contd., | |
# OF THE PUBLICATION TABLE TO ENABLE AUTO-POPULATION | |
# SECTION 5: LECTURE: 23 | |
from flask import Flask, render_template, request | |
from flask_sqlalchemy import SQLAlchemy | |
from datetime import datetime | |
app = Flask(__name__) | |
app.config.update( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# PYTHON CODE FOR SECTION 7: LECTURE 30 - SESSION OBJECT | |
# USE WITH THE HTML FILE PROVIDED | |
# SEE CODE IN LINE 127 | |
from flask import Flask, render_template, request, session, g | |
from flask_sqlalchemy import SQLAlchemy | |
from datetime import datetime | |
app = Flask(__name__) | |
app.config.update( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# HTML FOR SECTION 7: LECTURE 30 - SESSION OBJECT | |
# USE WITH THE PYTHON FILE PROVIDED | |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>session info</title> | |
</head> | |
<body> |
OlderNewer