Questions tagged [django-mediagenerator]

django-mediagenerator is a django application for managing assets, similar to Django's staticfiles app.

Assets are able to be compressed, and combined, and it is also possible to use SASS and Coffeescript, among other things.

Documentation:

Source

10 questions
1
vote
2 answers

Is Require.js unneccesary when using django-mediagenerator

I want to learn Require.js and I was thinking about implementing it in an existing Django project. However, I'm already using the asset manager django-mediagenerator for bundling JavaScript files and CSS files in my project. Since I'm not completely…
1
vote
1 answer

Django-mediagenerator can't find Sass

I'm trying to setup django-mediagenerator with Sass, but whenever it tries to compile the .scss files, I get the following error: ValueError: Failed to execute Sass. Please make sure that you have installed Sass (http://sass-lang.com) and…
NT3RP
  • 15,262
  • 9
  • 61
  • 97
1
vote
2 answers

django-mediagenerator CSS error

I'm using django-generator and it has been working rather well. However, on some of my machines it seems to have stopped translating url values inside CSS files. On some pages the CSS files will look like this: background-image:…
Goro
  • 9,919
  • 22
  • 74
  • 108
1
vote
1 answer

django-mediagenerator and a CDN

I am using django-mediagenerator for managing static files. It has been great, but I am trying to figure out how I could put the static files on a content delivery network. I will be using Amazon AWS. The way I see it, I could do one of two…
Goro
  • 9,919
  • 22
  • 74
  • 108
0
votes
1 answer

Where to set cache headers for manifest file on django app?

I'm using django mediagenerator to compress and setup for offline and it is mostly working, but when I regenerate the media files (which updates the manifest file) the browser does not notice that it has changed so reads the old manifest which…
PhoebeB
  • 8,434
  • 8
  • 57
  • 76
0
votes
1 answer

Issue in loading user uploaded images in Django

My urls.py urlpatterns = patterns('', # Examples: # url(r'^$', 'photo.views.home', name='home'), # url(r'^photo/', include('photo.foo.urls')), # Uncomment the admin/doc line below to enable admin documentation: url(r'^admin/doc/',…
Neil
  • 1,715
  • 6
  • 30
  • 45
0
votes
1 answer

Avoiding creating media bundles for single files with django-mediagenerator

One small issue that I have been having with Django-Mediagenerator is that when using the include_media tag... {% load media %} {% include_media 'my_style.css' %} ... an error is thrown unless the my_style.css media bundle exists. However, in some…
NT3RP
  • 15,262
  • 9
  • 61
  • 97
0
votes
1 answer

How to specify media bundles per application in django-mediagenerator?

Django-mediagenerator has been pretty helpful so far, but thing that has been bothering me is that all MEDIA_BUNDLES are defined in settings.py. I would like to be able to define media bundles inside individual application folders. How can media…
NT3RP
  • 15,262
  • 9
  • 61
  • 97
0
votes
2 answers

Is it still possible to use django-mediagenerator on Google App Engine

I've been working on a existing project at a new company and one of the problems we're running into is Javascript code duplication. We're working in Google App Engine, and I have heard of the Django media generator asset manager which seems like it…
NT3RP
  • 15,262
  • 9
  • 61
  • 97
-1
votes
2 answers

Why we serve static and media files using webserver in production not with Django?

Every web developer and programmer said that if you are working on Django project never serve your static and media files using Django on the production environment, always use webserver like Apache or Nginx to serve these files. Actually I get so…