mirror of
https://expo.survex.com/repositories/expoweb/.git/
synced 2025-12-09 23:28:32 +00:00
Correcting typos and updating import time
This commit is contained in:
@@ -49,7 +49,14 @@
|
||||
<h3>Important Tricks</h3>
|
||||
<p>There are five critical tricks that make everything much, much easier:
|
||||
<ol>
|
||||
<li>Use pip venv to set up a virtual python environment within which you can easily and quickly change the specific releases of python, django, django's dependencies and django plugins.<li>Use the <em>highest release number</em> when upgrading between minor-versions of django. <br />So we went from 1.8.19 to 1.9.13 to 1.10.8 to 1.11.29 . Next will be 2.0.13, then 2.1.15 and then 2.2.15 .
|
||||
<li>Use <a href="https://docs.python.org/3/library/venv.html">pip venv</a> to set up a virtual python environment within which you can easily and quickly change the specific releases of python, django, django's dependencies and django plugins.
|
||||
With a previously created venv <var>t37</var> start it up like this:<br />
|
||||
<var>cd t37<br />
|
||||
source bin/activate<br />
|
||||
python --version<br />
|
||||
cd troggle<br />
|
||||
python manage.py test -v 3</var>
|
||||
<li>Use the <em>highest release number</em> when upgrading between minor-versions of django. <br />So we went from 1.8.19 to 1.9.13 to 1.10.8 to 1.11.29 . Next will be 2.0.13, then 2.1.15 and then 2.2.15 .
|
||||
<li>Use the django 'check' maintenance system at the most verbose setting at each release<br />
|
||||
<var>troggle$ python manage.py check -v 3 --deploy</var><br>
|
||||
<var>troggle$ python -Wall manage.py check</var><br>
|
||||
@@ -76,7 +83,7 @@
|
||||
<li>testing:
|
||||
<ul>
|
||||
<li>run <var>troggle$ python manage.py test</var>
|
||||
<li>run the full data import <var>troggle$ python databaseReset reset R000</var>. It should take about 80 seconds to import everything.
|
||||
<li>run the full data import <var>troggle$ python databaseReset.py reset R000</var>. It should take about 80 seconds to import everything.
|
||||
<li>start the runserver in the other terminal window and open a web browser to http://localhost:8000 and check important pages which we don't have tests for (yet):
|
||||
<br>- <var><a href="http://localhost:8000/pathsreport">http://localhost:8000/pathsreport</a></var>
|
||||
<br>- <var><a href="http://localhost:8000/stats">http://localhost:8000/stats</a></var>
|
||||
@@ -99,7 +106,7 @@
|
||||
<li>run the script <var>./pre-run.sh</var> to clean up everything before the next round of tests.
|
||||
|
||||
</ol>
|
||||
<p>You can upgrade the version of python installed within pip but not downgrade. So get that first venv installed right.
|
||||
<p>You can upgrade the version of python installed within pip venv but not downgrade. So get that first venv installed right.
|
||||
|
||||
<p>Here is example of installed (Version) and most-recent-available (Latest) verisons of pip installations.
|
||||
<pre><code>$ pip list -o
|
||||
|
||||
Reference in New Issue
Block a user