Questions tagged [django-static]
113 questions
0
votes
2 answers
Django Nginx Staticfiles not showing in AWS
I have a Django project that I added to AWS. in the development server the site works perfectly fine however I am not able to get my static files to my aws site
Below is my project Tree and static files are in the project
Below is my…

Samir Tendulkar
- 1,151
- 3
- 19
- 47
0
votes
1 answer
Using static folding inside app folding Django
I have a static directory inside my apps folder. I added this line of code to my projects settings.py file
STATICFILES_DIRS = [
os.path.join(BASE_DIR, "static"),
'/var/www/static/',
]
The file continues to result in a 404 not found. I'm…

Dylan Cronkhite
- 423
- 1
- 8
- 15
0
votes
1 answer
Problems Loading Static Files into Django Dev Environment
I am trying to load static files into my Django project and it just isn't working.
Inside my settings.py file I have defined the below:
STATIC_URL = '/static/'
STATICFILE_DIRS = os.path.join(BASE_DIR,'static')
This is a screenshot around how my…

Rutnet
- 1,533
- 5
- 26
- 48
0
votes
1 answer
Static and media urls in Django
In my settings file there is STATIC_URL = '/static/' and getting access to static files(css files) from the directory app/static/css/filename . If I add this to the setting file
MEDIA_URL = '/media/' is it possible to access the media files from…

Self
- 497
- 1
- 6
- 19
0
votes
3 answers
Django, not able to load image, but css is loaded
I m able to load css file based on the tutorial provided by djangoproject but images are not getting loaded.
Here is the file structure:
appname/static/ mess/ img/ burger.jpg
Here is the login.html file where I m trying to load the image.
`
…

Sahal Sajjad
- 235
- 1
- 5
- 18
0
votes
1 answer
Less files - django usage
I bought a template for my project which has 'less' files along with other static files and templates.
Any suggestions where to put them?
Also, there are 3 django package to use for 'less' files.. django-static-compiler, django-compressor …

randomuser
- 1,201
- 2
- 10
- 19
0
votes
1 answer
django staticfiles_urlpatterns not working
I have a question about staticfiles_urlpatterns method in django
What I've learned so far is the staticfiles_urlpatterns wrapped all the urls with base template in one process, so we may not add {% extends "base.html" %}, {% block content %}, {% end…

mlxjr
- 29
- 10
0
votes
0 answers
Django / Static Files or images are not loading properly
I apologize if the error was posted earlier but I have not been able to work this through. I have the following django project structure.
.
├── db.sqlite3
├── manage.py
├── rango
│ ├── admin.py
│ ├── __init__.py
│ ├── migrations
│ │ ├──…

manugupt1
- 2,337
- 6
- 31
- 39
0
votes
0 answers
css missing from some page DEBUG = False django
Hello everybody and thanks in advance for the helpers!
I have created a django project and I want to run it on the server in production mode.
I have set the setting.py DEBUG = False and suddenly some of my CSS files got "missing".
Some of the…

Shalom Balulu
- 379
- 1
- 9
- 20
0
votes
0 answers
Django 1.6.5 STATIC_URL in templates
I really need your help. I know that this question has been asked many times, but now I'm faced with strange behavior of django 1.6.5. The problem is that in my project stopped working STATIC_URL's in templates. My settings:
STATIC_URL =…

stk-13
- 97
- 1
- 1
- 8
0
votes
1 answer
Python django_static
I'm having trouble to render a python app that someone sent me.
settings.py:
STATIC_URL = '/static/'
DJANGO_STATIC = True
DJANGO_STATIC_NAME_PREFIX = '/static'
DJANGO_STATIC_SAVE_PREFIX = '/tmp/cache-archinot
INSTALLED_APPS = (
…

Alejandro
- 1,159
- 3
- 16
- 30
0
votes
1 answer
Unable to use admin's static file when debug is False in django
I browsed these question but not found correct answer. Here is my problem..
I have some static files.Here is the dir..
/home/user/djangoproject/djangoapp/static
/home/user/djangoproject/templates/base.html (where I have modify some for django admin…

Swagat
- 617
- 5
- 16
0
votes
2 answers
Django.staticfiles doesn't collect admin files
I noticed that staticfiles doesn't copy the admin's static files to STATIC_ROOT. I was under the impression (and I can't find references for that just now) that once you include django.contrib.staticfiles to your INSTALLED_APPS, it would…

gregoltsov
- 2,269
- 1
- 22
- 37
0
votes
1 answer
how to load image in the size specified in django template?
Suppose, I have 20 images of size 1600 X 900 in a page. How do I load the images in the size that I specify on a template? In the css I can do it. But I want to change the actual size of the image, so that when clicked on the particular image, it…

Robin
- 5,366
- 17
- 57
- 87
0
votes
2 answers
django static files through apache in windows
I have configured apache to serve my project. But I can't yet configure it to serve static files. Till now in my httpd.conf I have appended the code that django documentation provides and its like this:
WSGIScriptAlias /…

Robin
- 5,366
- 17
- 57
- 87