repl.it
@dotcomboom/

gopherlens

Python

pure, unfiltered gopherlens

fork
loading
Files
  • main.py
  • main
  • static
  • templates
  • db.sqlite3
  • manage.py
  • Packager files
  • poetry.lock
  • pyproject.toml
  • requirements.txt
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import os
import sys
f = open(os.devnull, 'w')
sys.stdout = f
import pituophis

from django.core.management import execute_from_command_line

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "main.settings")

while True:
  cmd = 'manage.py runserver 0.0.0.0:8000'
  execute_from_command_line(cmd.split())
?