Comments (3)
We use weasyprint
for the pdf generation, so I suggest you check their documentation regarding exactly what's supported and what's not.
Personally, I'd recommend using more tables and "old school" HTML. Especially since you don't usually need responsiveness for PDFs.
from django-afip.
Ok. I've tried using, for testing purposes, their invoice example and still It looks that CSS is being loaded. It seems that is searching for django_afip static instead of mine and I've followed what it says here: https://django-afip.readthedocs.io/en/latest/printables.html#templates "simply place a template with the same path/name inside your own app, and make sure it’s listed before django_afip in INSTALLED_APPS."
...
'apps.billing',
'django_afip'
...
Also, the templates path is correct (I think):
ebiller/templates/receipts/
Or should be inside the app itself? (because I've placed inside the project templates path instead of app template path, since I store all templates in only one place, the main project one).
EDIT1: also tried putting the template inside app path, and the same thing happens.
EDIT2: Never mind... was a bad typo in the css path... :/
from django-afip.
Looks like you've solved this, however, keep in mind that:
Django sees all template locations as one big thing. It doesn't discriminate on location from another, so putting a template in the templates
directory of any of the INSTALLED_APPS
will make them get picked up.
The same applies to static files (actually, when deploying, static files are all copied into one same place, and read from there).
from django-afip.
Related Issues (20)
- Add helper to finalise interrupted validations
- Points of sales are incorrectly saved as blocked HOT 2
- Docs for `latest` should have a banner to indicate this is an unreleased version
- Change value used to check if fetched points of sales are blocked
- AuthTicket service field (DataError: value too long for type character varying(6) ) HOT 1
- Qn: What about adding new services to the project. HOT 5
- Test certificate used in CI has expired
- Fontconfig error: Cannot load default config file HOT 7
- CAEA support HOT 3
- Tox test error HOT 5
- Tests PointOfSales.issuance_type wrong value HOT 4
- Authorization over POS in tests HOT 3
- Tutorial de renovación de certificados HOT 3
- Error en el formulario de TaxPayer en referencia a certificate HOT 6
- Validations with cae expiration `31 de diciembre de 1969 a las 21:00` HOT 1
- Factura E
- Se pueden generar: Factura de Crédito electrónica MiPyMEs (FCE) A? HOT 9
- Se subio el changelog 11.2.0? HOT 3
- Crash with urllib3 >= 2.0.0
- Error al momento de registrar una Nota de Crédito electrónica MiPyMEs (FCE) A HOT 20
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-afip.