Thursday, September 15, 2011

CSS can't load when deploy to GAE

Hi,

when I runserver on my localhost, CSS can load on the web site.

Before I deployed to GAE,
I only change the app.yaml setting:

- url: /media/admin
static_dir: django/contrib/admin/media
expiration: '0'

to

- url: /static
static_dir: static
expiration: '0'

After I deployed to GAE,
I only can see the image can work.
However, CSS not only can't work on the homepage, but the admin page.
But I try the link of CSS can work.
I don't know why the image can work, but CSS can't work.
How to solve the problem?

Thanks

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate