add odoo_hours app

This commit is contained in:
2024-11-25 18:29:31 +00:00
parent 8a0edb7af6
commit 78241144e2
8 changed files with 24 additions and 6 deletions

View File

@@ -25,15 +25,15 @@ BASE_DIR = Path(__file__).resolve().parent.parent
# See https://docs.djangoproject.com/en/5.1/howto/deployment/checklist/
# SECURITY WARNING: keep the secret key used in production secret!
# SECRET_KEY = 'django-insecure-snqnsca90!r=^iu6yyhpxy^+mjm%7dvrg(lb!6fr3(!9yh(c30'
SECRET_KEY = os.environ.get("SECRET_KEY")
SECRET_KEY = 'django-insecure-snqnsca90!r=^iu6yyhpxy^+mjm%7dvrg(lb!6fr3(!9yh(c30'
# SECRET_KEY = os.environ.get("SECRET_KEY")
# SECURITY WARNING: don't run with debug turned on in production!
# DEBUG = True
DEBUG = bool(os.environ.get("DEBUG", default=0))
DEBUG = True
# DEBUG = bool(os.environ.get("DEBUG", default=0))
# ALLOWED_HOSTS = ['192.168.1.146']
ALLOWED_HOSTS = os.environ.get("DJANGO_ALLOWED_HOSTS").split(" ")
ALLOWED_HOSTS = ['192.168.1.146']
# ALLOWED_HOSTS = os.environ.get("DJANGO_ALLOWED_HOSTS").split(" ")
# Application definition

View File

3
app/odoo_hours/admin.py Normal file
View File

@@ -0,0 +1,3 @@
from django.contrib import admin
# Register your models here.

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

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

View File

3
app/odoo_hours/models.py Normal file
View File

@@ -0,0 +1,3 @@
from django.db import models
# Create your models here.

3
app/odoo_hours/tests.py Normal file
View File

@@ -0,0 +1,3 @@
from django.test import TestCase
# Create your tests here.

3
app/odoo_hours/views.py Normal file
View File

@@ -0,0 +1,3 @@
from django.shortcuts import render
# Create your views here.