#django

/

      • aweeks has quit
      • anishshah_ has quit
      • collinanderson has quit
      • Nopik has quit
      • marcoamorales has quit
      • Eleeleth joined the channel
      • flenter joined the channel
      • jezdez joined the channel
      • Frosh has quit
      • juliaelman has quit
      • benrict has quit
      • slixpk has quit
      • aweeks joined the channel
      • maZtah joined the channel
      • Nopik joined the channel
      • benrict joined the channel
      • kit joined the channel
      • patrikstenmark joined the channel
      • schinckel_ joined the channel
      • anishshah_ joined the channel
      • juliaelman joined the channel
      • Tr0p1caL joined the channel
      • slixpk joined the channel
      • patrickod joined the channel
      • Frosh joined the channel
      • snkcld joined the channel
      • eka has quit
      • collinanderson joined the channel
      • mribeirodantas joined the channel
      • VinceZa
        Hello, Can anyone recommend a workflow engine for Django.. I am using 2.7.x.. I am looking for basic WF management.. states are draft, pending, inprogress, completed, etc.. Thanks!
      • eka joined the channel
      • polishdub joined the channel
      • kunalg joined the channel
      • LysergicDreams joined the channel
      • bullicon joined the channel
      • bananaa has quit
      • veloutin joined the channel
      • veloutin has left the channel
      • kalz joined the channel
      • Tr0p1caL has quit
      • msheiny joined the channel
      • Natsu-
        VinceZa, I know https://django-xworkflows.readthedocs.org , but the doc is laconic...
      • Tr0p1caL joined the channel
      • StephenTuring
        I'm getting a 404 error when Django redirects me to login.
      • Because it redirects me to accounts/login
      • I'm using django's default auth system.
      • However my login url is simply /login.
      • How do I change that setting?
      • VinceZa
        hey StephenTuring.. just learning python so take this with a grain of salt, but check your LOGIN_URL setting in settings.py.. for example LOGIN_URL = '/login/'
      • hey StephenTuring.. just learning django so take this with a grain of salt, but check your LOGIN_URL setting in settings.py.. for example LOGIN_URL = '/login/'
      • saschpe is now known as zz_saschpe
      • StephenTuring
        VinceZa, sorry didn't do the trick.
      • VinceZa
        what about your url pattern? url(r'^login/', 'main.views.auth_login', name='login'),
      • StephenTuring
        url('', include('django.contrib.auth.urls', namespace='auth'))
      • VinceZa
        "main" is where I have all my application specific logic..
      • MarkusH
      • VinceZa has quit
      • rogeliodh has quit
      • StephenTuring
        Interesting, why does django have a login url configured regardless of the urls.py?
      • enkrypt has quit
      • doismellburning
        StephenTuring: how else would it do that?
      • StephenTuring
        Via a module.
      • doismellburning
        and more concretely?
      • StephenTuring
        in the projects url's file.
      • doismellburning
        and more concretely?
      • munichlinux has quit
      • rogeliodh joined the channel
      • "with code"
      • LOGIN_URL = reverse_lazy("login")
      • kyheo joined the channel
      • jimcky
        hi... I am trying to deploy my django app onto google app engine, and I found something called "django-deployer" but I cannot get it to work with my project... what is the proper way to deploy a django app on GAE?
      • doismellburning
        jimcky: with pain and suffering
      • jimcky: (I'm semi serious; I'd massively recommend against GAE unless you have very very compelling reasons)
      • GoClick has quit
      • benoitbb has quit
      • jimcky
        doismellburning: haha... actually I have an always on laptop that I used to deploy a php project
      • not sure if I can host 2 apps on Apache though
      • doismellburning
        jimcky: that's nice
      • (you can, but ew)
      • benoitbb joined the channel
      • pmachine has left the channel
      • jimcky: Heroku free tier, whatever that opencloudstackfoundry thing was, heck even a cheap DO box
      • I'd recommend all of those over GAE
      • munichlinux joined the channel
      • jimcky
        I don't really know how to deploy wsgi apps, I couldn't get it setup with web.py, and I am a bit afraid I would mess up the php app I am already hosting.. you know, to host php apps you just put it under the right directory and it's done XD
      • Heroku, I think I've heard about it
      • seems really easy to setup...?
      • doismellburning
        jimcky: yep
      • jimcky: and the free tier will go a long way
      • jimcky
        I am a bit embarrassed, it's just a simple diary app I wrote for my girlfriend, so I think it would be fine XD
      • doismellburning
        jimcky: sounds more than adequately covered by the free tier
      • jimcky
        let me try to deploy there... it advertise something like... using git to deploy?
      • doismellburning
        nod
      • (for a very loose value of deploy)
      • MLM joined the channel
      • Leeds has quit
      • jimcky
        doismellburning: I see, let's hope it support relational database, the NoSQL stuff of GAE is a bit complicated to me :P
      • enkrypt joined the channel
      • doismellburning
        jimcky: it does
      • StephenTuring
        Does anyone find that after about an hour the django's test server just kind of packs up?
      • doismellburning
        StephenTuring: not ime; i've had testservers run for days
      • StephenTuring
        Maybe the virtual environment's to blame.
      • jimcky
        doismellburning: no wonder so many demo site of github projects are deployed on this platform, I used to think it was a PaaS service from Github :P
      • maryokhin joined the channel
      • doismellburning
        jimcky: I'm a massive Heroku fan, and I'd like to think it's not without good reason
      • kate_r joined the channel
      • Natsu- has quit
      • mihow joined the channel
      • MarkusH
        as long as you have a reasonably up-to-date mac osx you are fine (if you use osx)
      • jimcky
        doismellburning: 5 minutes in, I started to love it. Not that I have deployed the demo app, but at least the instructions are very clear.
      • MarkusH
      • johnkevinmbasco has quit
      • jimcky
        GAE's instructions are complete messes, they just throw you the SDK and expect you to know what to do
      • kunalg has quit
      • MarkusH: ohh, thanks, I will try it again after I am done with Heroku :D
      • MarkusH
        jimcky: that is heroku
      • the_drow
        Why doesn't the locale middleware set the language in the session?
      • MarkusH
        err, a heroku explanation
      • kunalg joined the channel
      • jimcky
        MarkusH: ahh, I see... btw, "djangogirls", I've heard about 'rail girls', and now there is django girls :P
      • ranu joined the channel
      • MarkusH
        jimcky: since EuroPython 2014. And it expanded like crazy
      • backthatzachup joined the channel
      • jimcky
        MarkusH: really cool, I hope my city has something like this, programming isn't really a thing in Hong Kong :(
      • MarkusH
        jimcky: start something! ;)
      • SoftwareMaven joined the channel
      • jimcky
        MarkusH: I think I should try to be a guru on any of the tools I used first :P, I don't really understand how super() works in Python, so I was too afraid to override the save() method in my models, but it's really tempting - to have something done and filled in as soon as an object is created
      • maryokhin has quit
      • abara joined the channel
      • SoftwareMaven has quit
      • doismellburning
        jimcky: oh yeah they have a demo app, forgot about that now
      • jimcky: (my first use of Heroku predated that)
      • jimcky
        doismellburning: early adopter :D, so you have tried to deploy on GAE? It is still the 'standard way' to deploy personal projects here in Hong Kong, or so they say in local media
      • doismellburning
        jimcky: I've used GAE before; I generally regretted it
      • backthatzachup has quit
      • jimcky: I occasionally look at it to make sure it's not drastically changed and I'm missing something
      • erik`
        free GAE also only supports the proprietary database, right? which means vendor lockin
      • doismellburning
        erik`: yep
      • another thing I <3 about Heroku is there's so very little lockin
      • jimcky
        doismellburning: I am so glad you stopped me from trying harder on that
      • doismellburning
        I also use Heroku as a staging environment for apps I deploy to other places
      • desophos joined the channel
      • because nearly no changes are required
      • atula joined the channel
      • ("does your app deploy cleanly/easily to Heroku" is a _beautiful_ metric)
      • (because if it doesn't, it's probably doing some tedious things)
      • right, partyzeit
      • toodles, g'luck
      • Kromey joined the channel