Skip to content

hmangukia/Portfolio

Repository files navigation

Portfolio

made with &hearts in Django

Installation

  • Fork the repository and clone it into your PC
  • Open CMD and navigate into the cloned project folder
  • If you do not have Python, install it from https://www.python.org/downloads/. Make sure to install pip and add Python to path of system environment variables as well
  • Create a virtual environment by python3 -m venv <name_of_virtualenv>
  • Activate the created virtual environment by <name_of_virtualenv>\Scripts\activate
  • We need to install Django and Django-environ in order to run our project successfully. For that, run pip install django and pip install django-environ
  • In the same directory as settings.py, create a file called ‘.env’. Generate a Django secret key from https://djecrety.ir/, copy that and add it to your .env file as SECRET_KEY=. Make sure you don’t use quotations around strings.
  • Before running the project, we need to run python manage.py makemigrations and python manage.py migrate to make and apply migrations
  • Now, run the project by python manage.py runserver
  • You will see something like this on the CMD, this means you have successfully installed the Portfolio project:
March 12, 2021 - 14:59:22
Django version 3.0.3, using settings 'Portfolio.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CTRL-BREAK.
  • Now press ctrl+c to stop the server
  • Wonderful thing about Django is it provides admin panel, for that we need to create the superuser by running python manage.py createsuperuser
  • Enter the username, email and password(you wont be able to see the typed password on the screen)
  • Now again run the server by python manage.py runserver
  • Navigate to 127.0.0.1:8000/admin
  • You will see something like this:

  • Enter the username and password and login where you will see something like this:

  • Under Connects, you can add your social media usernames, links(urls) to your profiles, and content(a bit about yourself) you want to show on the connect page
  • Under projects, you can add the name(title) of your project, content explaining what your project is all about, and GitHub link to the repo of your project
  • Under Posts, you can add blog posts and publish it(or keep it draft)
  • Navigate to your site and you will see the projects, blogs and social media profiles added to it
  • However, on the left corner of the navbar, it shows “name”. You can change it by going to Portfolio/templates/base.html
  • Inside the body and nav tag, find where “Name” is written. Change that to your name and you are good to go!
  • For now, the home page is blank. You can add HTML block at Portfolio/templates/index.html

More features to be added

  • Documentation on how to host your Portfolio for free(on Heroku)
  • Changing models
  • Presently, the color theme is green. Would like to add the option of changing the theme color according user preference
  • Uploading image to be displayed on 'About Me'
  • More to be added soon!

You can contact me any time on hmangukia9@gmail.com or LinkedIn if you are facing any error in installation or hosting. Would be more than happy to help for creating index.html as well!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published