django-tables change header with variable

2017-05-11 Thread Sixtine Vernhes
Using django-tables2 I try to have 2 dimensions table. I tried to make this using accessors with the docs here But it doesn't work at all. I don't seen any example and I don't know if it's possible. Has anyone has an

Re: Link to download

2017-05-03 Thread Sixtine Vernhes
s it may allow attackers to > request arbitrary files. > What you should do instead is this: > 1) Put Data/01/export.txt to the static/ folder inside your app (with the > same folder structure if you need it that way) > 2) Build the path to your file with /static/ as prefix, i.e.

Re: Link to download

2017-05-02 Thread Sixtine Vernhes
appens when you try the url? > > Regards, > > A. > > Antonis Christofideshttp://djangodeployment.com > > On 2017-05-02 11:28, Sixtine Vernhes wrote: > > Hi ! > > I try to create a link on Django who download a static csv file, but I > have no idea h

Link to download

2017-05-02 Thread Sixtine Vernhes
Hi ! I try to create a link on Django who download a static csv file, but I have no idea how to do. In my settings.py : STATIC_URL = '/static/' STATICFILES_DIRS = ( os.path.join(BASE_DIR, "static/"), ) and my file is in this directory Would anyone have an idea ? -- You received