Ajout système caldav

This commit is contained in:
Ambulance Clerc
2022-06-19 23:47:09 +02:00
parent 501468b6dd
commit 1d173ffe7c
11 changed files with 143 additions and 1 deletions

View File

@@ -27,7 +27,7 @@ DEBUG = True
cfg_dev_mode = False
ALLOWED_HOSTS = ["192.168.3.125","rh.ambulance-clerc.ch"]
ALLOWED_HOSTS = ["rh.ambulance-clerc.ch"]
if cfg_dev_mode:
ALLOWED_HOSTS.append("127.0.0.1")
CSRF_TRUSTED_ORIGINS = ['https://rh.ambulance-clerc.ch']
@@ -44,6 +44,7 @@ INSTALLED_APPS = [
'polls.apps.PollsConfig',
'vehicles.apps.VehiclesConfig',
'collabs.apps.CollabsConfig',
'caldav.apps.CaldavConfig',
'custom_admin.apps.CustomAdminConfig',
'rangefilter',
'django.contrib.admin',
@@ -92,6 +93,15 @@ if cfg_dev_mode:
'NAME': BASE_DIR / 'db.sqlite3',
}
}
'''
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'OPTIONS': {
'read_default_file': 'my_dev.cnf',
},
}
}'''
else:
DATABASES = {
'default': {

View File

@@ -19,5 +19,6 @@ from django.urls import path, include
urlpatterns = [
path('admin/', admin.site.urls),
path('collabs/', include('collabs.urls')),
path('caldav/', include('caldav.urls')),
#path('collabs_hour/', include('collabs.urls')),
]