Skip to content

Instantly share code, notes, and snippets.

@wselfjes
wselfjes / models.py
Created August 20, 2021 09:02
Anna's models design
from django.db import models
class NameDescription:
name = models.CharField(max_length=30)
description = models.TextField(blank=True)
class ToAll:
characters = models.ManyToManyField('lore.Character')
events = models.ManyToManyField('lore.Event')
factions = models.ManyToManyField('lore.Faction')
@wselfjes
wselfjes / Dockerfile
Created July 4, 2021 12:52
Multifile input in inferoxy
FROM registry.visionhub.ru/models/base:v5 AS base
# ============ BEGIN User model environment ============
FROM ubuntu:18.04
RUN apt-get update && apt-get install -y libsm6 libxext6 libxrender-dev libglib2.0-0 ffmpeg zlib1g-dev libjpeg-dev
RUN apt-get install -y python3-pip
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3 1
RUN update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 1
RUN pip install -U pip