Giter Site home page Giter Site logo

portfolio's Introduction

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 [email protected] 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!

portfolio's People

Contributors

hmangukia avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.