我有:
class MyView(View, ContextMixin):
def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
context['slug_from_model_one'] = ModelOne.objects.get(...define your lookup...).slug
context['slug_from_model_two'] = ModelTwo.objects.get(...define your lookup...).slug
return context
我知道
CURL=curl -L
all: \
cach1/nix-2.0.4-x86_64-linux.tar.bz2
cach1/nix-2.0.4-x86_64-linux.tar.bz2: | cach1
${CURL} 'https://nixos.org/releases/nix/nix-2.0.4/nix-2.0.4-x86_64-linux.tar.bz2' > $@
cach1:
mkdir -p cach1
为什么如此?
答案 0 :(得分:0)
我在目标配方之前有一个空格,而不是TAB。