Skip to content

Commit

Permalink
add core app
Browse files Browse the repository at this point in the history
  • Loading branch information
felix1110xx committed Jul 15, 2024
1 parent 108742f commit 64f66d7
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 5 deletions.
8 changes: 4 additions & 4 deletions app/app/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,10 @@
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql',
'HOST': os.environment.get('DB_HOST'),
'NAME': os.environment.get('DB_NAME'),
'USER': os.environment.get('DB_USER'),
'PASSWORD': os.environment.get('DB_PASS'),
'HOST': os.environ.get('DB_HOST'),
'NAME': os.environ.get('DB_NAME'),
'USER': os.environ.get('DB_USER'),
'PASSWORD': os.environ.get('DB_PASS'),
}
}

Expand Down
Empty file added app/core/__init__.py
Empty file.
3 changes: 3 additions & 0 deletions app/core/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 app/core/apps.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
from django.apps import AppConfig


class CoreConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'core'
Empty file added app/core/migrations/__init__.py
Empty file.
3 changes: 3 additions & 0 deletions app/core/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 app/core/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 app/core/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.
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ services:
- DB_HOST=db
- DB_NAME=devdb
- DB_USER=devuser
- DB_PASSWORD=changeme
- DB_PASS=changeme
depends_on:
- db

Expand Down

0 comments on commit 64f66d7

Please sign in to comment.