From 44a52d7c7c35a946cba15e106298af998b03a95a Mon Sep 17 00:00:00 2001 From: sina lalehbakhsh Date: Fri, 12 Jul 2024 08:55:22 -0400 Subject: [PATCH] Add All Changes --- Steps/offline developing Django App.sh | 5 +++++ accounts/__init__.py | 0 accounts/admin.py | 3 +++ accounts/apps.py | 6 ++++++ accounts/migrations/__init__.py | 0 accounts/models.py | 3 +++ accounts/tests.py | 3 +++ accounts/views.py | 3 +++ config/settings.py | 3 +++ 9 files changed, 26 insertions(+) create mode 100644 accounts/__init__.py create mode 100644 accounts/admin.py create mode 100644 accounts/apps.py create mode 100644 accounts/migrations/__init__.py create mode 100644 accounts/models.py create mode 100644 accounts/tests.py create mode 100644 accounts/views.py diff --git a/Steps/offline developing Django App.sh b/Steps/offline developing Django App.sh index 4a83758..558972b 100644 --- a/Steps/offline developing Django App.sh +++ b/Steps/offline developing Django App.sh @@ -161,6 +161,11 @@ docker-compose up --build # http://0.0.0.0:8000/ +docker-compose exec web python manage.py startapp accounts + + +# Add in config/setting.py -> in INSTALLED_APPS = [ here ] +'accounts', diff --git a/accounts/__init__.py b/accounts/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/accounts/admin.py b/accounts/admin.py new file mode 100644 index 0000000..8c38f3f --- /dev/null +++ b/accounts/admin.py @@ -0,0 +1,3 @@ +from django.contrib import admin + +# Register your models here. diff --git a/accounts/apps.py b/accounts/apps.py new file mode 100644 index 0000000..3e3c765 --- /dev/null +++ b/accounts/apps.py @@ -0,0 +1,6 @@ +from django.apps import AppConfig + + +class AccountsConfig(AppConfig): + default_auto_field = 'django.db.models.BigAutoField' + name = 'accounts' diff --git a/accounts/migrations/__init__.py b/accounts/migrations/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/accounts/models.py b/accounts/models.py new file mode 100644 index 0000000..71a8362 --- /dev/null +++ b/accounts/models.py @@ -0,0 +1,3 @@ +from django.db import models + +# Create your models here. diff --git a/accounts/tests.py b/accounts/tests.py new file mode 100644 index 0000000..7ce503c --- /dev/null +++ b/accounts/tests.py @@ -0,0 +1,3 @@ +from django.test import TestCase + +# Create your tests here. diff --git a/accounts/views.py b/accounts/views.py new file mode 100644 index 0000000..91ea44a --- /dev/null +++ b/accounts/views.py @@ -0,0 +1,3 @@ +from django.shortcuts import render + +# Create your views here. diff --git a/config/settings.py b/config/settings.py index 4f4362d..0a6cf9b 100644 --- a/config/settings.py +++ b/config/settings.py @@ -43,6 +43,9 @@ 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', + + 'accounts', + ] MIDDLEWARE = [