django basic server and connection to postgresql (not with env for now)

This commit is contained in:
tom moron
2024-08-12 22:07:30 +02:00
parent c1ae52d503
commit 4e8b7a9ad7
9 changed files with 208 additions and 10 deletions

View File

@ -0,0 +1,16 @@
"""
ASGI config for server project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/4.2/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'server.settings')
application = get_asgi_application()