Skip to content

Commit

Permalink
Add All Changes
Browse files Browse the repository at this point in the history
  • Loading branch information
sinalalebakhsh committed Jul 12, 2024
1 parent 7156b90 commit 44a52d7
Show file tree
Hide file tree
Showing 9 changed files with 26 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Steps/offline developing Django App.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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',



Empty file added accounts/__init__.py
Empty file.
3 changes: 3 additions & 0 deletions accounts/admin.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from django.contrib import admin

# Register your models here.
6 changes: 6 additions & 0 deletions accounts/apps.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
from django.apps import AppConfig


class AccountsConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'accounts'
Empty file added accounts/migrations/__init__.py
Empty file.
3 changes: 3 additions & 0 deletions accounts/models.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from django.db import models

# Create your models here.
3 changes: 3 additions & 0 deletions accounts/tests.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from django.test import TestCase

# Create your tests here.
3 changes: 3 additions & 0 deletions accounts/views.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from django.shortcuts import render

# Create your views here.
3 changes: 3 additions & 0 deletions config/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',

'accounts',

]

MIDDLEWARE = [
Expand Down

0 comments on commit 44a52d7

Please sign in to comment.