mirror of
https://github.com/yogeshojha/rengine.git
synced 2026-09-27 20:24:54 +02:00
* Add django debug toolbar * Remove duplicate debug toolbar URLs * Remove orphaned import in startScan * Add DEBUG config commented in entrypoint * Install debug toolbar into celery beat * Create dev docker compose & entrypoints * Move django toolbar install to dev entrypoints * Install debug_toolbar only when debug env var is set * Add dev command to MakeFile * Use DEBUG from settings.py exclusively * Add remote debug configuration in dev env * Add VSCode debug configuration * Celery log level to 1 when debug is on * Remove hard coded celery debug port * Add gunicorn in the production setup * Add export var for celery log level * Restrict debug port to 127.0.0.1 * Set remote debug to false by default * Update doc on debug step for submitting issue * Create dev docker compose & entrypoints * Add django debug toolbar * Remove duplicate debug toolbar URLs * Remove orphaned import in startScan * Add DEBUG config commented in entrypoint * Install debug toolbar into celery beat * Move django toolbar install to dev entrypoints * Install debug_toolbar only when debug env var is set * Add dev command to MakeFile * Use DEBUG from settings.py exclusively * Add remote debug configuration in dev env * Add VSCode debug configuration * Celery log level to 1 when debug is on * Remove hard coded celery debug port * Add gunicorn in the production setup * Add export var for celery log level * Restrict debug port to 127.0.0.1 * Set remote debug to false by default * Update doc on debug step for submitting issue --------- Co-authored-by: Raynald <raynald@easi-services.fr> Co-authored-by: Psyray <psyray@users.noreply.github.com>
31 lines
917 B
Python
31 lines
917 B
Python
#!/usr/bin/env python
|
|
"""Django's command-line utility for administrative tasks."""
|
|
import os
|
|
import sys
|
|
from reNgine.settings import REMOTE_DEBUG
|
|
|
|
if REMOTE_DEBUG and sys.argv[1] == 'runserver':
|
|
from debugger_setup import setup_debugger
|
|
setup_debugger()
|
|
|
|
def main():
|
|
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'reNgine.settings')
|
|
# show rengine artwork
|
|
f = open('art/reNgine.txt', 'r')
|
|
file_contents = f.read()
|
|
print (file_contents)
|
|
f.close()
|
|
try:
|
|
from django.core.management import execute_from_command_line
|
|
except ImportError as exc:
|
|
raise ImportError(
|
|
"Couldn't import Django. Are you sure it's installed and "
|
|
"available on your PYTHONPATH environment variable? Did you "
|
|
"forget to activate a virtual environment?"
|
|
) from exc
|
|
execute_from_command_line(sys.argv)
|
|
|
|
|
|
if __name__ == '__main__':
|
|
main()
|