This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Plugin Name: Сотрудники организации | |
* Description: Плагин для демонстрации работы класса WP_List_Table | |
* Version: 0.0.1 | |
* Author: Александр Третьяков | |
* Author URI: https://tretyakov.net/ | |
* License: GPLv2 or later | |
* License URI: https://www.gnu.org/licenses/gpl-2.0.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Переходим в директорию с проектом | |
cd test/ | |
# Загружаем изменения из гита | |
git pull | |
# Создаем и применяем миграции | |
venv/bin/python manage.py makemigrations | |
venv/bin/python manage.py migrate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.idea/ | |
venv/ | |
*.log | |
*.pot | |
*.pyc | |
__pycache__/ | |
media/ | |
static/ | |
db.sqlite3 | |
.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.db import models | |
class Person(models.Model): | |
name = models.CharField(max_length=150, verbose_name='Имя') | |
date_of_birth = models.DateField(verbose_name='Дата рождения') | |
email = models.CharField(max_length=150, verbose_name='Email') | |
home_adress = models.CharField(max_length=250, verbose_name='Домашний адрес') | |
class Meta: |