Skip to content

Sprint 1 | Django Overview & GUI Design

Lenny edited this page Apr 10, 2019 · 24 revisions

Brief

The following wiki is to better prepare everyone for the upcoming session. The base of this page has 3 links, of those the first two serve as resources to familiarize yourselves with the content that we'll be practicing Friday. The final link is an instruction set to practice your new knowledge from the first 2 links, in your new Sandbox. Please follow the instructions included in the link.

Once you're comfortable, feel free to practice as much as you like. The Sandbox can be found here:

ENJOY!

Objectives

  1. Learn about the work environment
  2. To become familiar with the fundamentals of the Django framework
  3. Obtain a working knowledge of the collaboration flow (git flow) that will be used for the project
  4. Complete the first django exercise

PyStockAnalyze Environment Cheat Sheet

Repository Organization

TBD

Git Flow Cheat Sheet

https://github.com/NIAGroup/PyStockAnalyze-2019/issues/33

Django Framework Overview

https://github.com/NIAGroup/PyStockAnalyze-2019/issues/20

First Django Sandbox Exercise

The goal of the sandbox exercise is to start working on online Django learning modules without corrupting the project being worked on in the PyStockAnalyze sessions.

  • The project being worked on is stored in the src/pysdjango/pysdjango folder
  • The sandbox area is stored in the src/sandbox folder--all exercises should be done in this folder

To setup your environment to support the new sandbox area:

  • Navigate to your repository while in Git Bash
  • Copy the following code into a script called resynchronize_repository
PROJ_LOCALENV_TMPDIR=$PROJ_ROOT_DIR/build/localenv_temp
PROJ_LOCALENV_DIR=$PROJ_ROOT_DIR/src/pysdjango/pysdjango/localenv

# Move unsaved versions of files in localenv folder to build folder temporarily
mkdir $PROJ_LOCALENV_TMPDIR
mv $PROJ_LOCALENV_DIR/*.py $PROJ_LOCALENV_TMPDIR

# Pull from remote origin
git pull

# Move files back into localenv folder
mv $PROJ_LOCALENV_TMPDIR/*.py $PROJ_LOCALENV_DIR```

https://github.com/NIAGroup/PyStockAnalyze-2019/issues/11




Clone this wiki locally