This file contains 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
-- | |
-- Table structure for table "site_cities" | |
-- | |
DROP TABLE IF EXISTS "site_cities" CASCADE; | |
CREATE TABLE "site_cities" ( | |
"city_id" serial NOT NULL, | |
"city_name" varchar(20) NOT NULL, | |
"plate_code" smallint NOT NULL, | |
"area_code" smallint NOT NULL, | |
"lat" decimal(20,8) NOT NULL, |
This file contains 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
from flask import Flask, request, jsonify | |
app = Flask(__name__) | |
app.secret_key = 'aib' | |
def homer(): | |
def home(): | |
return 'Ok' | |
return home |