location of Django admin media files

54 views
Skip to first unread message

Josvic Zammit

unread,
Mar 22, 2012, 11:21:16 AM3/22/12
to google-a...@googlegroups.com
I am running GoogleAppEngine (GAE) 1.6.3 with Python 2.7 and Django 1.3 by having:

libraries:
- name: django
  version: "1.3"

in my app.yaml. The following should serve the admin media files at url /static/admin:

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

But I get 404s for such admin media (css, etc). Am I using the correct location for the Django admin's media file?

Brian Quinlan

unread,
Apr 4, 2012, 9:31:26 PM4/4/12
to google-a...@googlegroups.com
Hi Josvic,

No, that isn't the correct path and we don't expose the correct path.
Have you considered the approach "Serving the admin files" described
at:
https://docs.djangoproject.com/en/1.3/howto/deployment/modwsgi/

Cheers,
Brian

> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-appengine/-/Syw-aH-RnskJ.
> To post to this group, send email to google-a...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengi...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-appengine?hl=en.

Reply all
Reply to author
Forward
0 new messages