*** mjsir911 has joined #novawebdev | 09:19 | |
*** replaceafill has joined #novawebdev | 11:25 | |
*** mr_german has joined #novawebdev | 11:47 | |
*** mjsir911 has joined #novawebdev | 12:38 | |
*** mjsir911 has joined #novawebdev | 14:05 | |
*** mjsir911 has joined #novawebdev | 14:50 | |
*** mjsir911 has joined #novawebdev | 15:06 | |
replaceafill | ACTION goes to get lunch, bb in ~40 | 15:20 |
---|---|---|
mr_german | replaceafill, one question, all templates and media should be in the app or in themes | 16:00 |
replaceafill | mr_german, what templates? | 16:15 |
mr_german | base.html, homepage.html etc | 16:19 |
mr_german | should be all in the app | 16:19 |
mr_german | ? | 16:19 |
replaceafill | mr_german, i don't understand what you mean | 16:24 |
replaceafill | mr_german, what app? | 16:24 |
mr_german | libre organize app | 16:24 |
mr_german | for tendenci | 16:24 |
replaceafill | mr_german, it depends on how you plan to extend it for different customers | 16:25 |
replaceafill | mr_german, say you want a ORA version, how do you do that? | 16:26 |
replaceafill | mr_german, or a NOVALACIRO version | 16:26 |
replaceafill | mr_german, and so on | 16:26 |
replaceafill | mr_german, tendenci currently handles that with custom context processors | 16:26 |
replaceafill | mr_german, which look for the themes/<THEME_NAME>/... | 16:27 |
replaceafill | mr_german, that's a possibility | 16:27 |
replaceafill | mr_german, if you're starting from scratch, doing something new, you're free to decide | 16:27 |
mr_german | replaceafill, mmm, i was doing a app in tendendi project and then a new theme in 'themes' for that | 16:27 |
replaceafill | mr_german, problem with that approach is that you need two repos, right? | 16:28 |
replaceafill | mr_german, and your themes won't be able to change behaviour of the app | 16:28 |
replaceafill | mr_german, you know django has a predefined look up order for templates, right? | 16:29 |
mr_german | replaceafill, yes | 16:29 |
replaceafill | mr_german, that's the other approach you can use | 16:30 |
replaceafill | mr_german, include the apps in the right order | 16:30 |
replaceafill | mr_german, kind of what we do with helios | 16:30 |
mr_german | replaceafill, i can "export" apps like memberships | 16:31 |
mr_german | right? | 16:31 |
mr_german | import* | 16:31 |
mr_german | like jinja tags, etc | 16:31 |
replaceafill | mr_german, i don't understand what you mean | 16:31 |
mr_german | like these ones "{% load i18n %} {% load base_filters %}" | 16:32 |
replaceafill | mr_german, that's call loading | 16:32 |
replaceafill | mr_german, and that works for tags, not apps | 16:32 |
mr_german | yeah buy i can use them | 16:32 |
mr_german | in my app | 16:32 |
mr_german | right? | 16:32 |
replaceafill | mr_german, if the project has them in INSTALLED_APPS you can | 16:32 |
mr_german | even if they are out "themes" folder | 16:32 |
mr_german | ohh | 16:32 |
mr_german | cool | 16:32 |
replaceafill | mr_german, the right term for that is not app, it's library btw | 16:34 |
replaceafill | https://docs.djangoproject.com/en/1.11/ref/templates/builtins/#std:templatetag-load | 16:34 |
mr_german | replaceafill, good to know | 16:35 |
mr_german | that | 16:35 |
*** zOnny has joined #novawebdev | 19:10 |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!