These are chat archives for CharlesGust/django-imagr

24th
Nov 2014
Ben Friedland
@BFriedland
Nov 24 2014 01:57
I managed to get my copy of the fabfile running the Django-Imagr server from a single command (and one "yes" command added in halfway through).
I think that more or less fits the description of fully automated. There is however one last problem... The account activation emails send users to an address with localhost in it, which is incorrect and I'm not sure how to fix it yet.
Ben Friedland
@BFriedland
Nov 24 2014 02:04
Inside our project's "imagr_site/imagr_app/templates/registration/activation_email.txt" file, it tries to construct a URL at "http://{{site.domain}}{% url 'registration_activate' activation_key %}" but I'm not sure where it's getting site.domain from. I grepped "8888" in the project directory and found that it's probably set by the server's starting command, "sudo('gunicorn -b 127.0.0.1:8888 imagr_site.wsgi:application')", since it isn't in any of our Django settings files.
Further, in the email it says "You (or someone pretending to be you) have asked to register an account at ."
Which implies the 'site' object that's being handed to whatever is making these registration emails inside the registration plug-in is probably using empty, default values.
Ben Friedland
@BFriedland
Nov 24 2014 02:14
I got the 8888 from the URL it tried to link me to, http://127.0.0.1:8888/accounts/activate/c71bb6052c694c880efe61ff7bd11d294eca83a4/
We can bandaid-patch this by deleting {{site.domain}} in the activation_email.txt and .html files and replacing it with Charles's hosting name.
Probably. Or we could ask Dan if this is sufficient, heh.
Ben Friedland
@BFriedland
Nov 24 2014 02:34
If you log in as admin, you can see test_user_zero's photo at http://ec2-54-148-67-105.us-west-2.compute.amazonaws.com/imagr_app/photo/1/
Charles Gust
@CharlesGust
Nov 24 2014 04:20
Hi Ben, I did the login to your site and it looks great. http://imagr.charlesgust.me has propagated DNS now, but I don't think I have gunicorn running. I was more interested in the fabfile, but given the registration email problem you've run into, that may be a better use of my time. "30-foot-deep puddle" - very apt!
Ben Friedland
@BFriedland
Nov 24 2014 17:38
Dan said the registration email thing was something we could ask him about in the last two days or something (December), and we'd be good turning it in now, so I'll do that later tonight. Before then we should go over how I did the fabfile and maybe delete extraneous comments, should be ~30 minutes or something I guess.