未找到 Pinax app.css
Pinax app.css not found
我第一次使用 pinax 模板 time.I 遵循文档。
我开始 project.Did 提到的所有内容 here。
问题是页面已显示,但未加载 css 和 javascript 文件。
浏览器控制台显示错误
Failed to load resource: the server responded with a status of 404 (Not Found) app.css
Failed to load resource: the server responded with a status of 404 (Not Found) site.js
我是不是遗漏了什么?还有没有文档中没有的其他事情要做?
编辑:确保在继续之前安装了节点。
Pinax项目安装新流程(2018年1月3日生效):
# First, activate your virtualenv or similar
. ~/.virtualenvs/myproject/bin/activate
# Second, install Pinax command line tool
pip install pinax-cli
# Install Pinax project
pinax start {project type} {custom name}
cd {custom name}
# Install your project's dependencies from 'package.json' into node_modules/
npm install
# Install Django/Pinax dependencies
pip install -r requirements.txt
# Prepare for Django
python manage.py migrate
python manage.py loaddata sites
python manage.py createsuperuser
# Run a proxy on port 3000
npm run dev # this will run webpack with watch and compile code as it changes
# Browse to http://127.0.0.1:3000
注意:项目中的 README.md 文件应该为您提供正确的安装说明。
我第一次使用 pinax 模板 time.I 遵循文档。
我开始 project.Did 提到的所有内容 here。
问题是页面已显示,但未加载 css 和 javascript 文件。
浏览器控制台显示错误
Failed to load resource: the server responded with a status of 404 (Not Found) app.css
Failed to load resource: the server responded with a status of 404 (Not Found) site.js
我是不是遗漏了什么?还有没有文档中没有的其他事情要做?
编辑:确保在继续之前安装了节点。
Pinax项目安装新流程(2018年1月3日生效):
# First, activate your virtualenv or similar
. ~/.virtualenvs/myproject/bin/activate
# Second, install Pinax command line tool
pip install pinax-cli
# Install Pinax project
pinax start {project type} {custom name}
cd {custom name}
# Install your project's dependencies from 'package.json' into node_modules/
npm install
# Install Django/Pinax dependencies
pip install -r requirements.txt
# Prepare for Django
python manage.py migrate
python manage.py loaddata sites
python manage.py createsuperuser
# Run a proxy on port 3000
npm run dev # this will run webpack with watch and compile code as it changes
# Browse to http://127.0.0.1:3000
注意:项目中的 README.md 文件应该为您提供正确的安装说明。