小编Moh*_*ini的帖子

服务笔记本既没有指定映像也没有指定构建上下文。必须至少提供一项

我想使用jupyter/base-notebook:latest图像。这是我的docker-compose.yml

version: "3.7"

services:
  notebook:
    image: jupyter/base-notebook:latest
    build:
      args:
        - NB_USER=appuser
        - NB_UID=1001
        - NB_GID=101
    ports:
      - "3010:8888"
    volumes:
      - "./notebooks:/home/appuser/work"
Run Code Online (Sandbox Code Playgroud)

当我运行时docker-compose up,我收到此错误: Service notebook has neither an image nor a build context specified. At least one must be provided. 我该如何解决它?

docker docker-compose

7
推荐指数
1
解决办法
1万
查看次数

翻译 django-allauth

我尝试在我的项目中翻译django-allauth消息。我已经创建了我的翻译文件。但我的翻译默认情况下不用于 django-allath 中存在的任何可翻译句子。看这里:

\n
#: templates/account/logout.html:10\nmsgid "Are you sure you want to sign out?" # there are in django-allauth\nmsgstr "\xd9\x85\xd8\xb7\xd9\x85\xd8\xa6\xd9\x86\xdb\x8c \xd9\x85\xdb\x8c\xe2\x80\x8c\xd8\xae\xd9\x88\xd8\xa7\xd9\x87\xdb\x8c \xd8\xae\xd8\xa7\xd8\xb1\xd8\xac \xd8\xb4\xd9\x88\xdb\x8c\xd8\x9f"\n\n#: templates/account/logout.html:20\nmsgid "Cancel" # there aren\'t in django-allauth\nmsgstr "\xd9\x84\xd8\xba\xd9\x88"\n
Run Code Online (Sandbox Code Playgroud)\n

我在输出中得到这样的东西:

\n

您确定要退出吗?-> 输出不是我想要的。django-allauth中有这句话。

\n

取消 -> 输出就是我正在寻找的。django-allauth 中没有这句话

\n

这是我的setting.py

\n
#: templates/account/logout.html:10\nmsgid "Are you sure you want to sign out?" # there are in django-allauth\nmsgstr "\xd9\x85\xd8\xb7\xd9\x85\xd8\xa6\xd9\x86\xdb\x8c \xd9\x85\xdb\x8c\xe2\x80\x8c\xd8\xae\xd9\x88\xd8\xa7\xd9\x87\xdb\x8c \xd8\xae\xd8\xa7\xd8\xb1\xd8\xac \xd8\xb4\xd9\x88\xdb\x8c\xd8\x9f"\n\n#: templates/account/logout.html:20\nmsgid "Cancel" # there aren\'t in django-allauth\nmsgstr "\xd9\x84\xd8\xba\xd9\x88"\n
Run Code Online (Sandbox Code Playgroud)\n

django django-allauth

5
推荐指数
0
解决办法
302
查看次数

标签 统计

django ×1

django-allauth ×1

docker ×1

docker-compose ×1