UNC BACS 350

Web Apps with Python/Django

Logo

Project 1 - First Django App

This project will be completed in three distinct parts. Each part will be graded so that any problems can be fixed before they compound into larger problems.


Project 1b - Install Development Tools - Due Wed, Aug 25

Goal - Setup development environment on your local computer. Create a simple app with a single page. Get the source code from the teacher Github repo to test your work.

Step 1 - Install Python 3

Step 2 - Install pipenv

Install pipenv

$ pip3 install pipenv

Step 3 - Install django

Install the django libraries into the Virtual Environment

$ pipenv install django

Activate the Virtual Environment

$ pipenv shell

Step 4 - Test Django Install

Create a new Django project

$ django-admin startproject config .

Run the web server

$ python manage.py runserver

Browse to web page

http://localhost:8000

Step 5 - Install Python Visual Code

Go to Visual Studio Code

Download and install on your machine

Run Visual Studio

Step 6 - Commit and Push Code

Commit your code

Add source to Git

$ git add .

Commit to repo

$ git commit -m 'Initial application'

Push the repo to Github

$ git push

Step 7 - Test Your Tool Setup