This Django web application, built with Python 3.x, showcases my personal website and professional portfolio. It utilizes Django ORM, python and django code management and a PostgreSQL database to efficiently manage and serve dynamic content.
- Django ORM: Efficient database management using Django's Object-Relational Mapping system.
- PostgreSQL: Robust, yet simple database system for storing portfolio projects
- Python 3.x
- Django (Web framework)
- PostgreSQL (Database)
- JavaScript/HTML/CSS (Frontend)
git clone https://github.com/anthonybturner/anthonybturner.git
cd anthonybturner
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install -r requirements.txt
Create a database for the project.
Update the database settings in settings.py to match your PostgreSQL configuration.
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql',
'NAME': 'your_database_name',
'USER': 'your_database_user',
'PASSWORD': 'your_database_password',
'HOST': 'localhost',
'PORT': '5432',
}
}
or
DATABASES = {
'default': dj_database_url.config(default=config('DATABASE_URL'))
}
python manage.py makemigrations
python manage.py migrate
python manage.py runserver
http://127.0.0.1:portnumber
in your browser to access the application.
where port number is the port where the application is running locally
By default, Django runs on port 8000, but you can change it if needed.
e.g. http://127.0.0.1:8000
- Fork the repository
- Create a new branch
(git checkout -b feature-name)
- Make your changes
- Commit your changes
(git commit -am 'Add feature')
- Push to the branch
(git push origin feature-name)
- Create a new Pull Request