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
0
votes
3 answers

UnicodeDecodeError Django Error Collectstatic

i have a problem. I use collectstatic for production. But i have this problem with a css file. UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe1 in position 240647: invalid continuation byte But, i don't know why. This is the…
SalahAdDin
  • 2,023
  • 25
  • 51
0
votes
1 answer

Django Serve an image from a view

I am trying to render a transparent image, from one of my views in django. Here is the HTML - // other html stuff < img src="{% url 'minor_url_test' }" alt="Smiley face" height="1" width="1"> // other html stuff urls.py -…
Ram Kumar
  • 590
  • 2
  • 10
  • 27
0
votes
1 answer

Django + Amazon S3 not loading static files on production

So i have my Django site and i am trying to have my static files on S3, but i am getting a ERR_INSECURE_RESPONSE when my site is on a production server. If i click on the link and accept it, it then loads the page. I am using django-storages and on…
psychok7
  • 5,373
  • 9
  • 63
  • 101
0
votes
1 answer

Django gives 404 error when loading static files AFTER jquery .load is called

I have an html file located at /static/templates/usersPostsSection.html in my app directory. The first few lines of usersPostsSection.html are: {% load static %}
SilentDev
  • 20,997
  • 28
  • 111
  • 214
0
votes
2 answers

Django and OpenShift static files can't be found

So I followed this tutorial: https://github.com/rancavil/django-openshift-quickstart/wiki/Tutorial-How-create-an-application-with-Django-1.6-on-Openshift and I tried to add a static image to the default home.html page and it just won't find…
Tony Li
  • 137
  • 1
  • 10
0
votes
2 answers

Django static files load locally but not on development server

I was able to get my static files (CSS) to load in my local development environment, however when I push the changes to my development server I am unable to load the CSS. My local environment is Mac OS 10.9.2 and my development server is running…
apardes
  • 4,272
  • 7
  • 40
  • 66
0
votes
1 answer

static files in django 1.6 not found

I'm just starting with django 1.6 and my css is not working neither my images, I get a 404 error, even the admin(s css is not working Here is my file structure…
Armance
  • 5,350
  • 14
  • 57
  • 80
0
votes
1 answer

django url template tag relative urls

So basically I've deployed my applicaiton on vps with apache and mod wsgi. For my static files I've used {% url %} template tag like this : Django wasn't loading static files because…
Marijus
  • 4,195
  • 15
  • 52
  • 87
0
votes
1 answer

How can I set up Debian x86_64 so a Django project sees django.contrib.staticfiles?

I have a new Debian VPS, and a Django project that I am trying to deploy is not seeing django.contrib.staticfiles.*. Doing a "pip install django-staticfiles" has not observably changed things. What is the best way to have things running well enough…
Christos Hayward
  • 5,777
  • 17
  • 58
  • 113
0
votes
1 answer

Django doesn't look for static files in my app

I've developed a stand-alone Django app that has one static JS file. On some installations, Django development server can't find the static file. The app is installed as a Python Package with pip, and I can find the JS file in…
zmbq
  • 38,013
  • 14
  • 101
  • 171
0
votes
1 answer

Django: Using static, hard time with paths to render css

This is a bit embarrassing, but I don't know how to solve this problem: First off, my project directory looks like this (there are more directories, but we aren't concerned with them): projectfolder/ wsgi/ openshift/ templates/ …
ApathyBear
  • 9,057
  • 14
  • 56
  • 90
0
votes
0 answers

serving static files in Django

I'm quite new to Django and I have a problem that I cannot solve for a long time already. Would appreciate any hint! The question is why does it find static files for base.html and cannot find it for login.html(they are even in the same directory)?…
user3310881
  • 19
  • 1
  • 7
0
votes
1 answer

django collect static looking for nonexistent directory

I am getting an existing project running locally. I am trying to collectstatic content to see my css, images, etc. My project structure looks like: myprojectname --- myprojectname --- --- myproectname --- --- --- settings --- --- --- --- base.py…
Atma
  • 29,141
  • 56
  • 198
  • 299
0
votes
2 answers

Django STATIC_URL clarification

I have read other topics on stackoverflow and on the django website, but I am still confused. These are my configurations: STATIC_ROOT = os.path.join(BASE_DIR, 'assets') STATIC_URL = '/static/' When I run manage.py collectstatic , my static files…
Mihai Zamfir
  • 2,167
  • 4
  • 22
  • 37
0
votes
1 answer

twitter bootstrap with Django 1.3

I am using Pythoneverywhere.com to deploy my django app, which is why I am using Django ver 1.3. I am trying to use twitter bootstrap..with no luck so far. I unzipped bootstrap.zip in static folder, so it's there. And below is what my template head…