Giter Site home page Giter Site logo

Comments (10)

jsoa avatar jsoa commented on May 31, 2024

Being a inner app of categories, its should be assumed that categories.editor cannot work properly without categories also installed.

from django-categories.

jsoa avatar jsoa commented on May 31, 2024

So after talking with @coordt, I realize that my previous comment is incorrect. If you subclass CategoryBase there is no need to add categories to INSTALLED_APPS. Sorry for misunderstanding the issue.

from django-categories.

winniehell avatar winniehell commented on May 31, 2024

Just to be sure: did you confirm the issue? :-)

from django-categories.

jsoa avatar jsoa commented on May 31, 2024

Yea, confirmed

from django-categories.

winniehell avatar winniehell commented on May 31, 2024

I would suggest to move the predefined category models into a sub-app called something like categories.basic and let the categories.editor functionality be part of the categories app, since it does not provide any standalone models. If you wish, I would make those changes and post another pull request.

from django-categories.

coordt avatar coordt commented on May 31, 2024

@winniehell The only concern I have is for backwards compatibility. I would like people to be able to just add 'categories' and 'categories.editor' and have their categories. Can we reverse your suggestion and put CategoryBase in a sub app?

from django-categories.

winniehell avatar winniehell commented on May 31, 2024

Sure! As long as the stuff is separated in doesn't matter which way. It just made more sense to me having the categories app, which offers all the basic functionality and then the sub-app which does some additional stuff.

from django-categories.

ikresoft avatar ikresoft commented on May 31, 2024

And one problem, if I have my own category model then 'categories' should be removed from settings.INSTALLED_APPS, when I remove it I don't have any more category_tags? I think it should be separated.

from django-categories.

coordt avatar coordt commented on May 31, 2024

Good point. I would make your own template tag file and simply import everything from categories.templatetags.category_tags.

Would that work?

On Jul 26, 2013, at 9:23 AM, Enver [email protected] wrote:

And one problem, if I have my own category model then 'categories' should be removed from settings.INSTALLED_APPS, when I remove it I don't have any more category_tags?


Reply to this email directly or view it on GitHub.

from django-categories.

ikresoft avatar ikresoft commented on May 31, 2024

Nice tip :)

from django-categories.

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.