·

弦圈如何发布新文章?

Published at 2024-10-21 14:05:29Viewed 23 times
Common article
Please reprint with source link

首先,进入任意一个圈子,找到圈子首页的几个按钮

然后鼠标指向“写点什么...”这个按钮,会弹出两个选择,一是“写文章”,二是“写书”

这时候点击第一个“写文章”按钮,即可跳转至写文章的页面。接着根据提示,输入标题和内容。关于输入内容时编辑器应该如何使用,请看弦圈编辑器功能介绍及使用技巧

写完这两项后,向下滚动鼠标滚轮,选择带红色星号的“文章类型”选项

然后点击右下角的蓝色按钮“发布”,即可发布文章。

关于上图这些设置的具体含义和作用,请看弦圈“写文章”中各项设置的介绍

Comments

There is no comment, let's add the first one.

弦圈热门内容

Django change an existing field to foreign key

I have a Django model that used to look like this:class Car(models.Model): manufacturer_id = models.IntegerField()There is another model called Manufacturer that the id field refers to. However, I realized that it would be useful to use Django's built-in foreign key functionality, so I changed the model to this:class Car(models.Model): manufacturer = models.ForeignKey(Manufacturer)This change appears to work fine immediately, queries work without errors, but when I try to run migrations, Django outputs the following:- Remove field manufacturer_id from car - Add field manufacturer to carDoing this migration would clear all the existing relationships in the database, so I don't want to do that. I don't really want any migrations at all, since queries like Car.objects.get(manufacturer__name="Toyota") work fine. I would like a proper database foreign key constraint, but it's not a high priority.So my question is this: Is there a way to make a migration or something else that allows me to convert an existing field to a foreign key? I cannot use --fake since I need to reliably work across dev, prod, and my coworkers' computers.内容来源于 Stack Overflow, 遵循 CCBY-SA 4.0 许可协议进行翻译与使用。原文链接:Django change an existing field to foreign key

[antd: Message] You are calling notice in render which will break in React 18 concurrent mode. Please trigger in effect instead.

I'm getting this error when using MessageWarning: [antd: Message] You are calling notice in render which will break in React 18 concurrent mode. Please trigger in effect instead.Here is my code:import { message } from 'antd'; export default function Page() { const [messageApi, contextHolder] = message.useMessage(); const res = await fetch("/api/...", { method: "POST", }); if (!res.ok) { messageApi.error("Error! Fail to login!"); } return ( <Home> ... </Home> ) }

Get connected with us on social networks! Twitter

©2024 Guangzhou Sinephony Technology Co., Ltd All Rights Reserved