Author: sh1mu7
This guide provides step-by-step instructions for installing the Fish shell on Ubuntu.
You can install Fish using the following command:
######################## Installing Postgress ######################## | |
sudo apt update | |
sudo apt install python3-venv python3-dev libpq-dev postgresql postgresql-contrib nginx curl | |
###################### Creating SuperUser ############################ | |
CREATE ROLE user_name SUPERUSER LOGIN PASSWORD 'password'; | |
or |
# docker-compose ym | |
version: '3' | |
services: | |
# Django application | |
web: | |
build: | |
context: . | |
dockerfile: Dockerfile | |
ports: |
from django.db import models | |
from django.conf import settings | |
from coreapp.base import BaseModel | |
from delivery import constants | |
class RiderDocuments(BaseModel): | |
title = models.CharField(max_length=100) | |
documents = models.ForeignKey('coreapp.Document', on_delete=models.CASCADE) |
#!/bin/bash | |
# Author: sh1mu7 | |
# Date: 2024-02-06 | |
# Description: Django deployment automation. | |
# Prompt for service name | |
# shellcheck disable=SC2162 | |
read -p "Enter service name: " NAME | |
# Prompt for domain name |
#!/bin/bash | |
# Author: sh1mu7 | |
# Date: 2024-02-06 | |
# Description: Django deployment automation. | |
# Prompt for service name | |
# shellcheck disable=SC2162 | |
#!/bin/bash | |
#!/bin/bash | |
echo "=== Deployment Automation Script ===" |