Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Depreciated usage. please use dest_file_name #8

Closed
furins opened this issue Sep 21, 2015 · 1 comment
Closed

Depreciated usage. please use dest_file_name #8

furins opened this issue Sep 21, 2015 · 1 comment

Comments

@furins
Copy link

furins commented Sep 21, 2015

I've an issue (I receive "Depreciated usage. please use dest_file_name" warning) that seems related to some comments in https://github.com/chfw/django-excel/issues/1. It should not be generated by code:

import django_excel as excel
import pyexcel.ext.xls
from .models import MyModel

qs = MyModel.objects.all()
column_names = ['field1', 'field2']
sheet = excel.pe.get_sheet(query_sets=qs, column_names=column_names)
sheet.row[0] = ["field1", "field2"]
sheet.name = 'test'
response = excel.make_response(sheet, 'xls', 200)
response['Content-Disposition'] = 'attachment;      
filename="export_test_{:%d_%m_%Y}.xls"'.format(datetime.datetime.now())

and this is my pip freeze (the relevant parts of it, more precisely):

Django==1.8.4
django-excel==0.0.2
future==0.15.2
openpyxl==2.2.6
pyexcel==0.1.7
pyexcel-io==0.0.6
pyexcel-webio==0.0.3
pyexcel-xls==0.0.7
pyexcel-xlsx==0.0.6
pytz==2015.4
six==1.9.0
Unidecode==0.4.18
virtualenv==13.0.3
xlrd==0.9.4
xlwt==1.0.0
xlwt-future==0.8.0

not a big deal but I'd like to solve it before it becomes an error :)

@chfw
Copy link
Member

chfw commented Sep 23, 2015

try this newer pyexcel:

pip install git+https://github.com/chfw/pyexcel.git

It should tell which one is actually deprecated.

@chfw chfw closed this as completed Mar 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants