Database setup linux & DJ

Web Development
A

31 May 2024

database-setup-linux-dj
sudo -u postgres psql
CREATE DATABASE django_db;
CREATE USER django WITH PASSWORD 'password';
ALTER ROLE django SET client_encoding TO 'utf8';
ALTER ROLE django SET default_transaction_isolation TO 'read committed';
ALTER ROLE django SET timezone TO 'UTC';
GRANT ALL PRIVILEGES ON DATABASE django_db TO django;
\q
ALTER USER postgres WITH PASSWORD 'pgPass7431';
Database backup restore 
pg_dump -U django -d oxymanager_db > backup_may_12.sql
psql -U postgres -d oxymanager_db < backup_may_25.sql

pip install psycopg2
DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.postgresql_psycopg2',
        'NAME': 'django_db',
        'USER': 'django',
        'PASSWORD': 'password',
        'HOST': 'localhost',
        'PORT': '5432',
    }
}
devuly logo

Fully styled and customizable components for Nuxt.

Installation

Install @nuxt/ui dependency to your project:

$ npm i @nuxt/ui$ yarn add @nuxt/ui$ pnpm add @nuxt/ui

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed neque elit, tristique placerat feugiat ac, facilisis vitae arcu. Proin eget egestas augue. Praesent ut sem nec arcu pellentesque aliquet. Duis dapibus diam vel metus tempus vulputate.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed neque elit, tristique placerat feugiat ac, facilisis vitae arcu. Proin eget egestas augue. Praesent ut sem nec arcu pellentesque aliquet. Duis dapibus diam vel metus tempus vulputate.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed neque elit, tristique placerat feugiat ac, facilisis vitae arcu. Proin eget egestas augue. Praesent ut sem nec arcu pellentesque aliquet. Duis dapibus diam vel metus tempus vulputate.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed neque elit, tristique placerat feugiat ac, facilisis vitae arcu. Proin eget egestas augue. Praesent ut sem nec arcu pellentesque aliquet. Duis dapibus diam vel metus tempus vulputate.

All Posts
ufw for nginx ufw-for-nginx
SEO
A

31 May 2024

Linux commands for project setuplinux-commands-for-project-setup
Web Development
A

31 May 2024

Virtual env, linux user

red teamwhat-is-red-team-in-cyber-security
Technology
A

31 May 2024

The red team in cyber security is a group of experts who test an organization's defenses by simulating real-world cyber attacks.

Similarities and Differences Between Next.js vs Nuxt.jsexploring-the-similarities-and-differences-between-nextjs-vs-nuxtjs
Web Development
A

26 Feb 2024

Next.js and Nuxt.js stand out as popular options, both offering powerful features and streamlined workflows. While sharing some core simila...