This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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') |