diff --git a/.idea/.gitignore b/.idea/.gitignore
new file mode 100644
index 0000000..13566b8
--- /dev/null
+++ b/.idea/.gitignore
@@ -0,0 +1,8 @@
+# Default ignored files
+/shelf/
+/workspace.xml
+# Editor-based HTTP Client requests
+/httpRequests/
+# Datasource local storage ignored files
+/dataSources/
+/dataSources.local.xml
diff --git a/.idea/django-password-generator.iml b/.idea/django-password-generator.iml
new file mode 100644
index 0000000..f1cdac9
--- /dev/null
+++ b/.idea/django-password-generator.iml
@@ -0,0 +1,28 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml
new file mode 100644
index 0000000..ac21435
--- /dev/null
+++ b/.idea/inspectionProfiles/Project_Default.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/inspectionProfiles/profiles_settings.xml b/.idea/inspectionProfiles/profiles_settings.xml
new file mode 100644
index 0000000..105ce2d
--- /dev/null
+++ b/.idea/inspectionProfiles/profiles_settings.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
new file mode 100644
index 0000000..8ba7b0a
--- /dev/null
+++ b/.idea/misc.xml
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/modules.xml b/.idea/modules.xml
new file mode 100644
index 0000000..16251a4
--- /dev/null
+++ b/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
new file mode 100644
index 0000000..35eb1dd
--- /dev/null
+++ b/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Images/Screenshot (31).png b/Images/Screenshot (31).png
new file mode 100644
index 0000000..a7b28d7
Binary files /dev/null and b/Images/Screenshot (31).png differ
diff --git a/Images/Screenshot (32).png b/Images/Screenshot (32).png
new file mode 100644
index 0000000..d97e0fa
Binary files /dev/null and b/Images/Screenshot (32).png differ
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..87bac05
--- /dev/null
+++ b/README.md
@@ -0,0 +1,3 @@
+# Django Password Generator
+>
+>
diff --git a/generator/__pycache__/__init__.cpython-312.pyc b/generator/__pycache__/__init__.cpython-312.pyc
new file mode 100644
index 0000000..f76a5ab
Binary files /dev/null and b/generator/__pycache__/__init__.cpython-312.pyc differ
diff --git a/generator/__pycache__/admin.cpython-312.pyc b/generator/__pycache__/admin.cpython-312.pyc
new file mode 100644
index 0000000..b6d7c9e
Binary files /dev/null and b/generator/__pycache__/admin.cpython-312.pyc differ
diff --git a/generator/__pycache__/apps.cpython-312.pyc b/generator/__pycache__/apps.cpython-312.pyc
new file mode 100644
index 0000000..8b3c91d
Binary files /dev/null and b/generator/__pycache__/apps.cpython-312.pyc differ
diff --git a/generator/__pycache__/models.cpython-312.pyc b/generator/__pycache__/models.cpython-312.pyc
new file mode 100644
index 0000000..464f7d3
Binary files /dev/null and b/generator/__pycache__/models.cpython-312.pyc differ
diff --git a/generator/__pycache__/views.cpython-312.pyc b/generator/__pycache__/views.cpython-312.pyc
new file mode 100644
index 0000000..6fbcbcb
Binary files /dev/null and b/generator/__pycache__/views.cpython-312.pyc differ
diff --git a/generator/migrations/__pycache__/__init__.cpython-312.pyc b/generator/migrations/__pycache__/__init__.cpython-312.pyc
new file mode 100644
index 0000000..241dd63
Binary files /dev/null and b/generator/migrations/__pycache__/__init__.cpython-312.pyc differ
diff --git a/generator/templates/generator/about.html b/generator/templates/generator/about.html
deleted file mode 100644
index 6a0bac3..0000000
--- a/generator/templates/generator/about.html
+++ /dev/null
@@ -1,3 +0,0 @@
-
About
-
-This is a pasword generator created by Nick Walter. Enjoy fam!
diff --git a/generator/templates/generator/home.html b/generator/templates/generator/home.html
index 429aae4..38b78e6 100644
--- a/generator/templates/generator/home.html
+++ b/generator/templates/generator/home.html
@@ -1,28 +1,50 @@
-
-
-
-
Password Generator
-
-
-
+
+
+
+
+
+
+
+
Password Generator
+
+
+
+
+
diff --git a/generator/templates/generator/password.html b/generator/templates/generator/password.html
index 352bc8b..30b90c2 100644
--- a/generator/templates/generator/password.html
+++ b/generator/templates/generator/password.html
@@ -1,7 +1,26 @@
-
-
-
-
Your password is:
-
{{ password }}
-
Home
-
+
+
+
+
+
+
+
+
Your password is:
+
{{ password }}
+
Home
+
+
+
diff --git a/generator/views.py b/generator/views.py
index d54ad5d..497fc8f 100644
--- a/generator/views.py
+++ b/generator/views.py
@@ -1,5 +1,4 @@
from django.shortcuts import render
-from django.http import HttpResponse
import random
# Create your views here.
@@ -7,9 +6,6 @@
def home(request):
return render(request, 'generator/home.html')
-def about(request):
- return render(request, 'generator/about.html')
-
def password(request):
characters = list('abcdefghijklmnopqrstuvwxyz')
@@ -20,7 +16,9 @@ def password(request):
if request.GET.get('numbers'):
characters.extend(list('0123456789'))
- length = int(request.GET.get('length',12))
+ length = int(request.GET.get('length',12)) if request.GET.get('length')!='' else 12
+ if length > 72:
+ length = 72
thepassword = ''
for x in range(length):
diff --git a/password_generator/__pycache__/__init__.cpython-312.pyc b/password_generator/__pycache__/__init__.cpython-312.pyc
new file mode 100644
index 0000000..a26989f
Binary files /dev/null and b/password_generator/__pycache__/__init__.cpython-312.pyc differ
diff --git a/password_generator/__pycache__/settings.cpython-312.pyc b/password_generator/__pycache__/settings.cpython-312.pyc
new file mode 100644
index 0000000..ebb7c5d
Binary files /dev/null and b/password_generator/__pycache__/settings.cpython-312.pyc differ
diff --git a/password_generator/__pycache__/urls.cpython-312.pyc b/password_generator/__pycache__/urls.cpython-312.pyc
new file mode 100644
index 0000000..5d2d7f8
Binary files /dev/null and b/password_generator/__pycache__/urls.cpython-312.pyc differ
diff --git a/password_generator/__pycache__/wsgi.cpython-312.pyc b/password_generator/__pycache__/wsgi.cpython-312.pyc
new file mode 100644
index 0000000..fc25908
Binary files /dev/null and b/password_generator/__pycache__/wsgi.cpython-312.pyc differ
diff --git a/password_generator/urls.py b/password_generator/urls.py
index f5b6554..bee8e7c 100644
--- a/password_generator/urls.py
+++ b/password_generator/urls.py
@@ -20,5 +20,4 @@
urlpatterns = [
path('', views.home, name='home'),
path('password/', views.password, name='password'),
- path('about/', views.about, name='about'),
]