Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 469237
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T23:45:44+00:00 2026-05-12T23:45:44+00:00

I am trying to serve static files from another domain (sub domain of current

  • 0

I am trying to serve static files from another domain (sub domain of current domain).
To serve all media files I used this settings:

MEDIA_URL =
‘http://media.bud-inform.co.ua/‘

So when in template I used

{{ MEDIA_URL }}

it was replace with the setting above. Now I am trying to serve admin media files from the same subdomain, I changed the settings this way:

ADMIN_MEDIA_PREFIX =
‘http://media.bud-inform.co.ua/admin_media/‘,

and expected that all calls to media from my admin site will be made to this url…. But actually it didn’t work this way, I still see paths to CSS made as following:

http://bud-inform.co.ua/media/css/login.css

Could you suggest how to serve admin media files correctly

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T23:45:45+00:00Added an answer on May 12, 2026 at 11:45 pm

    MEDIA_URL and ADMIN_MEDIA_PREFIX are two different things. One is the location of your media files, while the other is the location of the django admin system’s media files.

    You have to make sure that the ADMIN_MEDIA_PREFIX points to somewhere where you’re actually serving the admin media. Django doesn’t handle that step for you.

    The django admin media is at django/contrib/admin/media/. Copy or symlink that directory somewhere publicly visible and set ADMIN_MEDIA_PREFIX to reflect where you put it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to serve all static files (js, css, images) from a CDN instead
I'm trying to serve the media and static files of my django app with
I'm trying to serve the static files from a Wordpress installation and I'm using
I'm trying to setup nginx so static.domain.com can only serve images. This is what
I'm trying to build a blog/messageboard that uses static HTML files to serve content.
Possible Duplicate: Trying to serve django static files on development server - not found
UnicodeDecodeError Appears while trying to access any of the files from site media folder.
Hi I am trying to stream video from static html5 pages serve by Windows
Playing and trying to see how fast node.js can serve a static file from
I'm trying to use a perl script to pull content from static html files

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.