Questions tagged [django-staticfiles]

A Django app that provides helpers for serving static files.

django-staticfiles is a Django app that provides helpers for serving static files.

1241 questions
-1
votes
1 answer

Serving Django static files using mod_wsgi

I have heard that Django static files should be deployed directly from the web server, not through Django itself. I'm using mod_wsgi -- does anyone know how I would configure it to serve my django static files?
Clay Wardell
  • 14,846
  • 13
  • 44
  • 65
-2
votes
1 answer

Connecting html with css using django

This is the html file that i'm trying to add a star rating for book_detail.html {% extends "base.html" %} {% load static %} {% block title %} Block Detail Page {% endblock title %} {% block sidenav %} {% for item in item_list %}
  • Scels12
    • 1
    • 2
  • -2
    votes
    4 answers

    Django templates not picking static files

    Following is the my static folder structure: ProjectABC - App1 - App2 - App3 - ProjectABC - resources - static - imgs - css - templates This is how the project structure looks like. This…
    Rahul Sharma
    • 329
    • 1
    • 3
    • 10
    -2
    votes
    1 answer

    why the django static file not loading

    settings.py import os BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) DEBUG = True ALLOWED_HOSTS = [] INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', …
    WaEl hKiRi
    • 29
    • 3
    -2
    votes
    1 answer

    Django deploy - no images and css

    So I have just deployed my website to my outer server. I coppied all files from my repo. I created virtualenv, database on server, created users, made migrations, migrated and ofc . Unlikely it seems that my images and css/js files are not found. Is…
    Wincij
    • 121
    • 10
    -2
    votes
    1 answer

    css style not working in django production enviornment?

    I am beginner in Django. When i hosted a django application with mod_wsgi in Apache2.4. I got a 404 error for my base.css. Any help should be appreciated. Alias /cgi-bin /home/vetconnect/public_html/cgi-bin` Alias /static/…
    nidhin
    • 359
    • 1
    • 3
    • 13
    -2
    votes
    1 answer

    Django method to download and store files

    Is there a way to download files by an app's method and store in a folder like "/media/" (relative path in django app) that can be later accessed by staticfiles?
    MorRich
    • 426
    • 2
    • 5
    • 15
    -2
    votes
    1 answer

    Static URL and CSS in Django

    I am trying to setup a static url in Django and have my templates use it to link to the css. Here is my code. Why is it not working? Also, what is the best practice for setting this up? Thanks. # settings import os PROJECT_PATH =…
    -2
    votes
    1 answer

    Static files get deployed from STATICFILES_DIRS, but not STATIC_ROOT

    I have problems with deploying files in my development environment. See my configuration below. python manage.py collectstatic collects all files from '/Users/vikingosegundo/Projects/website/media/' as expected and stores them at…
    vikingosegundo
    • 52,040
    • 14
    • 137
    • 178
    -3
    votes
    2 answers

    Django static files not showing up

    My project name resume I wanted to add bootstrap to my project first I copy the assets files to my project sub folder called resume => static assests files - resume->resume/static Then I add following settings in setting .py STATIC_DIR = BASE_DIR…
    Ali Umer
    • 13
    • 5
    1 2 3
    82
    83