Skip to content
This repository has been archived by the owner on Jul 18, 2022. It is now read-only.

Редактирование страниц через админку #113

Open
cofob opened this issue Apr 30, 2022 · 3 comments
Open

Редактирование страниц через админку #113

cofob opened this issue Apr 30, 2022 · 3 comments
Assignees
Labels
discussing Need to discuss before something do with it enhancement New feature or request help wanted Extra attention is needed python Pull requests that update Python code
Milestone

Comments

@cofob
Copy link
Contributor

cofob commented Apr 30, 2022

Это можно сделать 2 путями

MD-подобный формат

Страницы создаются в формате:

# Заголовок
{Widget parameter=value}

Для этого потребуется свой парсер. Сложный вариант, но более простой для реализации в стандартной админке и простой для пользователя.

Относительный формат

Создаётся специальная таблица в БД с полем many-to-many со ссылками на объекты настроек виджетов. Более простой для реализации в коде, нужна продвинутая админка, сложно для пользователя.

@cofob cofob added enhancement New feature or request help wanted Extra attention is needed python Pull requests that update Python code discussing Need to discuss before something do with it labels Apr 30, 2022
@cofob cofob added this to the v0.3.0 milestone Apr 30, 2022
@PerchunPak
Copy link
Contributor

Почему свой? Почему какая нибудь либа не подойдёт. Уверен у m2r2 используется такая.

@PerchunPak
Copy link
Contributor

Да, m2r2 использует mistune==0.8.4. Вот документация.

@cofob
Copy link
Contributor Author

cofob commented May 1, 2022

Да, m2r2 использует mistune==0.8.4. Вот документация.

Лучше делать как в #115. Будет сразу нативно.

@cofob cofob mentioned this issue May 2, 2022
@cofob cofob moved this from Сделать to В процессе in autodonate May 2, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
discussing Need to discuss before something do with it enhancement New feature or request help wanted Extra attention is needed python Pull requests that update Python code
Projects
Status: В процессе
Development

No branches or pull requests

2 participants