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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T09:50:33+00:00 2026-05-27T09:50:33+00:00

Not sure what I’m doing wrong, but I can’t get this to work. I’m

  • 0

Not sure what I’m doing wrong, but I can’t get this to work. I’m using Django 1.3 and Python 2.7.

My project structure looks like this:

project
   static
   templates
   settings.py
   apps
      ...

In my settings.py file I have

PROJECT_ROOT = os.path.realpath(os.path.dirname(__file__))
STATIC_ROOT = os.path.realpath(os.path.join(PROJECT_ROOT, 'static'))
STATIC_URL = '/static'

my urls.py file:

from django.conf.urls.defaults import *
from django.contrib.staticfiles.urls import staticfiles_urlpatterns

urlpatterns = patterns('',
    url(r'^admin/', include(admin.site.urls)),
    url(r'^grappelli/', include('grappelli.urls')),
) 
urlpatterns += staticfiles_urlpatterns()

In my templates, I’m using {{ STATIC_URL }} which creates the correct path to my files, like this: /static/js/libs/modernizr-2.0.6.min.js.

None of my static files load and I’ve double checked the directory structure is correct. I feel like I’m taking crazy pills, so any advice is appreciated. Thanks

  • 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-27T09:50:34+00:00Added an answer on May 27, 2026 at 9:50 am

    You should add the complete path to the dir where you place your static files in STATICFILES_DIRS in settings.py, like this:

    STATICFILES_DIRS = (
                    '/path/to/static',
    )
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Not sure where to post this, but I can't find any information anywhere and
Not sure what I'm doing wrong, but here is the code 1: var currDoc:NotesDocument
Not sure this is possible but maybe you can help. I have a list,
Not sure how to ask a followup on SO, but this is in reference
Not sure if the title is quite right for the question but I can't
Not sure if this is intended behavior or a bug or a wrong function
Not sure this is a programming question, but we use LaTeX for all our
not sure what is wrong with this jquery code: http://jsfiddle.net/aCABM/ I want to to
Not sure if this is too open-ended of a question for StackOverflow but, I'm
Not sure if these two can be compared, to bear with me. But what

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.