Comments (5)
@PhakkyoC Could you show the error-message you get? Did you install via pip?
from django-components.
@EmilStenstrom Yes i use pip to instlall it with "pip install django_reusable_components" but i don't have any error while installing.
I noticed the file component_tags.py is missing. So i tried to uninstall/install many times but it's still missing.
The errors i encoutered was because i don't have the file component_tags.py while starting my server or trying to load my templates
from django-components.
Thanks for reporting, I'll look into it.
setup.py is set to include the whole django_components directory when installing, including all subdirectories, so this is strange.
Would you mind posting your exact error, so I can quickly reproduce it?
from django-components.
I'll try to show you what i did to get errors
So i don't have any errors when installing but when i try to add builtins like the exemple :
and when i use manage.py runserver
So, i tried to remove builtins and use "{% load django_components %}" in my templates, the server run but i still can't use components
from django-components.
This was indeed a packaging issue. Seems just specifying "django_components" does not include subdirectories, which means I ended up with a package without the templatetags directory, just like you said.
I've now fixed this (using setuptools.find_packages instead of specifying the package name) and released version 0.3 to pypi. Would you mind checking it out and let me know if you find any issues? (I've tried it myself, triggered the issue with <0.3 and not with 0.3).
Thanks for reporting!
from django-components.
Related Issues (20)
- Feature proposal: HTML, JS and CSS file autodiscovery HOT 6
- If settings.BASE_DIR is a string, django-components errors when loading the templates HOT 5
- Adding HTML, JS, and CSS typing hints HOT 2
- Add support for MyPy HOT 2
- Move documentation to GitHub Pages HOT 3
- v0.60.0 broken due to missing django_components.utils module HOT 2
- Use built release for CI tests HOT 3
- Automatic CHANGELOG or release generation (via semantic release?) HOT 1
- Issue migrating to 0.5+ HOT 8
- Error with django-compressor: `ValueError: dictionary update sequence element #0 has length 5; 2 is required` HOT 4
- Python versions support policy (drop 3.6/3.7?) HOT 4
- Bug: `"context_behavior": "isolated"` does not have the same effect as `only` keyword HOT 1
- Hot reload doesn't work with specific project setup (django 5 + single file components) HOT 8
- Logo for the project HOT 3
- Fix misleading example component docs HOT 2
- Clarification on "hot reload" - templates or python files? HOT 1
- python file names colide with global scope variables/modules HOT 6
- Release Version 1.0 HOT 3
- Tests: Component registry is not isolated across tests HOT 2
- v0.67 broken for "context_behavior": "isolated" HOT 1
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-components.