From c873adbf3bf94564dbc64ff3bced722dabc6fdc3 Mon Sep 17 00:00:00 2001
From: ankitjavalkar
Date: Fri, 29 Dec 2017 16:49:21 +0530
Subject: Change README and tasks.py

---
 README_production.rst | 14 ++++++++------
 tasks.py              | 16 ----------------
 2 files changed, 8 insertions(+), 22 deletions(-)

diff --git a/README_production.rst b/README_production.rst
index 28b756e..1438dcd 100644
--- a/README_production.rst
+++ b/README_production.rst
@@ -17,7 +17,14 @@ Pre-Requisite
 
 1. Ensure `pip <https://pip.pypa.io/en/latest/installing.html>`__ is
    installed
-2. Install dependencies using pip install -r requirements.txt
+2. Install dependencies, Run;
+   
+   ::
+
+       pip install -r requirements/requirements-py2.txt # For Python 2
+
+       pip3 install -r requirements/requirements-py3.txt # For Python 3
+
 3. Install MySql Server
 4. Install Python MySql support
 5. Install Apache Server for deployment
@@ -241,11 +248,6 @@ Follow these steps to deploy and run the Django Server, MySQL instance and Code
 
 5. Use ``invoke deploy --fixtures`` to load the fixtures
 
-6. Create the superuser and moderator group
-   ::
-
-       invoke createsuperuser
-
 7. Stop the containers
 
    ::
diff --git a/tasks.py b/tasks.py
index ac2721a..5e7295a 100644
--- a/tasks.py
+++ b/tasks.py
@@ -216,22 +216,6 @@ def deploy(ctx, fixtures=False):
     ctx.run(cmd)
     print ("** Done! Set up static assets **")
 
-@task
-def createsuperuser(ctx):
-    run_as_cmd = run_as(OS_NAME)
-
-    base_su_cmd = "docker exec -it yaksh_django python3 manage.py createsuperuser"
-    cmd = get_cmd(run_as_cmd, base_su_cmd)
-    print ("** Creating Superuser **")
-    ctx.run(cmd)
-    print ("** Done! Created Superuser **")
-
-    base_mod_cmd = "docker exec -i yaksh_django python3 manage.py add_group"
-    cmd = get_cmd(run_as_cmd, base_mod_cmd)
-    print ("** Creating Moderator group **")
-    ctx.run(cmd)
-    print ("** Done! Created Moderator group **")
-
 @task
 def halt(ctx):
     run_as_cmd = run_as(OS_NAME)
-- 
cgit