ОШ
Size: a a a
ОШ
DI
DT
DT
DI
class PostedGalleryItem(Content):
parent_gallery = models.ForeignKey(
PostedGallery,
verbose_name=_('Posted gallery'),
related_name='posted_gallery_items',
null=True,
on_delete=models.CASCADE,
)
image_object = models.ForeignKey(
ImageObject, verbose_name=_('Image object'), related_name='posted_gallery_items', on_delete=models.PROTECT
)
position = models.PositiveSmallIntegerField(_('Position'), default=0)
class Meta:
ordering = ('-created_at',)
verbose_name = _('Posted gallery item')
verbose_name_plural = _('Posted gallery items')
D
DI
yh
D
Н
A
Н
[Unit]
Description=gunicorn daemon
Requires=gunicorn.socket
After=network.target
[Service]
PIDFile=/run/gunicorn/pid
User=root
Group=root
WorkingDirectory=/opt/raplh-src/ralph
ExecStart=/opt/raplh-src/ralph/env/bin/gunicorn --pid /run/gunicorn/pid --name ralph --bind unix:/run/gunicorn/socket --workers 6 --chdir /opt/raplh-src/ralph/ ralph.wsgi
ExecReload=/bin/kill -s HUP $MAINPID
ExecStop=/bin/kill -s TERM $MAINPID
PrivateTmp=true
[Install]
WantedBy=multi-user.target
Н
PZ
cd /opt/opt/raplh-src/ralph
/opt/raplh-src/ralph/env/bin/gunicorn --pid /run/gunicorn/pid --name ralph --bind unix:/run/gunicorn/socket --workers 6 --chdir /opt/raplh-src/ralph/ ralph.wsgi
PZ
DI
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('news', '0043_auto_20191031_1403'),
]
operations = [
migrations.AlterField(
model_name='postedgalleryitem',
name='parent_gallery',
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='posted_gallery_items', to='news.PostedGallery', verbose_name='Posted gallery'),
),
]
DI
PZ
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('news', '0043_auto_20191031_1403'),
]
operations = [
migrations.AlterField(
model_name='postedgalleryitem',
name='parent_gallery',
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='posted_gallery_items', to='news.PostedGallery', verbose_name='Posted gallery'),
),
]
_()
- это gettext или gettext_lazy?DI
CF