<div dir="ltr"><div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>By default, django stores relative paths in the database. I'm curious as to why we're using absolute paths?</div><div><br></div><div>If there's not a reason we need to use absolute paths, thenĀ +1 to option 2.</div><div><br></div><div>David<br></div></div></div></div></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Feb 27, 2019 at 1:06 PM Pavel Picka <<a href="mailto:ppicka@redhat.com">ppicka@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hello</div><div><br></div><div>as working on #4380 I get to state I can change the path from '/var/lib/pulp' to whatever I need but getting hard time to receive old files (when got new location/mount) as artifacts has saved absolute path in the DB. <br></div><div>My suggestions are:</div><div>1) easy way - user can do change only once before first run/use of pulp</div><div>2) my favorite - redo models to save only relative path and add base directory later at runtime from settings<br></div><div>3) hard way - offline db migration (when pulp is not running) to change path of artifacts in DB<br></div><div><br></div><div>I would like to ask about your suggestions, opinions and ideas on this how to move this forward. <br></div><div><br>-- <br><div dir="ltr" class="gmail-m_1234671716422105376gmail_signature"><div dir="ltr"><div>Pavel Picka<br></div>Red Hat<br></div></div></div></div>
_______________________________________________<br>
Pulp-dev mailing list<br>
<a href="mailto:Pulp-dev@redhat.com" target="_blank">Pulp-dev@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/pulp-dev" rel="noreferrer" target="_blank">https://www.redhat.com/mailman/listinfo/pulp-dev</a><br>
</blockquote></div>