blueFast
blueFast

Reputation: 44491

GAE and django: static files

My static files are not being served. What I have verified:

Specifically:

handlers:
- url: /static
  static_dir: collecstatic
- url: .*
  script: myproj.wsgi.application

Still I get 404 for:

https://my-site.appspot.com/static/admin/css/base.css

Why could this be? What else can I verify?

EDIT

On The logging tab of the Google Cloud Platform I see warning messages:

Static file referenced by handler not found: collecstatic/admin/css/base.css

I would say all my settings are correct though.

How can I verify if my app instance has the right assets in the right places? Is there a way of checking the filesystem structure of a running instance?

Upvotes: 3

Views: 1367

Answers (1)

blueFast
blueFast

Reputation: 44491

Embarassing, but the problem was a spelling error. I had:

handlers:
- url: /static
  static_dir: collecstatic

And should be:

handlers:
- url: /static
  static_dir: collectstatic

I'll keep this. Maybe helps somebody else.

Upvotes: 3

Related Questions