Skip to content

Commit

Permalink
Fix Using matplotlib on a headless server
Browse files Browse the repository at this point in the history
Close #394
  • Loading branch information
rgaiacs committed Nov 3, 2017
1 parent 79cc380 commit 4074813
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions lowfat/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
from django.urls import reverse
from django.shortcuts import render

import matplotlib
matplotlib.use('AGG')
from matplotlib.pyplot import bar, hist, savefig

from .management.commands import loadoldfunds as loadoldfunds
Expand Down
2 changes: 1 addition & 1 deletion pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ confidence=
# --enable=similarities". If you want to run only the classes checker, but have
# no Warning level messages displayed, use"--disable=all --enable=classes
# --disable=W"
disable=I0011,E1608,W1627,E1601,E1603,E1602,E1605,E1604,E1607,E1606,W1621,W1620,W1623,W1622,W1625,W1624,W1609,W1608,W1607,W1606,W1605,W1604,W1603,W1602,W1601,W1639,I0021,W1638,I0020,W1618,W1619,W1630,W1626,W1637,W1634,W1635,W1610,W1611,W1612,W1613,W1614,W1615,W1616,W1617,W1632,W1633,W0704,W1628,W1629,W1636,R0801,C0301,C0302,C0112,C0111,E1609,W0401,W0614,R0903,R0902
disable=I0011,E1608,W1627,E1601,E1603,E1602,E1605,E1604,E1607,E1606,W1621,W1620,W1623,W1622,W1625,W1624,W1609,W1608,W1607,W1606,W1605,W1604,W1603,W1602,W1601,W1639,I0021,W1638,I0020,W1618,W1619,W1630,W1626,W1637,W1634,W1635,W1610,W1611,W1612,W1613,W1614,W1615,W1616,W1617,W1632,W1633,W0704,W1628,W1629,W1636,R0801,C0301,C0302,C0112,C0111,E1609,W0401,W0614,R0903,R0902,wrong-import-position


[REPORTS]
Expand Down

0 comments on commit 4074813

Please sign in to comment.