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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T07:32:30+00:00 2026-06-04T07:32:30+00:00

In settings.py, if I specify STATIC_URL = ‘http://68.164.125.221/’ , then clients can visit my

  • 0

In settings.py, if I specify STATIC_URL = 'http://68.164.125.221/', then clients can visit my web page. However, no CSS and other static files load.

On the other hand, if I specify STATIC_URL = '/', then visiting the home page of my application produces this error.

Page not found (404)
Request Method: GET
Request URL:    http://68.164.125.221/
Directory indexes are not allowed here.
You're seeing this error because you have DEBUG = True in your Django settings file.

Interestingly, my static files now load (http://68.164.125.221/main.css loads for instance) despite the home page of my app displaying this error.

Why does changing my “STATIC_URL” setting toggle whether my home page loads or my static files load? I am using the staticfiles app.

  • 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-06-04T07:32:32+00:00Added an answer on June 4, 2026 at 7:32 am

    You probably want STATIC_URL = '/static/'[1]; when you set it to / Django is trying to serve up /blah/ as a static file rather than pushing it through to your Django app.

    The actual error you’re getting, Directory indexes are not allowed here., refers to the fact that the static file folders aren’t listed out – you must access a specific file for it to be served up.

    [1] Or /media/, or /files/, or whatever… just not ‘/’.

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

Sidebar

Related Questions

I have setup ability for a user to specify some settings using the in-built
Settings.settings generates Settings.Designer.cs which presumably generates app.config which then is copied to output directory
I have some settings stored in web.config like this: <add key=Answers value=radiobutton1,radiobutton2,radiobutton3/> Radiobutton1, radiobutton2
In my view, if I specify def myView(request): return render_to_response('myTemplate.html', {'user': request.user,}, context_instance=RequestContext(request)) then
The documentation says: http://docs.djangoproject.com/en/dev/ref/settings/#time-zone Note that this is the time zone to which Django
it seen i can't write to settings in LG-P500 (Android 2.2). This is my
A facebook user can now specify post privacy on per-application basis. This is explained
How can one specify the connection string in a config file of a class
I'm using play framework now, i already know we can specify the attachments path
I would like to know if someone found a trick to specify a settings.xml

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.