Questions tagged [django-pipeline]

An asset packaging library for Django

Django Pipeline is an asset packaging library for Django, providing both CSS and JavaScript concatenation and compression, built-in JavaScript template support, and optional data-URI image and font embedding.

110 questions
0
votes
2 answers

How to prevent name mangling of javascript functions in django-pipeline

I am using django version 1.82 with django-pipeline. I call a particular javascript function from html by name.
Sharmila
  • 1,637
  • 2
  • 23
  • 30
0
votes
1 answer

Webapp Roboto font anomaly only when live site is viewed from Windows

There's a webapp where we use Roboto font, it's loaded directly from Google: @import url(//fonts.googleapis.com/css?family=Roboto:400,100,300,500,700,300italic); The website looks OK when viewing from OSX. The live website doesn't load Roboto…
Csaba Toth
  • 10,021
  • 5
  • 75
  • 121
0
votes
1 answer

Custom login process with python-social-auth

I am using a very custom login process, with email/password forms there's no problem. I am using redis to store the session. I know that I can configure SESSION_ENGINE in my settings.py file and Django will do this even with python-social-auth…
Gocht
  • 9,924
  • 3
  • 42
  • 81
0
votes
1 answer

Uncaught ReferenceError: Parent is not defined

I'm using django-pipeline along with browserify based on the documentation here - http://gregblogs.com/how-django-reactjs-and-browserify/ I have it working perfectly fine when loading NPM/Bower packages like so - 'build_js': { …
whoisearth
  • 4,080
  • 13
  • 62
  • 130
0
votes
1 answer

Overriding Bootstrap in django-pipeline

I have a Django application with which I am using the django-pipeline package and bootstrap.css: PIPELINE_CSS = { 'myCSS': { 'source_filenames': ( 'css/bootstrap.css', 'css/bootstrapoverride.css', ), 'output_filename':…
Dennis
  • 401
  • 5
  • 17
0
votes
0 answers

Django Pipeline - Error during template rendering - invalid syntax

I am using Django 1.8.2 with django-pipeline 1.5.1 and Python 3.4 I followed the installation instructions provided by the authors of this tool. On my local machine with the provided development server, everything works fine. But when I try to…
n2o
  • 6,175
  • 3
  • 28
  • 46
0
votes
0 answers

Django Pipeline doesn't load static files - throws a CompilerError

On my local it works fine but on my production environment I can compile less files but when I want to load them like: {% load pipeline %} {% stylesheet 'styles' %} I get a an error: CompilerError at / /usr/bin/env: node: No such file or…
ip.
  • 3,306
  • 6
  • 32
  • 42
0
votes
0 answers

How to make django stop caching templates but not static files?

I am using django-pipeline to compress my static files, and using STATICFILES_STORAGE = 'pipeline.storage.PipelineCachedStorage' to keep my static files hashed. But the problem is that the template index.html that includes all the static files…
Mahammad Adil Azeem
  • 9,112
  • 13
  • 57
  • 84
0
votes
1 answer

How can I set a variable in my Django project settings based on modules in my apps?

I really like django-pipeline but I wish to set my assets inside each app. It's cleaner and don't mess with the settings.py. So In the __init__.py of a "core" app I have the code below. # __init__.py file from django.conf import settings from…
Arthur Alvim
  • 1,044
  • 12
  • 23
0
votes
1 answer

Django Pipeline node cannot find lessc

I'm configuring Django Pipeline, which I have done before on Linux without issues. On OSX I get the following issue when using Less: CompilerError: env: node: No such file or directory The message comes from the stderr of the command pipeline is…
Aiden Bell
  • 28,212
  • 4
  • 75
  • 119
0
votes
1 answer

How can I use django-pipeline for JSX with browserify?

I am setting up the asset pipeline for a new project. We already use React.js along with webpack in a gulp-based build system and would like to use React for the new project as well. Now, since the application is written in django, I would like to…
Nuschk
  • 518
  • 4
  • 14
0
votes
1 answer

Django-storages + django-pipeline + gzip

I would like to gzip my static assets to s3 with the Gzip and s3 mixins from django storages, and serve the gzipped files with the static/compressed template tag. Is this possible? I don't see information in the docs or online on serving…
bwarren2
  • 1,347
  • 1
  • 18
  • 36
0
votes
1 answer

Django-pipeline producing empty files

Right now, when running python manage.py collectstatic produces a minified file but it is completely empty. Here are my settings.py (I am on a windows environment): STATICFILES_STORAGE = 'pipeline.storage.PipelineStorage' PIPELINE_ENABLED =…
FinDev
  • 4,437
  • 6
  • 29
  • 29
0
votes
1 answer

django pipeline -- how to pass uglifyjs pure_funcs via command line?

I am trying to remove a list of functions using pure_funcs in uglifyjs 2.4.13. When my settings are as follows: PIPELINE_UGLIFYJS_ARGUMENTS = "-c pure_funcs=['App.LOG.info']" I get the following error: return ([App.LOG.info]) …
ilovett
  • 3,240
  • 33
  • 39
0
votes
2 answers

Django: installing software with pip, then editing the apps installed

So I recently installed the django-registration app located here: https://django-registration.readthedocs.org/en/latest/index.html . I installed it using pip and have since been playing around with it. It being the first Python/Django open source…
ApathyBear
  • 9,057
  • 14
  • 56
  • 90