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
{% extends "layout.html" %} | |
{% block content %} | |
<div class="container"> | |
<div class="row"> | |
<div class="col-12"> | |
<div class="alert alert-primary" role="alert"> | |
Merhaba {{name}} | |
</div> | |
</div> | |
</div> |
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,render_template,request,redirect | |
app = Flask(__name__) | |
@app.route('/',methods=["GET","POST"]) | |
def index(): | |
if request.method == "GET": | |
return render_template("index.html") | |
if request.method == "POST": | |
name = request.form.get("name") |
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
{% extends "layout.html" %} | |
{% block content %} | |
<div class="container"> | |
<div class="row d-flex justify-content-center"> | |
<div class="col-6 pt-5 pb-5 border border-primary rounded"> | |
<form action="/" method="POST"> | |
<div class="form-group"> | |
<label for="exampleInputEmail1">Email</label> | |
<input type="text" class="form-control" name ="name"aria-describedby="emailHelp" placeholder="Email..."> |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>{% block title %}{% endblock %}</title> | |
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous"> | |
</head> | |
<body> |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Merhaba Flask</title> | |
</head> | |
<body> | |
<b>Merhaba Flask</b> |
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
#app.py kodları | |
from flask import Flask,render_template | |
app = Flask(__name__) | |
@app.route('/') | |
def index(): | |
return render_template('index.html') | |
app.run() |
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
/********************************************************************* | |
LZ 77, 78, W Algorithms | |
------------------- | |
_ | |
___ ___ __| | ___ _____ ___ __ ___ | |
/ __/ _ \ / _` |/ _ \ / _ \ \/ / '_ \ / _ \ | |
| (_| (_) | (_| | __/ | __/> <| |_) | (_) | | |
\___\___/ \__,_|\___| \___/_/\_\ .__/ \___/ | |
|_| | |