Skip to content

jswistak/Django_blog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django_blog

Django blog is simple blog made with Django 3.0.3

Getting Started

Setup project environment with virtualenv and pip.

# Download
$ git clone https://github.com/jakub0301/Django_blog
$ cd Django_blog

# Create virtual environment
$ virtualenv venv
$ source venv/bin/activate

# Install requirements
$ pip install -r requirements.txt

$ cd django_blog/
$ python manage.py runserver

Deployment

Infrastructure

The project infrastructure is defined using Terraform on Google Cloud Platform (GCP).

Deployment to Artifact Registry

Set environment variables for the project and region:

export PROJECT_ID=helical-gist-453315-a2
export REGION=europe-west1

Authenticate with GCP:

gcloud auth configure-docker ${REGION}-docker.pkg.dev

Build and push Docker image:

# For macOS M1 users, specify platform
docker buildx build --platform=linux/amd64 -t my-django-app .

# Tag the image
docker tag my-django-app ${REGION}-docker.pkg.dev/${PROJECT_ID}/containers-django/djangoapp:latest

# Push to Artifact Registry
docker push ${REGION}-docker.pkg.dev/${PROJECT_ID}/containers-django/djangoapp:latest

Contributing

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.

Home Page Screen

Homepage

About

Django blog

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published