[2017-07-14 22:36:31,274: ERROR/MainProcess] Received unregistered task of type 'blog.tasks.send_notification'.
The message has been ignored and discarded.
# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
!includedir /etc/mysql/conf.d/
!includedir /etc/mysql/mysql.conf.d/
class Work(TranslatableModel):
name = models.CharField(max_length=200, verbose_name='Название')
logo = models.ImageField(upload_to='content', verbose_name='Логотип')
def __str__(self):
return self.name
class Meta:
verbose_name = 'работу'
verbose_name_plural = 'работы'
class WorkImage(models.Model):
image = FilerImageField(related_name="work_image", verbose_name='Картинка работы')
work = models.ForeignKey(Work, on_delete=models.CASCADE)
def __str__(self):
return 'изображение'
class Meta:
verbose_name = 'изображение'
verbose_name_plural = 'изображение'
[uwsgi]
project = new_project
base = /home/my_projects
chdir = %(base)/%(project)
home = %(base)/Env/%(project)
module = %(project).wsgi:application
master = true
processes = 5
socket = %(base)/%(project)/%(project).sock
chmod-socket = 664
vacuum = true
description "uWSGI application server in Emperor mode"
start on runlevel [2345]
stop on runlevel [!2345]
setuid sos
setuid www-data
exec /usr/local/bin/uwsgi --emperor /etc/uwsgi/sites