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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T21:43:31+00:00 2026-06-17T21:43:31+00:00

I just configured my first django server for a very basic django-website. I’m using

  • 0

I just configured my first django server for a very basic django-website. I’m using Django 1.4 and Nginx 1.0.14 with supervisor and gunicorn.

The problem is that Nginx is not serving the static files as suposed, but I don’t know the why because is my first time using it.

This is the path where really lives my static files:

/home/cristian/envs/santalupe.com/santalupe/santalupe/static

And this is the setting I’ve in my nginx config file:

# Django admin media.
location /media/ {
autoindex on;
    alias /home/cristian/envs/santalupe.com/lib/python2.7/site-packages/django/contrib/admin/static/;
}

# Site media
location /static/ {
autoindex on;
    alias /home/cristian/envs/santalupe.com/santalupe/santalupe/static/;
}

Please let me know what I need to do in this case because I have not idea about the real problem.

  • 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-17T21:43:33+00:00Added an answer on June 17, 2026 at 9:43 pm

    You aren’t serving the admin media from Nginx, just normal media. Try something like:

    location /admin/media/ {
        # this changes depending on your python version
        root /home/cristian/envs/santalupe.com/lib/python2.7/site-packages/django/contrib;
    }
    

    Note how there’s no trailing slash and the path ends at contrib. I’m using almost exactly this code successfully in production.

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

Sidebar

Related Questions

I'm developing a web with cakePHP (using MAMP as localhost) and I just configured
I just deployed a Hudson server and configured it to checkout, build and deploy
I just configured my web application to use IIS rather than ASP.NET dev server
I've just configured fandjango with my simply django application. Here's the files: VIEWS.PY from
I am very new to programming and I am using Java as my first
I've been making my first ASP.NET Visual Studio website and I have just started
I have our first NodeJS server that's being deployed to a client server along
I just built my first web app for a class using Google App Engine,
I just installed MOSS 2007 SP2 and configured my site. When I go to
I have a NSUserDefault which just stores whether the db has been configured or

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.