Skip to content

Commit 89681a5

Browse files
author
App Generator
committed
Bump Django Codebase
1 parent a127ac7 commit 89681a5

File tree

1,320 files changed

+60183
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,320 files changed

+60183
-0
lines changed

.env

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
DEBUG=True
2+
SECRET_KEY=S3cr3t_K#Key
3+
SERVER=boilerplate-code-django-dashboard.appseed.us
4+
EMAIL_HOST="" # smtp.gmail.com
5+
EMAIL_HOST_USER="" # your_email@address
6+
EMAIL_HOST_PASSWORD="" # your_app_password

.gitignore

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
5+
# tests and coverage
6+
*.pytest_cache
7+
.coverage
8+
9+
# database & logs
10+
*.db
11+
*.sqlite3
12+
*.log
13+
14+
# venv
15+
env
16+
venv
17+
18+
# other
19+
.DS_Store
20+
21+
# javascript
22+
package-lock.json
23+
24+
staticfiles/*
25+
!staticfiles/.gitkeep
26+
.vscode/symbols.json
27+
28+
apps/static/assets/node_modules
29+
apps/static/assets/yarn.lock
30+
apps/static/assets/.temp
31+

Dockerfile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
FROM python:3.9
2+
3+
COPY . .
4+
5+
# set environment variables
6+
ENV PYTHONDONTWRITEBYTECODE 1
7+
ENV PYTHONUNBUFFERED 1
8+
9+
# install python dependencies
10+
RUN pip install --upgrade pip
11+
RUN pip install --no-cache-dir -r requirements.txt
12+
13+
# running migrations
14+
RUN python manage.py migrate
15+
16+
# gunicorn
17+
CMD ["gunicorn", "--config", "gunicorn-cfg.py", "core.wsgi"]
18+

Procfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
web: gunicorn core.wsgi --log-file=-

apps/__init__.py

Whitespace-only changes.

apps/authentication/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# -*- encoding: utf-8 -*-
2+
"""
3+
Copyright (c) 2019 - present AppSeed.us
4+
"""

apps/authentication/admin.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# -*- encoding: utf-8 -*-
2+
"""
3+
Copyright (c) 2019 - present AppSeed.us
4+
"""
5+
6+
from django.contrib import admin
7+
8+
# Register your models here.

apps/authentication/config.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# -*- encoding: utf-8 -*-
2+
"""
3+
Copyright (c) 2019 - present AppSeed.us
4+
"""
5+
6+
from django.apps import AppConfig
7+
8+
9+
class AuthConfig(AppConfig):
10+
name = 'apps.auth'
11+
label = 'apps_auth'

apps/authentication/forms.py

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# -*- encoding: utf-8 -*-
2+
"""
3+
Copyright (c) 2019 - present AppSeed.us
4+
"""
5+
6+
from django import forms
7+
from django.contrib.auth.forms import UserCreationForm
8+
from django.contrib.auth.models import User
9+
10+
11+
class LoginForm(forms.Form):
12+
username = forms.CharField(
13+
widget=forms.TextInput(
14+
attrs={
15+
"placeholder": "Username",
16+
"class": "form-control"
17+
}
18+
))
19+
password = forms.CharField(
20+
widget=forms.PasswordInput(
21+
attrs={
22+
"placeholder": "Password",
23+
"class": "form-control"
24+
}
25+
))
26+
27+
28+
class SignUpForm(UserCreationForm):
29+
username = forms.CharField(
30+
widget=forms.TextInput(
31+
attrs={
32+
"placeholder": "Username",
33+
"class": "form-control"
34+
}
35+
))
36+
email = forms.EmailField(
37+
widget=forms.EmailInput(
38+
attrs={
39+
"placeholder": "Email",
40+
"class": "form-control"
41+
}
42+
))
43+
password1 = forms.CharField(
44+
widget=forms.PasswordInput(
45+
attrs={
46+
"placeholder": "Password",
47+
"class": "form-control"
48+
}
49+
))
50+
password2 = forms.CharField(
51+
widget=forms.PasswordInput(
52+
attrs={
53+
"placeholder": "Password check",
54+
"class": "form-control"
55+
}
56+
))
57+
58+
class Meta:
59+
model = User
60+
fields = ('username', 'email', 'password1', 'password2')
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# -*- encoding: utf-8 -*-
2+
"""
3+
Copyright (c) 2019 - present AppSeed.us
4+
"""

0 commit comments

Comments
 (0)