This is a freelance developer portfolio website built using Django 4, HTML 5, CSS 3, Bootstrap 5, and Sass.
- Prerequisites
- Installation
- Running the application
- Adding data to the application
- Customizing the application
- Copyright and License
Install the following prerequisites:
- Python 3.8-3.11
This project uses Django v4.2.4. For Django to work, you must install a correct version of Python on your machine. More information here. - Node.js
- Visual Studio Code with the Live Sass Compiler extension.
Live Sass Compiler allows us to compile Sass files to CSS files in real-time. It will watch a Sass file for changes, and then it will automatically compile that Sass file into a CSS file whenever a change is made and saved.
From the root directory, run:
python -m venv venvFrom the root directory, run:
On macOS:
source venv/bin/activateOn Windows:
venv\scripts\activateFrom the root directory, run:
pip install -r requirements.txtFrom the root directory, run:
cd staticnpm installFrom the root directory, run:
python manage.py makemigrationspython manage.py migrateFrom the root directory, run:
python manage.py createsuperuserWhen prompted, enter a username, email, and password.
From the root directory, run:
python manage.py runserverGo to http://127.0.0.1:8000/ to view the application.
Add data through Django Admin.
Go to http://127.0.0.1:8000/admin to access the Django Admin interface and sign in using the admin credentials.
This section describes how to customize the application.
To modify the title and subtitle of the About section, make changes in the templates/index.html file.
To modify the title and subtitle of the Projects section, make changes in the templates/index.html file.
To modify the colors in the application, make changes in the static/sass/styles.scss file and compile the file using the Live Sass Compiler, which is a Visual Studio Code Extension. Remember to set the savePath option in the settings.json file (liveSassCompile.settings.formats section) to static/css so that the generated CSS file is stored in the static/css directory.
To modify the logo in the application, make changes in the templates/index.html file.
Copyright © 2022 Bob's Programming Academy. Code released under the MIT license.
