Giter VIP home page Giter VIP logo

Comments (5)

EmilStenstrom avatar EmilStenstrom commented on May 26, 2024

@PhakkyoC Could you show the error-message you get? Did you install via pip?

from django-components.

PhakkyoC avatar PhakkyoC commented on May 26, 2024

@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.

EmilStenstrom avatar EmilStenstrom commented on May 26, 2024

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.

PhakkyoC avatar PhakkyoC commented on May 26, 2024

I'll try to show you what i did to get errors

install

So i don't have any errors when installing but when i try to add builtins like the exemple :

buildin

and when i use manage.py runserver

buildinErr

So, i tried to remove builtins and use "{% load django_components %}" in my templates, the server run but i still can't use components

template err

from django-components.

EmilStenstrom avatar EmilStenstrom commented on May 26, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.