Code Kuno

Problems, solutions, and other stuff I've encountered as a Software Guy

    • Edit
    • Delete
    • Autopost

    app-engine-patch -- ignoring mediagenerator

    move the django admin media files from _generated_media/1/admin to some directory inside the PROJECT_DIR:

    1. move the admin dir to desired location, say PROJECT_DIR/admin_media

    2. modify app.yaml urls to point to that static_dir location, e.g. add

    - url: /admin_media

    static_dir: admin_media

    3. modify the MEDIA_URL and ADMIN_MEDIA_PREFIX in settings.py

    MEDIA_URL = “/media/”

    ADMIN_MEDIA_PREFIX = “/admin_media/”

    We need to override MEDIA_URL so that when we access the media_url path from the templates, we don’t get the altered media_url (settings_post.py alters this by appending the MEDIA_VERSION by interpolating the %s. ADMIN_MEDIA_PREFIX is also based on the MEDIA_URL, but we want it to use /admin_media.
    • 20 April 2009
    • Views
    • 0 Comments
    • Permalink
    • Favorited 0 Times
    • Tweet

    Comments 0 Comments

    Leave a Comment

  • Tim Medina's Posterous

    I'm a guy with a passion for software development and programming. I like exploring emerging software tools and technologies. I consider Ruby as my primary programming language and Python as my favorite. I'm a co-founder of Sinefunc, Inc. - a Ruby shop here in Manila, Philippines. You can view my Google profile here.

  • About Tim Medina

    I'm a guy with a passion for software development and programming. I like exploring emerging software tools and technologies. I consider Ruby as my primary programming language and Python as my favorite. I'm a co-founder of Sinefunc, Inc. - a Ruby shop here in Manila, Philippines. You can view my Google profile here.

  • Subscribe

    Subscribe to this posterous
    Unsubscribe
    Follow this posterous RSS
  • Follow Me

Theme created for Posterous by Obox