Skip to content

Commit ec15c31

Browse files
committed
Allow login, django-app
1 parent fe08fd3 commit ec15c31

File tree

13 files changed

+57
-20
lines changed

13 files changed

+57
-20
lines changed

Diff for: .env.example

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ DB_PASSWORD=
66
DB_PORT=
77

88
# OTHER
9-
ENVIROMENT='local'
9+
ENVIRONMENT='local'
1010
GUNICORN_LOG_LEVEL=debug
1111

1212
# DJANGO

Diff for: .gitignore

+3-18
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,8 @@ dmypy.json
131131
.pyre/
132132

133133

134-
# Created by https://www.toptal.com/developers/gitignore/api/python,django,intellij+all,vscode,vim,osx,windows,linux,react,reactnative,web,venv
135-
# Edit at https://www.toptal.com/developers/gitignore?templates=python,django,intellij+all,vscode,vim,osx,windows,linux,react,reactnative,web,venv
134+
# Created by https://www.toptal.com/developers/gitignore/api/python,django,intellij+all,vscode,vim,osx,windows,linux,react,reactnative,venv
135+
# Edit at https://www.toptal.com/developers/gitignore?templates=python,django,intellij+all,vscode,vim,osx,windows,linux,react,reactnative,venv
136136

137137
### Django ###
138138
*.log
@@ -825,21 +825,6 @@ tags
825825
!.vscode/extensions.json
826826
*.code-workspace
827827

828-
### Web ###
829-
*.asp
830-
*.cer
831-
*.csr
832-
*.css
833-
*.htm
834-
*.html
835-
*.js
836-
*.jsp
837-
*.php
838-
*.rss
839-
*.wasm
840-
*.wat
841-
*.xhtml
842-
843828
### Windows ###
844829
# Windows thumbnail cache files
845830
Thumbs.db
@@ -866,4 +851,4 @@ $RECYCLE.BIN/
866851
# Windows shortcuts
867852
*.lnk
868853

869-
# End of https://www.toptal.com/developers/gitignore/api/python,django,intellij+all,vscode,vim,osx,windows,linux,react,reactnative,web,venv
854+
# End of https://www.toptal.com/developers/gitignore/api/python,django,intellij+all,vscode,vim,osx,windows,linux,react,reactnative,venv

Diff for: enroll/__init__.py

Whitespace-only changes.

Diff for: enroll/admin.py

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from django.contrib import admin
2+
3+
# Register your models here.

Diff for: enroll/apps.py

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
from django.apps import AppConfig
2+
3+
4+
class EnrollConfig(AppConfig):
5+
name = 'enroll'

Diff for: enroll/migrations/__init__.py

Whitespace-only changes.

Diff for: enroll/models.py

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from django.db import models
2+
3+
# Create your models here.

Diff for: enroll/templates/base.html

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{% load static %}
2+
3+
<!DOCTYPE html>
4+
<html lang="en">
5+
<head>
6+
<meta charset="UTF-8">
7+
<title>{% block title %}{% endblock %} | Enroll</title>
8+
{% block head %}
9+
{% endblock %}
10+
</head>
11+
<body>
12+
13+
{% block content %}
14+
{% endblock content %}
15+
16+
</body>
17+
</html>

Diff for: enroll/templates/registration/login.html

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{% extends "base.html" %}
2+
{% block title %} Login {% endblock %}
3+
4+
{% block content %}
5+
6+
<form method="post">
7+
{% csrf_token %}
8+
{{ form.as_p }}
9+
<input type="submit" value="Login">
10+
</form>
11+
{% endblock content %}

Diff for: enroll/tests.py

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from django.test import TestCase
2+
3+
# Create your tests here.

Diff for: enroll/urls.py

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
from django.urls import path, include
2+
3+
from . import views
4+
5+
app_name = 'enroll'
6+
7+
urlpatterns = [
8+
path("accounts/", include("django.contrib.auth.urls")),
9+
]

Diff for: enroll/views.py

Whitespace-only changes.

Diff for: enrollXchange/urls.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@
1414
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
1515
"""
1616
from django.contrib import admin
17-
from django.urls import path
17+
from django.urls import path, include
1818

1919
urlpatterns = [
20+
path('', include('enroll.urls', namespace='enroll')),
2021
path('admin/', admin.site.urls),
2122
]

0 commit comments

Comments
 (0)