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 virtualenvCreate 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 myvenvActivate the virtual environment:
source myvenv/bin/activateClone this repository to portfolio-project directory:
git clone [email protected]:MNV/django-portfolio.gitUse the package manager pip to install requirements:
cd django-portfolio
pip install -r requirements.txtAdd your project's local settings to django-portfolio/portfolio/local_settings.py file:
cd portfolio
nano local_settings.pyPaste 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 migrateAdd 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 collectstaticRun the server:
python manage.py runserverGo to localhost and enjoy your portfolio website!
To manage your new portfolio website you need to add superuser:
python manage.py createsuperuserGo to localhost/admin and manage your jobs and blog posts.
That's it! :)
To run tests:
python manage.py testPull 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.