gurkan
gurkan

Reputation: 3535

Google App Engine CSS Problem

I have a strange problem with css file in google app engine.
If i use


handlers:

- url: /cms/.* script: cms.py

- url: /
  script: main.py

- url: /stylesheets
  static_dir: stylesheets

in my app.yaml file for http://localhost:8080/ it works fine.
But when i redirect it to another handler in main.py It gives such an error

Not found error: /login did not match any patterns in application configuration.

When I use this


handlers:

- url: /cms/.* script: cms.py

- url: .*
  script: main.py


- url: /stylesheets
  static_dir: stylesheets

whole logic works just fine ( no error occurs wherever I roam in the application) but no sign of css this time.
I hope you can help me.

Thanks in advance..

Upvotes: 1

Views: 1195

Answers (1)

systempuntoout
systempuntoout

Reputation: 74114

Try with this:

- url: /stylesheets
  static_dir: stylesheets

- url: /cms/.* 
  script: cms.py

- url: /.*
  script: main.py

Your first solution does not work with /login because using / you are getting just the root
Your second solution does not work because stylesheets cames after the catch all pattern .*

Upvotes: 4

Related Questions