#django

/

      • chachan has quit
      • fission6 has quit
      • icecandy has quit
      • estebistec has quit
      • hex` has quit
      • ls3 has quit
      • fmariluis joined the channel
      • mihasya joined the channel
      • seagreen joined the channel
      • zemanel has quit
      • Leeds joined the channel
      • fission6 joined the channel
      • riseriyo joined the channel
      • icecandy joined the channel
      • gazumps has quit
      • oracal has quit
      • joshfinnie joined the channel
      • jdunck joined the channel
      • newzen joined the channel
      • hwrd|work has quit
      • alperkanat joined the channel
      • zeograd has quit
      • joshfinnie has quit
      • Andy80 has quit
      • Siecje
        On my site I have a menu item that is a list of model objects, what is the recommended way to make that list available on all pages?
      • m8 has quit
      • Siecje has quit
      • Siecje joined the channel
      • jhardinee has quit
      • Eediot has quit
      • Eediot joined the channel
      • Eediot has quit
      • alperkanat has quit
      • rideh has quit
      • On my site I have a menu item that is a list of model objects, what is the recommended way to make that list available on all pages?
      • foundatron has quit
      • hwrd|work joined the channel
      • fmariluis has quit
      • crazydiamond has quit
      • dray3 joined the channel
      • fission6 has quit
      • gazumps joined the channel
      • ls3 joined the channel
      • rideh joined the channel
      • ToApolytoXaos has quit
      • foundatron joined the channel
      • jdunck has quit
      • fission6 joined the channel
      • foundatron has quit
      • cellofellow joined the channel
      • ermacaz joined the channel
      • Ariel_Calzada has quit
      • mihasya has quit
      • lduros has quit
      • icecandy has quit
      • anth0ny has quit
      • mihasya joined the channel
      • dray3 has quit
      • rolleiflex has quit
      • michaelmartinez has quit
      • jdunck joined the channel
      • Nemo7 joined the channel
      • F1skr has quit
      • wiresurfer joined the channel
      • riseriyo has quit
      • wiresurfer has left the channel
      • ls3 has quit
      • ermacaz has quit
      • jhgaylor joined the channel
      • hwrd|work has quit
      • luyikei__ joined the channel
      • wiresurfer joined the channel
      • hwrd|work joined the channel
      • InvidFlower joined the channel
      • hwrd|work has quit
      • raijin has quit
      • fission6 has quit
      • aberrant has quit
      • OldCoder_ joined the channel
      • neataroni has quit
      • rideh
        I'm trying to manage users from admin and I don't see what this documentation is referring to. https://docs.djangoproject.com/en/dev/topics/au... I was not asked to create user + password before having complete record, I was not able to change password, it gives me a plaintext field not a represntation of type of storage details
      • ticketbot
      • gazumps has quit
      • gazumps joined the channel
      • sec_ has quit
      • bytephilia joined the channel
      • jdunck has quit
      • sec_ joined the channel
      • hexsprite joined the channel
      • rolleiflex joined the channel
      • rolleiflex has quit
      • rogue_michael has quit
      • rogue_michael joined the channel
      • BlueDreams joined the channel
      • rolleiflex joined the channel
      • khimera joined the channel
      • dray3 joined the channel
      • mihasya has quit
      • dray3 has left the channel
      • jaddison joined the channel
      • tsurantino joined the channel
      • wiresurfer has quit
      • fission6 joined the channel
      • jankowiak joined the channel
      • fission6 has quit
      • jfw joined the channel
      • dmclain has quit
      • seagreen has quit
      • aarcane
        so I'm exploring templates. Template inheritance in particular. Is there some common name for the "Default site template that everything extends by default", and if so, where can I edit it?
      • or rather, where can I get it for later editing
      • santiissopasse has quit
      • rideh
        aarcane: its kinda up to you, most people will call it base or default
      • introom joined the channel
      • BlueDreams has quit
      • BlueDreams joined the channel
      • aarcane
        rideh, so what I'm worried about is individual app development. Should an individual app be able to pull in the site default template from it's own templates? or is there some other methodology here?
      • rideh
        aarcane: from my experience (limited) it needs to be stand alone, people can override or change them as necessary
      • you can't predict what others will do, so provide a good example of how it can be used, let them change as needed
      • stooj joined the channel
      • SpoutBE joined the channel
      • keep your logic in your models, mixins, etc. keep it out of views /templates to facilitate this
      • aarcane
        mixins?
      • jaddison
        aarcane: Typically when you install a 3rd party app, you'll either not include templates with it, or you'l include some very basic ones as a template tutorial for the app, with expectations that they'll be overridden by the user.
      • maspwr has quit
      • Ariel_Calzada joined the channel
      • rideh
        jaddison: thanks you said it much better
      • aarcane
        jaddison, that makes good sense.
      • maspwr joined the channel
      • rideh
        i keep wanting to go back to using pyjade, but it is so bad to debug
      • aarcane
        so I'm finishing with my basic application example, Polls. A thought keeps occuring to me, if I was developing this, by default, I would want the index page in a sidebar of some sort, not it's own page, and I would want it on like.. every page by default. How would I go about doing that?
      • rideh
        writing templates long hand sucks..
      • aarcane
        just a keyword for the documentation would be a good answer
      • rideh
      • introom has quit
      • averagecase has quit
      • aarcane
        rideh, I was already reading that page, and from there I could put a STATIC list of polls in a sidebar. What I want is to know how to do something like adding {% include 'polls:index' %} from a template to include a view from elsewhere, or otherwise get a dynamically generated list of polls on every page without having to add polls code to each view.
      • rideh
        aarcane: I'd make a base template that has {% block sidebar %} and {% block content %}
      • aarcane: where sidebar is the code for rendering your polls index, thus would be generated on every page
      • aberrant joined the channel
      • aarcane: within the {% block sidebar %} you can leave the polsl index code, but from any given template that inherits this can overwrite it with something different if need be
      • aarcane
        rideh, if you've done the tutorial recently you know that the polls tutorial uses generic views... I think I found a one-line reference explaining what I want, I think what I'm looking for is "Custom template tags"
      • rideh
        aarcane: sorry it's been quite a while since i'd gone through the tuts
      • Hipikat joined the channel
      • BlueDreams has quit
      • jaddison
        When creating a 3rd party app, it's sometimes good practice to create a templates/app_name/base.html that extends templates/base.html - that way, it makes it easier for users to pull in your distributed templates simply by overriding your templates/app_name/base.html. It really depends on your situation.
      • jankowiak has quit
      • hoot joined the channel
      • seagreen joined the channel
      • bytephilia has quit
      • hwrd|work joined the channel