Skip to content

Commit b6982ec

Browse files
committed
Made a seperate app for login. Created a superuser.
1 parent 71fdac3 commit b6982ec

21 files changed

+7
-4
lines changed
28 Bytes
Binary file not shown.

Main/__pycache__/urls.cpython-38.pyc

100 Bytes
Binary file not shown.

Main/settings.py

+1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
# Application definition
3232

3333
INSTALLED_APPS = [
34+
'Users.apps.UsersConfig',
3435
'webapp.apps.WebappConfig',
3536
'django.contrib.admin',
3637
'django.contrib.auth',

Main/urls.py

+2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@
1515
"""
1616
from django.contrib import admin
1717
from django.urls import path, include
18+
from Users import views as users_views
1819

1920
urlpatterns = [
2021
path('admin/', admin.site.urls),
2122
path('', include('webapp.urls')),
23+
path('login/', users_views.login, name="Users-login"),
2224
]
149 Bytes
Binary file not shown.
190 Bytes
Binary file not shown.

Users/__pycache__/apps.cpython-38.pyc

367 Bytes
Binary file not shown.
187 Bytes
Binary file not shown.
322 Bytes
Binary file not shown.
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

Users/views.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
from django.shortcuts import render
22

33
# Create your views here.
4+
def login(request):
5+
return render(request, 'login_form.html')

db.sqlite3

128 KB
Binary file not shown.
-44 Bytes
Binary file not shown.
-123 Bytes
Binary file not shown.

webapp/templates/Standard_Template.html

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
<link rel="stylesheet" href="{% static '/css/styles.css' %}">
1717
<link rel="stylesheet" href="{% static 'css/Team-with-rotating-cards.css'%}">
1818
<link rel="stylesheet" href="assets/css/TextEditor.css">
19+
<link rel="stylesheet" href="{% static '../Users/css/login_form.css'%}">
1920
</head>
2021

2122
<body>

webapp/urls.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,5 @@
44
urlpatterns = [
55
path('', views.home, name='Users-home'),
66
path('about/', views.about, name='Users-about'),
7-
path('notebook/', views.notebook, name = 'Users-Notebook'),
8-
path('login/', views.login, name = 'Users-login'),
7+
path('notebook/', views.notebook, name = 'Users-Notebook'),
98
]

webapp/views.py

-2
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,3 @@ def about(request):
1010
def notebook(request):
1111
return render(request, 'Notebook.html')
1212

13-
def login(request):
14-
return render(request, 'login_form.html')

0 commit comments

Comments
 (0)