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
6
votes
2 answers

How to serve admin static files with django.contrib.staticfiles in Django 1.4 (using one Apache server)?

Django is recommending me that if I am going to only use one server (Apache) to serve both dynamic and static files, then I should serve static files using django.contrib.staticfiles. So in my settings.py I have loaded django.contrib.staticfiles to…
hobbes3
  • 28,078
  • 24
  • 87
  • 116
6
votes
4 answers

Django doesn't load static files ValueError("Missing staticfiles manifest entry for '%s'" % clean_name)

is my first app in Django and I am trying to prepare my Django (2.0) application for production, but I am unable to make the static files load properly using WhiteNoise I keep having all the time the next error in my log ValueError("Missing…
6
votes
2 answers

Correctly accessing django static files from external javascript

I've got a django application using AngularJS with a bunch of JavaScript and template files. In my django template I can use the {% static %} tag to properly reference those files like so: Once I installed my_script.js in my_app/templates/my_app, everything seemed to work. At…
jazzblue
  • 2,411
  • 4
  • 38
  • 63
6
votes
1 answer

django collectstatic overriding

I'm using Django 1.3.1 and the contrib.collectstatic app to manage my static files. My project structure is myproject - settings.py - static-media - urls.py - media - manage.py where static-media is a folder containing the…
Paulo
  • 6,982
  • 7
  • 42
  • 56
5
votes
2 answers

How to tell Django staticfiles to not collect user uploaded media directory files?

I have a very simple question which I was not able to find an answer. Using Django staticfiles app, I call the statics collect routine by typing this command line : python manage.py collectstatic. My problem is that I've several applications serving…
user650108
  • 1,009
  • 1
  • 9
  • 18
5
votes
1 answer

Django Production - collectstatic each time?

I'm running a Django production server with WSGI & Apache. I'm wondering if I have to run a collectstatic each time I modify a little static file. Isn't there a way to let WSGI or whichever program automate this process ?
Pierre de LESPINAY
  • 44,700
  • 57
  • 210
  • 307
5
votes
0 answers

Admin template is ignored when deploying

I have a strange situation here using Django 3.2.8: When deploying, only one admin template is being ignored (but not if debug == True): This is my directory after deploying (and before, they are identical): change_form.html is applied correctly,…
5
votes
3 answers

Django doesn't serve static files with NGINX + GUNICORN

Everything worked very well before gunicorn and nginx, static files were served to the website. But now, it doesn't work anymore. Settings.py STATICFILES_DIRS = [ '/root/vcrm/vcrm1/static/' ] STATIC_ROOT = os.path.join(BASE_DIR,…
NbaRo
  • 83
  • 2
  • 10