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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T04:18:04+00:00 2026-05-26T04:18:04+00:00

https://docs.djangoproject.com/en/1.3/howto/static-files/ Trying to serve static files i was put on to the above link.

  • 0

https://docs.djangoproject.com/en/1.3/howto/static-files/

Trying to serve static files i was put on to the above link.

The link tells me when serving static files in development

  1. Put your static files where they will be found, ‘home/jamie/mysite/static/’
    Done!

2.Make sure that django.contrib.staticfiles is included in your INSTALLED_APPS.
For local development, if you are using runserver…you’re done with the setup.
Done!

3.You’ll probably need to refer to these files in your templates. The easiest method is to use the included context processor which allows template code like:

<img src="{{ STATIC_URL }}images/hi.jpg" />

Done!

Wow, that seems too simple, surely it wouldn’t work,
and sadly, no.

{{ STATIC_URL }} when i checked, equals None. Now STATIC_URL by default is none, therefore these instruction haven’t done a thing. Surely i’ve done something wrong and the django documentation is right. But i cant figure out where in the three simple steps i’ve gone wrong.

  • 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-26T04:18:05+00:00Added an answer on May 26, 2026 at 4:18 am

    Try setting STATIC_URL = '/static/' in your settings.py.

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

Sidebar

Related Questions

Regarding this documentation page from the Django website, https://docs.djangoproject.com/en/1.2/howto/static-files/ where it says for development
I looked http://docs.djangoproject.com/en/dev/howto/static-files/ already, but am still confused on how to get css/image files
http://docs.djangoproject.com/en/dev/howto/static-files/ This suggests that I can use STATIC_URL in my template to get the
I'm trying to write a custom inclusion_tag in django. Following the example on http://docs.djangoproject.com/en/dev/howto/custom-template-tags/
Following this documentation ( https://docs.djangoproject.com/en/dev/topics/http/views/#customizing-error-views ), I am trying to create a custom error
I have looked through several answers for loading CSS pages. http://docs.djangoproject.com/en/dev/howto/static-files/ Basically, I believe
I'm trying to create and run a project. I used the following article: https://docs.djangoproject.com/en/dev/intro/tutorial01/?from=olddocs
I'm running Django 1.2 beta and trying out the new feature: message framework. http://docs.djangoproject.com/en/dev/ref/contrib/messages/
So I'm trying to access this api https://www.clarityaccounting.com/api-docs/ using SUDS. Here is the code
How to turn it on? According to this http://docs.djangoproject.com/en/1.2/topics/i18n/internationalization/ I put into my template

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.