Начал работу с пользователем
This commit is contained in:
parent
c871a1c40a
commit
9598b13fd7
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,4 +1,7 @@
|
||||
.idea
|
||||
app/db.sqlite3
|
||||
.env
|
||||
logs
|
||||
app/logs
|
||||
app/checkpoint/migrations
|
||||
app/users/migrations
|
||||
|
||||
@ -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
0
app/users/__init__.py
Normal file
0
app/users/admin.py
Normal file
0
app/users/admin.py
Normal file
6
app/users/apps.py
Normal file
6
app/users/apps.py
Normal file
@ -0,0 +1,6 @@
|
||||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class UsersConfig(AppConfig):
|
||||
default_auto_field = 'django.db.models.BigAutoField'
|
||||
name = 'users'
|
||||
0
app/users/migrations/__init__.py
Normal file
0
app/users/migrations/__init__.py
Normal file
0
app/users/models.py
Normal file
0
app/users/models.py
Normal file
5
app/users/templates/users/login.html
Normal file
5
app/users/templates/users/login.html
Normal file
@ -0,0 +1,5 @@
|
||||
{% extends 'base.html' %}
|
||||
{% block datatables_css %}{% endblock %}
|
||||
{% block title %}
|
||||
|
||||
{% endblock %}
|
||||
5
app/users/views.py
Normal file
5
app/users/views.py
Normal file
@ -0,0 +1,5 @@
|
||||
from django.shortcuts import render
|
||||
|
||||
|
||||
def login(request):
|
||||
return render(request, 'users/login.html')
|
||||
Loading…
x
Reference in New Issue
Block a user