-
+
From 2aa290147f88a90e46ed3e55eb0475c085b695c0 Mon Sep 17 00:00:00 2001 From: AsKsKenny <34576273+AsKsKenny@users.noreply.github.com> Date: Thu, 21 Jan 2021 09:32:50 +0100 Subject: [PATCH 04/34] Update index.html --- templates/index.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/templates/index.html b/templates/index.html index e04798051..e470c4079 100755 --- a/templates/index.html +++ b/templates/index.html @@ -170,8 +170,8 @@
+
Hey there {{name}}!
From 2aa290147f88a90e46ed3e55eb0475c085b695c0 Mon Sep 17 00:00:00 2001 From: AsKsKenny <34576273+AsKsKenny@users.noreply.github.com> Date: Thu, 21 Jan 2021 09:32:50 +0100 Subject: [PATCH 04/34] Update index.html --- templates/index.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/templates/index.html b/templates/index.html index e04798051..e470c4079 100755 --- a/templates/index.html +++ b/templates/index.html @@ -170,8 +170,8 @@
About
From 5185c187794ce589c25f24256dcb43c0294539e4 Mon Sep 17 00:00:00 2001
From: AsKsKenny <34576273+AsKsKenny@users.noreply.github.com>
Date: Thu, 21 Jan 2021 10:17:19 +0100
Subject: [PATCH 05/34] Update python_apps.html
---
templates/python_apps.html | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/templates/python_apps.html b/templates/python_apps.html
index cf743d352..34044de80 100644
--- a/templates/python_apps.html
+++ b/templates/python_apps.html
@@ -7,11 +7,11 @@
From 872c306533d6bf8645e0a6719c19d3d2ebd4c85e Mon Sep 17 00:00:00 2001
From: AsKsKenny <34576273+AsKsKenny@users.noreply.github.com>
Date: Thu, 21 Jan 2021 10:28:25 +0100
Subject: [PATCH 06/34] Add files via upload
---
templates/password_generator.html | 65 +++++++++++++++++++++++++++++++
1 file changed, 65 insertions(+)
create mode 100644 templates/password_generator.html
diff --git a/templates/password_generator.html b/templates/password_generator.html
new file mode 100644
index 000000000..65f2ea60d
--- /dev/null
+++ b/templates/password_generator.html
@@ -0,0 +1,65 @@
+{% extends "index.html" %}
+
+{% block title %}Password Generator{% endblock %}
+
+{% block content %}
+
+
+
+{% endblock %}
+
+{% block footer%}
+{% endblock %}
\ No newline at end of file
From aefdd8307fa392f9107da0cb49cef5ce23cc19ba Mon Sep 17 00:00:00 2001
From: AsKsKenny <34576273+AsKsKenny@users.noreply.github.com>
Date: Thu, 21 Jan 2021 10:28:44 +0100
Subject: [PATCH 07/34] Update app.py
---
app.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/app.py b/app.py
index 48485b6f4..3465b8661 100644
--- a/app.py
+++ b/app.py
@@ -89,6 +89,10 @@ def python_apps_page():
def contact():
return render_template('contact.html')
+@app.route('/password_generator')
+def password_generator():
+ return render_template('password_generator.html')
+
@app.route('/blog', methods=['GET'])
def blog_page():
return render_template('blog.html')
From dfbd5231594767aa9c4bb65db313d20bc05a9f68 Mon Sep 17 00:00:00 2001
From: AsKsKenny <34576273+AsKsKenny@users.noreply.github.com>
Date: Thu, 21 Jan 2021 10:34:59 +0100
Subject: [PATCH 08/34] Update password_generator.html
---
templates/password_generator.html | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/templates/password_generator.html b/templates/password_generator.html
index 65f2ea60d..da56206a1 100644
--- a/templates/password_generator.html
+++ b/templates/password_generator.html
@@ -1,6 +1,6 @@
{% extends "index.html" %}
-{% block title %}Password Generator{% endblock %}
+{% block title %}password_generator{% endblock %}
{% block content %}
@@ -62,4 +62,4 @@
+
+
-
+
- Let's Play! + Python App Showcase
+
Simple Python Apps
- Let's Play! + Python App Showcase
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Let's Add some numbers! +
+ + Let's Add some numbers! +
+
+
+
+
+
+
+ Add Numbers
++
+
+ +
+
+
+
+
+ + +
+
+
+
+
+
+
+
+
+
+
+
+ Answer = {{result}}
++
Answer = {{result}}
{% endblock %} {% block footer%} -{% endblock %} \ No newline at end of file +{% endblock %} From 8b861d460d88de1cebef31f24cb43e412f5ed98f Mon Sep 17 00:00:00 2001 From: AsKsKenny <34576273+AsKsKenny@users.noreply.github.com> Date: Thu, 21 Jan 2021 10:56:25 +0100 Subject: [PATCH 09/34] Update app.py --- app.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app.py b/app.py index 3465b8661..fbc4f9c65 100644 --- a/app.py +++ b/app.py @@ -3,6 +3,8 @@ import pytz # timezone import requests import os +import secrets +import string From f78c314bd636213fd9bebbb9212fc94b7a160251 Mon Sep 17 00:00:00 2001 From: AsKsKenny <34576273+AsKsKenny@users.noreply.github.com> Date: Thu, 21 Jan 2021 10:57:54 +0100 Subject: [PATCH 10/34] Update python_apps.html --- templates/python_apps.html | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/templates/python_apps.html b/templates/python_apps.html index 34044de80..54eb60bc9 100644 --- a/templates/python_apps.html +++ b/templates/python_apps.html @@ -43,6 +43,20 @@Addition
+
From 0a794f7148b57d36ce04e8d52e6faaeacd719449 Mon Sep 17 00:00:00 2001
From: AsKsKenny <34576273+AsKsKenny@users.noreply.github.com>
Date: Thu, 21 Jan 2021 11:36:45 +0100
Subject: [PATCH 12/34] Update python_apps.html
---
templates/python_apps.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/templates/python_apps.html b/templates/python_apps.html
index 54eb60bc9..c23a7273a 100644
--- a/templates/python_apps.html
+++ b/templates/python_apps.html
@@ -47,7 +47,7 @@
+
+
+
+
Password Generator
+ +
+
+
+
+
+
+
+ Shopping List
From 7ff9af348d73398b8678f7cb4d52c307971c439a Mon Sep 17 00:00:00 2001 From: AsKsKenny <34576273+AsKsKenny@users.noreply.github.com> Date: Thu, 21 Jan 2021 11:01:55 +0100 Subject: [PATCH 11/34] Update password_generator.html --- templates/password_generator.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/password_generator.html b/templates/password_generator.html index da56206a1..9a33cd19b 100644 --- a/templates/password_generator.html +++ b/templates/password_generator.html @@ -7,11 +7,11 @@
-
+
- Let's Add some numbers! + Generate password
+ - Let's Add some numbers! + Generate password
Addition
Password Generator
- +
From 0901bda64808b44bca6dfcac910ab55f68c9e355 Mon Sep 17 00:00:00 2001
From: AsKsKenny <34576273+AsKsKenny@users.noreply.github.com>
Date: Thu, 21 Jan 2021 11:40:03 +0100
Subject: [PATCH 13/34] Update password_generator.html
---
templates/password_generator.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/templates/password_generator.html b/templates/password_generator.html
index 9a33cd19b..07f9a4ac7 100644
--- a/templates/password_generator.html
+++ b/templates/password_generator.html
@@ -7,7 +7,7 @@
-
+
From 775b4c4193abf70a26cbc7d7250fe081c9f8087b Mon Sep 17 00:00:00 2001 From: AsKsKenny <34576273+AsKsKenny@users.noreply.github.com> Date: Thu, 21 Jan 2021 11:41:33 +0100 Subject: [PATCH 14/34] Update password_generator.html --- templates/password_generator.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/password_generator.html b/templates/password_generator.html index 07f9a4ac7..c3f4d90e0 100644 --- a/templates/password_generator.html +++ b/templates/password_generator.html @@ -24,7 +24,7 @@
@@ -36,7 +36,7 @@
@@ -45,7 +45,7 @@
From 09176968f5eff6c5abb543633cdcc5f817d5c894 Mon Sep 17 00:00:00 2001
From: AsKsKenny <34576273+AsKsKenny@users.noreply.github.com>
Date: Thu, 21 Jan 2021 11:50:23 +0100
Subject: [PATCH 15/34] Update app.py
---
app.py | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/app.py b/app.py
index fbc4f9c65..0949d9149 100644
--- a/app.py
+++ b/app.py
@@ -91,9 +91,15 @@ def python_apps_page():
def contact():
return render_template('contact.html')
-@app.route('/password_generator')
+@app.route('/password_generator', methods=['GET','POST'])
def password_generator():
- return render_template('password_generator.html')
+ if request.method == 'GET':
+ return render_template('password_generator.html')
+ elif request.method == 'POST':
+ chars = string.digits + string.ascii_letters + string.punctuation
+ print((len)(chars))
+ print(''.join(secrets.choice(chars) for _ in range (40)))
+
@app.route('/blog', methods=['GET'])
def blog_page():
From 250b3a7fb4d82e0d4aca661ab50f44ac3aa17969 Mon Sep 17 00:00:00 2001
From: AsKsKenny <34576273+AsKsKenny@users.noreply.github.com>
Date: Thu, 21 Jan 2021 11:56:34 +0100
Subject: [PATCH 16/34] Update password_generator.html
---
templates/password_generator.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/templates/password_generator.html b/templates/password_generator.html
index c3f4d90e0..5c749dfdb 100644
--- a/templates/password_generator.html
+++ b/templates/password_generator.html
@@ -32,7 +32,7 @@
From 775b4c4193abf70a26cbc7d7250fe081c9f8087b Mon Sep 17 00:00:00 2001 From: AsKsKenny <34576273+AsKsKenny@users.noreply.github.com> Date: Thu, 21 Jan 2021 11:41:33 +0100 Subject: [PATCH 14/34] Update password_generator.html --- templates/password_generator.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/password_generator.html b/templates/password_generator.html index 07f9a4ac7..c3f4d90e0 100644 --- a/templates/password_generator.html +++ b/templates/password_generator.html @@ -24,7 +24,7 @@
-
Add Numbers
+Generate Password
Add Numbers
-
+
Add Numbers
-
+
Generate Password
-
+