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

Django static files link

thanks for looking into this, cause it's getting on my nerves now:) I can't get a style.css (or any static file to get oared at all!) and I have googled around and none of the solutions worked so far. my urls.py: from django.conf.urls import…
blargie-bla
  • 37
  • 2
  • 11
0
votes
1 answer

How to link to an .ipa file (over the air ios app installation) using django and STATIC_URL?

I have a django server set up in development. It is basically the simplest "app store" you can imagine. I can now finally serve up static images using STATIC_URL as the prefix. I however have failed to be able to enable over the air installation of…
user798719
  • 9,619
  • 25
  • 84
  • 123
0
votes
2 answers

Django 1.4 static files css not applied

I have spent the last few days figuring out how to include an css file into a Django template. I still did not succeed so am hoping someone can help me out. I have the following settings: --settings.py-- MEDIA_ROOT = '' MEDIA_URL = '' STATIC_ROOT…
0
votes
1 answer

dajaxice collectstatic creating a temp file

I'm having a problem with Dajaxice and how it appears to create a custom javascript file to be used for ajax. When one runs manage.py collectstatic with Dajaxice installed, it creates a custom javascript file. This post references this issue as…
Leo Mizuhara
  • 365
  • 2
  • 3
  • 15
0
votes
1 answer

how to use django collectmedia?

I have just downloaded the collectmedia snippet from http://djangosnippets.org/snippets/1068/ but im not sure how to go about using it. Where do i have to put it and how do i call it? I now have: - project - manage.py - mysite - app -…
Calum
  • 2,110
  • 2
  • 22
  • 39
0
votes
2 answers

Default way to manage static files in Django

Im trying to get rid of 404 with Django local server. My page includes this: Actual file lies in C:/Users/PyCharmProjects/MyProject/MyApp/static/js/myjscript.js Django…
Gill Bates
  • 14,330
  • 23
  • 70
  • 138
0
votes
0 answers

Django 1.4: admin not using STATIC_URL

I've upgrade my Django from 1.3 to 1.4, and using django.contrib.staticfiles. I have to change the ADMIN_MEDIA_PREFIX to only use STATIC_URL, wich is defined as STATIC_URL = '/static/' When I open the admin interface, css files are linked to…
adrianlzt
  • 1,862
  • 20
  • 11
0
votes
1 answer

Serving Django static files on Heroku

I'm having an odd issue when porting my Django site from dev server to Heroku. I know I'm not supposed to use django to directly serve the static files, but I'm just testing out an idea for now. I've tried using: from…
Leo Mizuhara
  • 365
  • 2
  • 3
  • 15
0
votes
3 answers

why doesn't django handle static files all by itself, without apache?

when develop, django can handle static files by changing settings.py, and I suppose it won't cost much resources to handle those static files. But when apply the project to productive environment using mod_wsgi, the recommended way is to handle…
iloahz
  • 4,491
  • 8
  • 23
  • 31
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
1 answer

Changed Settings Config now Django Static files isnt working

So I updated my project settings with the following scheme PROJECT_ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) /settings base.py prod.py dev.py Is this the correct STATICFILES_DIRS settings for the above…
harristrader
  • 1,181
  • 2
  • 13
  • 20
0
votes
1 answer

Django static CSS JS IMAGE FILES not loading

It was working fine before, and I have no clue what changed but I'm getting errors now with static files loading =( Please help! Using Django 1.4 Urls.py from django.contrib.staticfiles.urls import staticfiles_urlpatterns urlpatterns +=…
user1678031
  • 2,925
  • 2
  • 16
  • 15
0
votes
1 answer

Webfaction Django 1.4.1: serving static and media with custom nginx build

I have a custom nginx build for my project and everything works fine except I'm confused about serving static files using the same nginx server (below you can see my config file) recently tried to set root=/home/USERNAME/media/app/ and root=…
sultan
  • 5,978
  • 14
  • 59
  • 103
0
votes
1 answer

Django 1.4 static file not found error

Possible Duplicate: Trying to serve django static files on development server - not found I just entered the world of Python and django, i am unable to set my URL using the STATIC_URL , i am currently developing locally with django 1.4. I read…
shabeer90
  • 5,161
  • 4
  • 47
  • 65
0
votes
2 answers

Lost django admin static files after using .htaccess file on openshift

I am unsure of what has happened, but i've followed a few guides that i've found around on the internet about serving media files through static folder (served from the $OPENSHIFT_DATA_DIR) by using mod_rewrite. The only problem now is, my admin…
Llanilek
  • 3,386
  • 5
  • 39
  • 65