cssdjangopinax

Pinax app.css not found


I am using pinax template for the first time.I am following the documentation.
I started the project.Did everything mentioned here.
The problem is the page is displayed but the css and javascript files are not loaded.
The browser console gives error saying

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

Am i missing something here? Is there anything else to do which is not there in documentation?


Solution

  • EDIT: Make sure you have node installed before proceeding.

    New procedure for installing a Pinax project (working as of January 3rd, 2018):

    # 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
    

    Note: The README.md file inside the project should provide you with the right installation instructions.