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 3285772
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T20:18:15+00:00 2026-05-17T20:18:15+00:00

I have several CSS files listed in my base.html, and while one of them

  • 0

I have several CSS files listed in my base.html, and while one of them is loaded, everything else isn’t, nor the javascript or images.

The following is a portion of base.html:

<html>
<head>
    <link href="/media/css/base.css" rel="stylesheet" type="text/css"/>        
    <link href="/media/css/home.css" rel="stylesheet" type="text/css"/>
    <link href="/media/css/slideshow.css" rel="stylesheet" type="text/css"/>
    <link href="/media/css/demos.css" rel="stylesheet" type="text/css"/>
    ...

with media being the folder in the base directory that contains the static files. When viewing the source of the page produced, base.css loads fine, but for everything else, I get Page not found: [Name of CSS file here]. As far as I can tell, there isn’t any difference between base.css and home.css; the folder location, the file permissions…I just can’t figure out why it can find one file and not the rest. Does anyone have any ideas what might be going on?

Settings.py

ROOT_DIR = os.path.abspath("")
ROOT_URL = 'http://url that will be used for running product/'


MEDIA_ROOT = ROOT_DIR + 'media/'
MEDIA_URL = ROOT_URL + 'media/'

urls.py

urlpatterns += patterns('django.views',
        url(r'^media/css/(?P<path>.*)$', 'static.serve',
            {'document_root': ROOT_DIR + 'media/css/'}, name='css-root'),
        (r'^media/images/(?P<path>.*)$', 'static.serve',
            {'document_root': ROOT_DIR + 'media/images/'}),
        (r'^media/scripts/(?P<path>.*)$', 'static.serve',
            {'document_root': ROOT_DIR + 'media/script/'}),
)
  • 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-17T20:18:16+00:00Added an answer on May 17, 2026 at 8:18 pm

    OK so we’ve got to the bottom of this now. Your MEDIA_URL setting is conflicting with the ADMIN_MEDIA_PREFIX setting – they are both set to `/media’, and the admin one takes precedence.

    Set MEDIA_URL to something else – /site_media, for example – and things should be happier.

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

Sidebar

Related Questions

Ok, here's a tough one: I have these website with several CSS files that
I have a project with several CSS files, each with many different settings. Every
I have several LESS files that are all imported into one master file (styles.less).
I have a common HTML header file which I use in several PHP files.
Maybe somebody did do this: I have several files for one font for each
I have multiple CSS files (the designer made several, bad iterations) that I need
I have several CSS files generated in PHP. I change the current CSS file
I am designing a website using CSS Files a lot, but I have several
If you have several div s on a page, you can use CSS to
I've some CSS problem in Firefox 3. I have several image buttons on my

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.