Django-Portfolio is a little website about you and your awesome projects powered by Django. Also, it has a blog :)
Install a virtual environment:
pip install virtualenv
Create a new virtual environment named like you want (myvenv
in this example) in a directory, for example, next to the future project folder:
mkdir portfolio-project
cd portfolio-project
virtualenv myvenv
Activate the virtual environment:
source myvenv/bin/activate
Clone this repository to portfolio-project
directory:
git clone [email protected]:MNV/django-portfolio.git
Use the package manager pip to install requirements:
cd django-portfolio
pip install -r requirements.txt
Add your project's local settings to django-portfolio/portfolio/local_settings.py
file:
cd portfolio
nano local_settings.py
Paste these settings (for PostgreSQL in this example):
SECRET_KEY = 'your random secret key'
DEBUG = True # or False for production
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql',
'NAME': 'your db name',
'USER': 'your user name',
'PASSWORD': 'your db password',
'HOST': 'localhost',
'PORT': '5432',
}
}
Apply migrations (run this command in django-portfolio
directory):
python manage.py migrate
Add static files (photo and resume) to portfolio/static
directory. Make sure that they have the right name where they're in use (photo.jpg
and resume.pdf
).
Collect static files to static
directory:
python manage.py collectstatic
Run the server:
python manage.py runserver
Go to localhost and enjoy your portfolio website!
To manage your new portfolio website you need to add superuser:
python manage.py createsuperuser
Go to localhost/admin and manage your jobs and blog posts.
That's it! :)
To run tests:
python manage.py test
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.