mirror of
https://github.com/olegvodyanov/instalinks.git
synced 2025-12-20 07:57:04 +03:00
23 lines
567 B
Python
23 lines
567 B
Python
"""
|
|
WSGI config for instalinks project.
|
|
|
|
It exposes the WSGI callable as a module-level variable named ``application``.
|
|
|
|
For more information on this file, see
|
|
https://docs.djangoproject.com/en/5.2/howto/deployment/wsgi/
|
|
"""
|
|
|
|
import os
|
|
|
|
from django.core.wsgi import get_wsgi_application
|
|
from settings import BASE_DIR
|
|
import logging
|
|
logger = logging.getLogger(__name__)
|
|
|
|
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'settings')
|
|
|
|
logging.basicConfig(filename='myapp.log', level=logging.INFO)
|
|
logger.info(f'BASE_DIR {BASE_DIR}')
|
|
|
|
application = get_wsgi_application()
|