2017-12-17 5 views
0

처음으로 pinax 템플릿을 사용하고 있습니다. 설명서를 따르고 있습니다.
프로젝트를 시작했습니다. 언급 된 모든 내용은 here입니다.
문제는 페이지가 표시되지만 CSS 및 JavaScript 파일이로드되지 않았기 때문입니다.
브라우저 콘솔은 오류가
Pinax app.css을 찾을 수 없음

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 

내가 여기서 뭔가를 놓치고 말을 주는가? 문서에없는 다른 작업이 있습니까?

+0

찾고있는 설명서가 업데이트되지 않은 것 같습니다. 만들어진 settings.py 파일이 정적 폴더를 가리키고 있지 않거나 시작 프로젝트가 필요한 파일과 폴더를 만들지 않습니다. 이전에 문제없이 스타터 프로젝트를 사용 했었지만 오늘은 pinax-cli의 최신 버전을 다운로드 했으므로 같은 문제가 발생했습니다. pinax.slack.com을 통해 직접 개발자에게 연락하는 것이 좋습니다 – BringBackCommodore64

+0

Ok ... 감사합니다 ....! –

+0

새로운 대답을 시도해 보셨습니까, @MOHAMMED NUMAN? 나는 Pinax Slack 커뮤니티에서 직접 얻었고 그것은 나를 위해 일했습니다! – BringBackCommodore64

답변

3

EDIT : 진행하기 전에 노드가 설치되어 있는지 확인하십시오. (1 월 3, 2018로 작업)을 Pinax 프로젝트를 설치

새로운 절차 :

# 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 파일.