From 866ec8031ee660f004443676fd686adfdff47394 Mon Sep 17 00:00:00 2001 From: Yasin Date: Fri, 15 Nov 2013 10:39:15 +0100 Subject: [PATCH] README: missing commands added. MyAccount:outlined how to preserver usr_hrn while genkey and upload key --- README | 3 ++- portal/accountview.py | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/README b/README index 3a894cc0..3c0f943a 100644 --- a/README +++ b/README @@ -16,6 +16,7 @@ See the devel/ subdir for more devel-oriented doc. * edit myslice/config.py and enter the details of your manifold backend +$ apt-get install python-django-south * init django $ ./manage.py syncdb $ ./manage.py migrate @@ -43,7 +44,7 @@ $ make redo == make redo-static redo-templates * run a local server: -$ manage.py runserver 0.0.0.0:8000 +$ ./manage.py runserver 0.0.0.0:8000 -- or -- my advice: $ devel/server-loop.sh when you just need to hit ^C yourself when your static files need to be refreshed - see below diff --git a/portal/accountview.py b/portal/accountview.py index d4b68f40..d9666cbf 100644 --- a/portal/accountview.py +++ b/portal/accountview.py @@ -161,6 +161,9 @@ def account_process(request): # private_key = k.as_pem() # private_key = ''.join(private_key.split()) # public_key = "ssh-rsa " + public_key + # now we overwrite the config field with keypair + # once there will be user_hrn, we need to keep user_hrn and change only the keypair + # see submit_name section for implementing this keypair = '{"user_public_key":'+ public_key + ', "user_private_key":'+ private_key + '}' # keypair = re.sub("\r", "", keypair) # keypair = re.sub("\n", "\\n", keypair) -- 2.43.0