#django

/

      • cnk
        it may sound odd to recommend a ruby tool for django, but checkout capistrano. It is nicely constructed and generally points you in the right direction
      • hamub has quit
      • In addition to code changes, your deploy process may need to manage migrations and site packages changes (virtualenv + pip)
      • paritoshanand
        one way I can see is to dockerize the application. ship the images to production nodes and update the containers or services (swarm mode)
      • hamub joined the channel
      • melhiors joined the channel
      • doubitchou joined the channel
      • nulltek has quit
      • sotojuan joined the channel
      • sol1x joined the channel
      • bwreilly joined the channel
      • daveb joined the channel
      • cmheisel joined the channel
      • daveb
        Is there a pattern for distinguishing different group "types". I my case I need to know if a group is a School or a Municipality. I don't think I need additional attributes for those. I could subclass Group and add a "type" attribute. I could create a proxy model for School and one for Municipality. Any other, or a good technique for that?
      • doubitchou has quit
      • veduardo joined the channel
      • I might need to grant permissions based on the group type.
      • felixx joined the channel
      • adsworth_ has quit
      • nulltek joined the channel
      • xBlackyII has left the channel
      • cmheisel has quit
      • madboxs joined the channel
      • cicdc joined the channel
      • z0ran joined the channel
      • roger_rabbit joined the channel
      • not_a_web_devbot has quit
      • ironfroggy joined the channel
      • cicdc
        In a model
      • The meta, call, ordering variable, how do I make that order by null last?
      • tulioz joined the channel
      • not_a_web_devbot joined the channel
      • FinalAngel joined the channel
      • x-warrior joined the channel
      • woltman4 joined the channel
      • jovif has quit
      • adsworth_ joined the channel
      • woltmanIV has quit
      • jas02 joined the channel
      • Debnet`Work joined the channel
      • lauhau joined the channel
      • Debnet has quit
      • jas02 has quit
      • Xiti joined the channel
      • nethop has quit
      • nethop joined the channel
      • adsworth_ has quit
      • Azelphur
        Hi folks, I have a AbstractUser in my app, I've set USERNAME_FIELD = 'email', which works great. Is there any way to make username optional (ie null=True blank=True)?
      • fission6 joined the channel
      • fission6
        i'd have to believe the answer is yes but does django merge multiple select related chains on a model
      • Lenz has quit
      • adsworth joined the channel
      • cicdc
        In SQLAlchemy in the __mapper_args__, I would use `"order_by": nullslast(desc(start_date))` how would I do this in a django model?
      • READ10 has quit
      • dgarana has quit
      • XHFHX
        If I have a model (MasterModel) which "unifies" models from apps (AppModel1,..), how can I keep a relationship between the different AppModels and my MasterModel? Right now I have an OneToOneField in all my AppModels, but i don't if this is the right way to do, because in this case the MasterModel has 1-to-1 relationships to different models
      • Debnet`Work has quit
      • hamub has quit
      • hamub joined the channel
      • tau joined the channel
      • paritoshanand has quit
      • cmheisel joined the channel
      • orf_ joined the channel
      • hamub1 joined the channel
      • hamub has quit
      • hamub1 is now known as hamub
      • jeffspeff joined the channel
      • cocteau joined the channel
      • jeffspeff
        i had read somewhere that the admin interface isn't meant for production use. can anyone confirm that?
      • perplexa has quit
      • perplexa joined the channel
      • jas02 joined the channel
      • manfre
        jeffspeff: admin is suitable for production. Django docs imply that as well with the “see also” note. https://docs.djangoproject.com/en/1.10/ref/cont... Extra steps should be taken to make sure it is secured properly.
      • jeffspeff
        thanks manfre
      • tourdownunder joined the channel
      • jas02 joined the channel
      • x-warrior has quit
      • Ryanar has quit
      • not_a_web_devbot has quit
      • jdo_dk joined the channel
      • jdo_dk
        I have a running webpage and now i want to add django-axes to my project. I ran python manage.py migrate axes in dev and everything is working. But i get this error, when trying on prod. How do i "reset" migrations. Everything is working as expected now (before trying to migrate axes)
      • goldfish_ has quit
      • cmheisel has quit
      • tau has quit
      • fission6
        can i not use a context process if request is passed to the template?
      • ctjctj joined the channel
      • jdo_dk
        fission6: What are you trying to do ?
      • babyswizz has quit
      • ctjctj
        I'm having trouble referencing across a manytomany field. http://pastebin.com/eZsX8DBf is the code with comments.
      • tau joined the channel
      • If somebody can give a look see and tell me how to correct the reverse(?) reference?
      • fission6
        jdo_dk: i want to access the current site in a template
      • woltman4 has quit
      • cmheisel joined the channel
      • tsukasa__ joined the channel
      • sol1x has quit
      • not_a_web_devbot joined the channel
      • tsukasa_ has quit
      • not_a_web_devbot has quit
      • tau has left the channel
      • hamub has quit
      • Tomatosoup- joined the channel
      • rokups has quit
      • z0ran has quit
      • alkpote joined the channel
      • tourdownunder has quit
      • cmheisel has quit
      • jessamynsmith
        fission6: you can have lots of context processors...
      • fission6
        yea i already have a context processor for this, BUT the template renders in an email in an async job so context processor is out of the realm of possibilities
      • m8 joined the channel
      • tourdownunder joined the channel
      • tourdownunder has quit
      • cmheisel joined the channel
      • woltman4 joined the channel
      • maryokhin has quit
      • whaack joined the channel
      • cmheisel has quit
      • splendor joined the channel
      • whaack has quit
      • tau joined the channel
      • whaack joined the channel
      • graingert
        jeffspeff: don't customise it and hand it to your customers
      • Only give access to your trusted employees
      • jeffspeff
        ok
      • graingert
        Also you can make a way better site if you're concentrating on your own business values, rather than flexibility and DX
      • It's better than PHPMyAdmin tho
      • jeffspeff: remember to configure CSP
      • lacrymology has quit
      • jeffspeff
        ok. thanks
      • i'm just getting my feet wet and learning things.
      • whaack has quit
      • cmheisel joined the channel
      • there's soooo much information out there learning it all at once for a custom project is a little daunting.
      • g0nzal0 has quit
      • raijin has quit
      • vmonteco joined the channel
      • vmonteco
        Hello!
      • meoblast001 joined the channel
      • FinalAngel has quit
      • dang`r`us
        hi!
      • cmheisel has quit
      • dheerajchand joined the channel
      • vmonteco
        I was wondering : is there any existing package to make a gitlab-like app for my website?
      • nedbat
        vmonteco: isn't gitlab that app?
      • telex has quit
      • dheerajchand
        Hey folks, I’m looking for a really thorough explanation, with examples, of the Django Admin, how to configure it, etc. I have a `project` in which one `app` makes reference to models from `another`, for example, and I’m trying to evaluate the best choices on how to configure them for admin without breaking the whole thing to pieces.
      • telex joined the channel
      • cmheisel joined the channel
      • jdo_dk
        How do i fix this error: "Make sure all numbered South migrations are deleted prior to creating Django migrations"