Skip to content

Instantly share code, notes, and snippets.

View emregeldegul's full-sized avatar
🐍
Push It The The Limit

Yunus Emre Geldegül emregeldegul

🐍
Push It The The Limit
View GitHub Profile
from flask import render_template, Flask, jsonify
from flask_wtf import FlaskForm
from wtforms import StringField, SubmitField
app = Flask(__name__)
app.secret_key = 'CokGizliKey'
class UserCreateForm(FlaskForm):
name = StringField('Name')
surname = StringField('Surname')
server {
server_name <ip>;
location /static {
alias /home/<folder>/<project>/app/static;
}
location / {
proxy_pass http://localhost:<port>;
include /etc/nginx/proxy_params;