hoyai package¶
Submodules¶
hoyai.celery module¶
hoyai.settings module¶
Django settings for hoyai project.
Generated by ‘django-admin startproject’ using Django 1.10.2.
For more information on this file, see https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see https://docs.djangoproject.com/en/1.10/ref/settings/
-
hoyai.settings.
CELERYD_HIJACK_ROOT_LOGGER
= False¶ How to Logging
- log types :
- log level debug -> debug, info, error, critical log level info -> info, error, critical log level error -> error, critical log level critical -> critical
- log file path :
- /root/main_debug.log
- usages :
- import logging logging.debug(“log leval : {0}”.format(‘debug’)) logging.info(“log leval : {0}”.format(‘info’)) logging.error(“log leval : {0}”.format(‘error’)) logging.critical(“log leval : {0}”.format(‘critical’))
hoyai.urls module¶
hoyai URL Configuration
- The urlpatterns list routes URLs to views. For more information please see:
- https://docs.djangoproject.com/en/1.10/topics/http/urls/
Examples: Function views
- Add an import: from my_app import views
- Add a URL to urlpatterns: url(r’^$’, views.home, name=’home’)
- Class-based views
- Add an import: from other_app.views import Home
- Add a URL to urlpatterns: url(r’^$’, Home.as_view(), name=’home’)
- Including another URLconf
- Import the include() function: from django.conf.urls import url, include
- Add a URL to urlpatterns: url(r’^blog/’, include(‘blog.urls’))
hoyai.wsgi module¶
WSGI config for hoyai 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/1.10/howto/deployment/wsgi/