<div dir="ltr">Tim,<div><br></div><div>Have you reached out to the charm author with these questions as well? That would be where I would start. They are great questions that deserve an answer, as I'm sure you're not the only user that will have them. This is an area that the python-django charm (in series trusty - to be clear and specific) would benefit from some work on the documentation.</div>

<div><br></div><div>All the best,</div><div><br></div><div>Charles</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Jun 8, 2014 at 11:32 PM, Tim Penhey <span dir="ltr"><<a href="mailto:tim.penhey@canonical.com" target="_blank">tim.penhey@canonical.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
<br>
I'm looking at using the subordinate charm method for delivering the app<br>
payload to the python-django charm.<br>
<br>
>From the pyton-django readme:<br>
<br>
> When you add a relation between your charm and the python-django<br>
> charm, you will be able to get those relation variables from the<br>
> hook:<br>
><br>
>   settings_dir_path<br>
>   urls_dir_path<br>
>   django_admin_cmd<br>
>   install_root<br>
><br>
> Now your charm will be informed about where it needs to add new<br>
> settings and urls files and how to run additionnal Django commands.<br>
> The Django charm reloads Gunicorn after the relation to catch the<br>
> changes.<br>
<br>
Unfortunately the doc doesn't explain what I need to put where.<br>
<br>
Lets say I have my django application in revision control, but it isn't<br>
public (because it will be SAAS :-).  It follows pretty standard django<br>
format, and testing wise I just use: ./manage.py runserver<br>
<br>
I have a settings file, and urls, and dependencies that I use a virtual<br>
environment and a pip requirements.txt file for.<br>
<br>
I'm thinking that I should have the install and upgrade hook use pip to<br>
install the requirements.  It seems that the current python-django charm<br>
isn't yet set up to handle virtual environments, is that right?<br>
<br>
How then do I hook up the database for example?  I have settings in my<br>
current settings.py, but this will clearly be superseded by the<br>
relationship between python-django and postgresql.<br>
<br>
Are there examples I could look at for existing charms that do this type<br>
of thing?<br>
<br>
Any help greatly appreciated.<br>
<br>
Cheers,<br>
Tim<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
--<br>
Juju-dev mailing list<br>
<a href="mailto:Juju-dev@lists.ubuntu.com">Juju-dev@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/juju-dev" target="_blank">https://lists.ubuntu.com/mailman/listinfo/juju-dev</a><br>
</font></span></blockquote></div><br></div>