add odoo_hours app
This commit is contained in:
@@ -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
|
||||
|
||||
0
app/odoo_hours/__init__.py
Normal file
0
app/odoo_hours/__init__.py
Normal file
3
app/odoo_hours/admin.py
Normal file
3
app/odoo_hours/admin.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from django.contrib import admin
|
||||
|
||||
# Register your models here.
|
||||
6
app/odoo_hours/apps.py
Normal file
6
app/odoo_hours/apps.py
Normal file
@@ -0,0 +1,6 @@
|
||||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class OdooHoursConfig(AppConfig):
|
||||
default_auto_field = 'django.db.models.BigAutoField'
|
||||
name = 'odoo_hours'
|
||||
0
app/odoo_hours/migrations/__init__.py
Normal file
0
app/odoo_hours/migrations/__init__.py
Normal file
3
app/odoo_hours/models.py
Normal file
3
app/odoo_hours/models.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from django.db import models
|
||||
|
||||
# Create your models here.
|
||||
3
app/odoo_hours/tests.py
Normal file
3
app/odoo_hours/tests.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from django.test import TestCase
|
||||
|
||||
# Create your tests here.
|
||||
3
app/odoo_hours/views.py
Normal file
3
app/odoo_hours/views.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from django.shortcuts import render
|
||||
|
||||
# Create your views here.
|
||||
Reference in New Issue
Block a user