Questions tagged [django-static]

113 questions
0
votes
1 answer

How can I use peterbe's django-static to serve both static and media?

Note: this is different from django-staticfiles, in that it has compression built in. My /static/ is used for static files I upload myself, while /media/ is used for files users upload. However, DJANGO_STATIC_MEDIA_URL relies on the fact that all…
az_
  • 1,493
  • 1
  • 16
  • 24
0
votes
2 answers

Changing the default folder in django-static

I am looking at using django-static for serving the static content (https://github.com/peterbe/django-static) But django-static always assumes that all the "static content" is always placed in "media" folder. Can I configure this to be a different…
Jamal
  • 287
  • 1
  • 4
  • 15
0
votes
1 answer

Django Collectstatic command Changed something

So I've never deployed a Django app and I'm trying to get up to speed on the whole thing. I ran the collectstatic command and now non of my static files will render. When I run the findstatic command I receive an exception that…
harristrader
  • 1,181
  • 2
  • 13
  • 20
0
votes
3 answers

Newbie Guide For Adding CSS To Django 1.4 Templates

I'm really confused. I'm using Django 1.4 and I've been searching for this the whole day, and it seems like that everything has changed in the latest version of Django and the documentation isn't helpful at all (at least to me). Please help me…
user1253460
-1
votes
1 answer

django not able to load static file

I am trying to go though Django tutorial which explains about static files, but when I am trying implement that I am getting following error: [08/Oct/2017 23:08:27] "GET / HTTP/1.1" 200 365 [08/Oct/2017 23:08:27] "GET /static/polls/sytle.css…
-2
votes
3 answers

Adding image as a background for a django template

I have checked a links for how to set an image as background for a div. I have tried various ways. But still am going wrong somewhere and would need some guidance... Below is my directory structure: frontend /frontend (django project) …
nidHi
  • 833
  • 3
  • 10
  • 21
-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 =…
1 2 3 4 5 6 7
8