SubstanceD Screencast #2: Generating the Initial 'myintranet' Project
This episode demonstrates generating the initial version of the
myintranet project, checking it into Git, and installing
it and its added dependencies into the virtual environment.
For those who'd like to read rather than listen, this is the set of commands outlined:
- List the templates available for generating a project:
$ bin/pcreate --list-templates
- Generate the
$ cd src $ ../bin/pcreate --template=substanced myintranet $ cd myintranet
- Check the initially generated code into a local Git repository:
$ git init . $ cat > .gitignore *.pyc __pycache__ *.egg-info *.fs* blobs tmp ^D $ git add . $ git commit -m "Initially-generated project."
- Install the project and its extra dependencies into the environment:
$ ../../bin/python setup.py develop
- Verify that
myintranetis importable from our checkout:
$ cd ../.. $ bin/python ... >>> import myintranet >>> print(myintranet.__file__)