From b06a741763e02532109a58757c113e379b8821e9 Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Sun, 2 Feb 2020 03:59:06 +0000 Subject: [PATCH] Add instructions for importing member photo and scrape date --- apiserver/docs/source/dev.rst | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/apiserver/docs/source/dev.rst b/apiserver/docs/source/dev.rst index 17b9e12..aa6b4a8 100644 --- a/apiserver/docs/source/dev.rst +++ b/apiserver/docs/source/dev.rst @@ -54,14 +54,19 @@ Django will now be running on port 8002, connect to localhost:8002 to test it. Import Old Portal Data ++++++++++++++++++++++ -Place `old_portal.sqlite3` in the same directory as `manage.py`. +Place ``old_portal.sqlite3`` in the same directory as ``manage.py``. + +Place old member photo folders in ``old_photos/``, for example: ``old_photos/1685/photo.jpg``. .. sourcecode:: bash (env) $ bash gen_old_models.sh - (env) $ time python import_old_portal.py + (env) $ time python import_old_portal.py YYYY-MM-DD -Give it about 15 minutes to run. This will import old models into the new portal database, ready to be linked to user's emails when they sign up. +Pass the date of the portal scrape in as an argument to the script. + +Give it about 15 minutes to run. This will import old models into the new portal +database, ready to be linked to user's emails when they sign up. Testing +++++++