2014-01-23 58 views
0

我使用Django的壓縮機的一個項目,但是當我運行./manage compress命令我喜歡錯誤列表:Django的壓縮機:無效的模板

Invalid template /home/somepath: 'some_template_tags' is not a valid tag library: ImportError raised loading postman.templatetags.some_template_tags: cannot import name SomeLibrary 

我沒有任何額外的信息。此外,應用程序被添加到INSTALLED_APPS和模板標籤正常運行,沒有django壓縮機。

更新:

這是settings.py文件:

INSTALLED_APPS = (
    'django.contrib.staticfiles', 
    'cms', 
    'mptt', 
    'menus', 
    'south', 
    'sekizai', 
    'classytags', 
    'postman', 
    # More apps 
    'compressor', 
) 
# More lines 
STATICFILES_FINDERS = (
    'django.contrib.staticfiles.finders.FileSystemFinder', 
    'django.contrib.staticfiles.finders.AppDirectoriesFinder', 
    'compressor.finders.CompressorFinder', 
) 
+0

您是否可以更新您的文章以在項目settings.py文件中包含相關信息? –

回答

0

問題是郵遞員。我在postman/models.py文件中將get_user_model()替換爲User