PyCharm Web Magic: Building a Pinterest Clone

JetBrains · 70K views · 2013 · 23:15

Open on YouTube

Web developmentTesting, debugging & developer toolsPython, Ruby & scripting languagesdemodated

Why Stack Overflow recommends it

Stack Overflow users link it as a worked example of a Flask backend with SQLAlchemy and AngularJS, and as a tutorial to follow for setting up a Flask SQLite database.

Recommended by 2 people across 2 different months, 2014 to 2017.

What it is

A 2013 JetBrains conference-style demo in which John Lindquist builds and deploys a Pinterest clone using PyCharm Professional, Flask, SQLAlchemy, Flask-Restless, AngularJS, HTML, CSS and JavaScript. It shows PyCharm's database, web and JavaScript tooling in a single end-to-end workflow.

What people said

Recommends Bijan · 2014-02 · Stack Overflow · on “Typical AngularJS workflow and project structure (with Python Flask)”

This official Jetbrains PyCharm video by John Lindquist (angular.js and jetbrains guru) is a nice starting point as it shows the interplay of webservice, database and angular.js within flask. He builds a pinterest clone with flask, sqlalchemy, flask-restless and angular.js in less than 25 minutes. Enjoy: [this video]

Recommends Ammar Faris · 2017-04 · Stack Overflow · on “User registration and login possible with just flask and sqlite3?”

the initial part of the Youtube video by JetBrains (creator of the famous PyCharm IDE) [this video] may be able to help and explain to you on how to setup the database using flask, sqlite3 and SQLAlchemy, here is the snippet of the code: from flask import Flask from flask_sqlalchemy import SQLAlchemy from sqlalchemy import Integer, Column, Text app = Flask(__name__) app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///pin.db' db = SQLAlchemy(app) class Pin(db.Model): id = Column(Integer, primary_key=True) title = Column(Text, unique=False) image = Column(Text, unique=False) db.create_all()

Cites Marcus Ottosson · 2014-10 · Stack Overflow · on “static_url_path and variable rules”

Variable rules [LINK] isn't working as I'd expect when static_url_path [LINK] is used. Simply, why does this work: import flask app = flask.Flask(__name__) @app.route("/", defaults={"p": "") @app.route("/<path:p>") def main(p): return "<h1>Hello %s</h1>" % p if __name__ == '__main__': app.run(debug=True) But not this? import flask app = flask.Flask(__name__, static_url_path="") @app.route("/", defaults={"p": "") @app.route("/<path:p>") def main(p): return "<h1>Hello %s</h1>" % p if __name__ == '__main__': app.run(debug=True) Note the added static_url_path Some background details; I'm new to both Flask and AngularJS, but are using them here in conjunction with each other and for those not fam

Cites Eigen · 2016-02 · Stack Overflow · on “SQL Lite Database not being Created Pycharm using SQL Flask Alchemy and version 3.4”

I've searched for this answer for the past day and a half and I think my issue has something to do with my Pycharm Settings. When I run the code below I don't get any errors but the database file never gets created. I'm trying to recreate the app following this tutorial: [this video] from flask import Flask from flask.ext.sqlalchemy import SQLAlchemy app = Flask(__name__) app.config['SQLALCHEMY_DATABASE__URI'] = 'sqlite:///pin.db' db = SQLAlchemy(app) class Pin(db.Model): id = db.Column(db.Integer, primary_key=True)`enter code here` title = db.Column(db.Text, unique=False) image = db.Column(db.Text, unique=False) db.create_all() @app.route('/') def hello_world(): return 'Hello World!' app.debug =