Git Product home page Git Product logo

Comments (11)

brosner avatar brosner commented on June 17, 2024

It's great to hear you got things going so quickly. This is exactly why we built Pinax!

Thank you for the report. We are aware of some issues between webpack and collectstatic. We are looking to resolve these issues ASAP.

from pinax-starter-projects.

brosner avatar brosner commented on June 17, 2024

@nileshbits can you post your INSTALLED_APPS? We'd like to eliminate some possibilities.

from pinax-starter-projects.

nikulk avatar nikulk commented on June 17, 2024

Here you go:

INSTALLED_APPS = [
    "django.contrib.admin",
    "django.contrib.auth",
    "django.contrib.contenttypes",
    "django.contrib.messages",
    "django.contrib.sessions",
    "django.contrib.sites",
    "django.contrib.staticfiles",

    # theme
    "bootstrapform",
    "pinax_theme_bootstrap",

    # external
    "account",
    "metron",
    "pinax.eventlog",

    # project
    "ardiff_frontend",

    #my apps
    'diffview',
    'djproxy',
]

from pinax-starter-projects.

brosner avatar brosner commented on June 17, 2024

@nileshbits when you say that collectstatic fails, what are you seeing? Do you get a traceback or an error message? In either case can you share it?

from pinax-starter-projects.

nikulk avatar nikulk commented on June 17, 2024

Ouch... I removed all those files to stabilize my build. I remember it was a post-processing issue... it couldn't post-process site.css, because it couldn't find the font files due to the /site_media/static/ in the URL.

The "failure" is not harmful to this file, since the font files should be copied to the correct folder anyway. But the collectstatic postprocessor is unable resolve the URL to find the font file, so it fails.

The main side effect is that this "failure" halts the post-processing for all files after the failure, so it could leave some files unprocessed.

from pinax-starter-projects.

paltman avatar paltman commented on June 17, 2024

@nileshbits what static files backend are you using?

from pinax-starter-projects.

nikulk avatar nikulk commented on June 17, 2024

@paltman The problem occurs when I use ManifestStaticFilesStorage. This is the backend that adds the hash to the filename for cache-busting. I haven't tried any other backend than what the development server uses by default, which, as you know, is much more fault tolerant and does not require collectstatic.

from pinax-starter-projects.

paltman avatar paltman commented on June 17, 2024

I see. So you shouldn't need that as webpack is handling the cache bust already.

Sent from my iPhone

On Dec 11, 2015, at 6:55 PM, nileshbits [email protected] wrote:

@paltman The problem occurs when I use ManifestStaticFilesStorage. This is the backend that adds the hash to the filename for cache-busting.


Reply to this email directly or view it on GitHub.

from pinax-starter-projects.

nikulk avatar nikulk commented on June 17, 2024

from pinax-starter-projects.

paltman avatar paltman commented on June 17, 2024

@nileshbits see #8

i'm about to merge this and update all starter projects and do a new release. this is a pretty big change but will/should fix a lot of issues with webpack and give you more freedom on the static build side.

from pinax-starter-projects.

nikulk avatar nikulk commented on June 17, 2024

Thank you @paltman ! I may not need to try it out for this project, but I'll certainly check it out on my next one. If you believe this is fixed, please go ahead and close it.

from pinax-starter-projects.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.