A personal website built with Django web framework featuring a blog, portfolio, and more.
- Responsive design using Bootstrap 5
- Blog with tagging system
- Pages with rich content
- Contact form
- User authentication
- Admin dashboard
- Python 3.8+
- pip (Python package manager)
-
Clone the repository:
git clone https://github.com/dehongi/personal.git cd personal -
Create and activate a virtual environment:
python -m venv .venv source .venv/bin/activate # On Windows: .venv\Scripts\activate
-
Install dependencies:
pip install -r requirements.txt
-
Apply migrations:
python manage.py migrate
-
Create a superuser:
python manage.py createsuperuser
-
Run the development server:
python manage.py runserver
-
Access the site at http://127.0.0.1:8000/
For production deployment, set these environment variables:
DJANGO_SECRET_KEY: Secret key for the Django applicationDJANGO_DEBUG: Set to "False" in productionDJANGO_ALLOWED_HOSTS: Comma-separated list of allowed hostsSITE_NAME: Your website nameSITE_DESCRIPTION: Your website description
- Modify templates in the
templatesdirectory of each app - Add CSS styles in
pages/static/css/style.css - Add JavaScript in
pages/static/js/main.js
For production deployment:
- Set environment variables as described above
- Collect static files:
python manage.py collectstatic - Set up a production database (PostgreSQL recommended)
- Configure a web server (Nginx, Apache) with WSGI
- Set up SSL certificate for HTTPS
This project is licensed under the terms specified in the LICENSE file.