GE02 ‐ 2 ‐ Create Portfolio App (David Jones) - wycre/CS3300-Team-2-9 GitHub Wiki
- You will add the next part for your portfolio app in a branch called
Sprint01
- If you haven't created the
Sprint01 branch yet, you can create it and switch to it:
git checkout -b Sprint01
- Activate your virtual environment:
source djvenv/bin/activate
- Inside your
django_project directory, create the portfolio app:
django-admin startapp portfolio_app
- Edit your
settings.py file in the django_project directory to add the portfolio app to the INSTALLED_APPS list:
INSTALLED_APPS = [
# ...
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'Django.contrib.staticfiles',
# Add your app name here
'portfolio_app',
]
# Add support for authenticating users
AUTHENTICATION_BACKENDS = [
'django.contrib.auth.backends.ModelBackend',
]
- After adding the portfolio app, commit the changes to your local Git repository:
git add .
git commit -m "Added portfolio app"
- Push the changes to GitHub:
git push origin Sprint01