You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by ma...@apache.org on 2019/12/03 21:26:28 UTC

[airavata-django-portal] branch master updated: docs: adding virtual env activation instructions

This is an automated email from the ASF dual-hosted git repository.

machristie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airavata-django-portal.git


The following commit(s) were added to refs/heads/master by this push:
     new 92fbeab  docs: adding virtual env activation instructions
92fbeab is described below

commit 92fbeab32afcb5168c35e4c07be0c095cc02e8d1
Author: Marcus Christie <ma...@apache.org>
AuthorDate: Tue Dec 3 16:26:14 2019 -0500

    docs: adding virtual env activation instructions
---
 docs/dev/wagtail_export.md | 43 +++++++++++++++++++++++++++++++++----------
 1 file changed, 33 insertions(+), 10 deletions(-)

diff --git a/docs/dev/wagtail_export.md b/docs/dev/wagtail_export.md
index fe5c8a2..6238ef8 100644
--- a/docs/dev/wagtail_export.md
+++ b/docs/dev/wagtail_export.md
@@ -34,14 +34,20 @@ MIDDLEWARE = [
 This allows you to log in locally, without needing to setup Keycloak or have an
 Airavata backend running.
 
-3. Create a superuser account. You'll use this to log into wagtail and edit
+3. Make sure your virtual environment is activated if not already.
+
+```
+source venv/bin/activate
+```
+
+4. Create a superuser account. You'll use this to log into wagtail and edit
    pages:
 
 ```
 python manage.py createsuperuser
 ```
 
-4. (Optional) To start from an existing Wagtail export, run
+5. (Optional) To start from an existing Wagtail export, run
    `python manage.py load_cms_data FILENAME`, where FILENAME is the name of one
    of the Wagtail exports in
    [fixtures](https://github.com/apache/airavata-django-portal/tree/master/django_airavata/wagtailapps/base/fixtures)
@@ -51,7 +57,7 @@ python manage.py createsuperuser
 python manage.py load_cms_data default.json
 ```
 
-5. Start the Django server and log in at <http://localhost:8000/cms>
+6. Start the Django server and log in at <http://localhost:8000/cms>
 
 ```
 python manage.py runserver
@@ -61,7 +67,13 @@ python manage.py runserver
 
 Once you have the pages just the way you want them, you can now export them.
 
-1. Run the following to export the Wagtail settings into a JSON file in the
+1. Make sure your virtual environment is activated if not already.
+
+```
+source venv/bin/activate
+```
+
+2. Run the following to export the Wagtail settings into a JSON file in the
    fixtures directory:
 
 ```bash
@@ -72,7 +84,7 @@ python manage.py dumpdata --natural-foreign --exclude auth.permission \
 Where you can change `myexport` to whatever you want to meaningfully name the
 export file.
 
-2. Commit any media files that were added as part of creating the Wagtail pages.
+3. Commit any media files that were added as part of creating the Wagtail pages.
 
 ## Resetting your local environment
 
@@ -88,20 +100,26 @@ export file.
 rm db.sqlite3
 ```
 
-2. Migrate the database:
+2. Make sure your virtual environment is activated if not already.
+
+```
+source venv/bin/activate
+```
+
+3. Migrate the database:
 
 ```
 python manage.py migrate
 ```
 
-3. Create a superuser account. You'll use this to log into wagtail and edit
+4. Create a superuser account. You'll use this to log into wagtail and edit
    pages:
 
 ```
 python manage.py createsuperuser
 ```
 
-4. (Optional) To start from an existing Wagtail export, run
+5. (Optional) To start from an existing Wagtail export, run
    `python manage.py load_cms_data FILENAME`, where FILENAME is the name of one
    of the Wagtail exports in
    [fixtures](https://github.com/apache/airavata-django-portal/tree/master/django_airavata/wagtailapps/base/fixtures)
@@ -111,7 +129,7 @@ python manage.py createsuperuser
 python manage.py load_cms_data default.json
 ```
 
-5. Start the Django server and log in at <http://localhost:8000/cms>
+6. Start the Django server and log in at <http://localhost:8000/cms>
 
 ```
 python manage.py runserver
@@ -122,7 +140,12 @@ python manage.py runserver
 You can import a Wagtail export by running the following command on a newly
 created Django instance.
 
-1. Make sure you have the virtual environment activated.
+1. Make sure your virtual environment is activated if not already.
+
+```
+source venv/bin/activate
+```
+
 2. Run
 
 ```bash