Начал работу с пользователем

This commit is contained in:
Zakhy 2024-08-19 07:50:29 +07:00
parent c871a1c40a
commit 9598b13fd7
9 changed files with 23 additions and 0 deletions

3
.gitignore vendored
View File

@ -1,4 +1,7 @@
.idea
app/db.sqlite3
.env
logs
app/logs
app/checkpoint/migrations
app/users/migrations

View File

@ -25,6 +25,8 @@ INSTALLED_APPS = [
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'users.apps.UsersConfig',
'checkpoint.apps.CheckpointConfig',
]
@ -122,6 +124,8 @@ STATIC_URL = 'static/'
DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
# AUTH_USER_MODEL = 'users.User'
try:
from project.local_settings import *
except ModuleNotFoundError:

0
app/users/__init__.py Normal file
View File

0
app/users/admin.py Normal file
View File

6
app/users/apps.py Normal file
View File

@ -0,0 +1,6 @@
from django.apps import AppConfig
class UsersConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'users'

View File

0
app/users/models.py Normal file
View File

View File

@ -0,0 +1,5 @@
{% extends 'base.html' %}
{% block datatables_css %}{% endblock %}
{% block title %}
{% endblock %}

5
app/users/views.py Normal file
View File

@ -0,0 +1,5 @@
from django.shortcuts import render
def login(request):
return render(request, 'users/login.html')