簡體   English   中英

要導入的文件未找到或不可讀:bootstrap-sass

[英]File to import not found or unreadable: bootstrap-sass

嘗試Django商店。 遵循本教程: https : //django-shop.readthedocs.io/en/stable/tutorial/intro.html (穩定)。

當我運行服務器並打開localhost時,我看到的是:

Error: File to import not found or unreadable: bootstrap-sass/assets/stylesheets/bootstrap/variables.
       Parent style sheet: /home/vm/PycharmProjects/Django-shop/django-shop/shop/static/shop/css/_variables.scss
        on line 1 of ../shop/static/shop/css/_variables.scss
>> @import "bootstrap-sass/assets/stylesheets/bootstrap/variables";

我想,這個“ bootstrap-sass”目錄應該位於“ css”中,但我在那兒看不到它。

僅發生在網站前面。 我可以打開管理面板。

注釋中提到的錯誤稱No module named 'django.core.urlresolvers'您提供了一個django兼容性問題的線索。 要了解更多有關這個錯誤請參考答案#2,討論從Django中的1.x版本到2.x的一個特定的changelog 現在我們知道這可能是一個沖突點,請參閱Compatibility Table ,該明確指出Django Shop到目前為止與Django 2.x版本不兼容,並且在您的項目設置中通過pip install django安裝django的最新版本是2.1。 因此,為了克服這個問題,你應該將Django降級到與你的Django Shop版本兼容的版本。 因此,有效的組合將是Django 1.11和Django Shop0.13.x。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM