我试图在Mac 10.9.1上安装PIL我收到一条错误消息,我无法在这里找到.我已经安装了Python27,pip,DJango,现在我尝试安装:
sudo pip install pil
Run Code Online (Sandbox Code Playgroud)
我收到的消息:
Downloading/unpacking PIL
Could not find any downloads that satisfy the requirement PIL
Some externally hosted files were ignored (use --allow-external PIL to allow).
Cleaning up...
No distributions at all found for PIL
Storing debug log for failure in /Users/xxx/Library/Logs/pip.log
Run Code Online (Sandbox Code Playgroud)
有人知道如何解决这个错误吗?
在Xcode上,我检查了是否安装了命令行工具,但它没有出现在Xcode-> preferences-> Download下.
非常感谢您的帮助
我有一个名为FAQ的应用程序我正在使用django-vanilla-views,这个应用程序正在运行,但我收到了错误,如上面的标题但错误的正文描述说: NoReverseMatch:反向'delete_question'带参数'(''' ,)'和'找不到关键字参数'{}'.尝试了1种模式:['faq/delete /(?P\d +)/ $']

这是代码:
from django.db import models
# Create your models here.
from autoslug import AutoSlugField
from taggit.managers import TaggableManager
class QuestionType(models.Model):
title = models.CharField(max_length=255, unique=True)
slug = AutoSlugField(populate_from='title', unique=True, max_length=255, blank=False)
def __unicode__(self):
return u"%s " % (self.title)
class Question(models.Model):
title = models.CharField(max_length=255)
description = models.TextField()
slug = AutoSlugField(populate_from='title', max_length=255, unique=True, blank=False)
category = models.OneToOneField('QuestionType', blank=False, related_name='question')
tags = TaggableManager()
def __unicode__(self):
return "%s. %s " % (self.title, self.category)
from .models import Question from vanilla …Run Code Online (Sandbox Code Playgroud)