# Django singals error

**URL:** <https://forum.codewithmosh.com/t/django-singals-error/18744>\
**Category:** Django\
**Created:** [March 14, 2023, 4:50am UTC](https://forum.codewithmosh.com/t/django-singals-error/18744 "2023-03-14T04:50:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tanjil](https://avatars.discourse-cdn.com/v4/letter/t/ac8455/32.png) [@tanjil](https://forum.codewithmosh.com/u/tanjil)\
**Post date:** [March 14, 2023, 4:50am UTC](https://forum.codewithmosh.com/t/django-singals-error/18744/1 "2023-03-14T04:50:26Z")

</div>

i can not register new user .

# User List

**POST** /auth/users/

**HTTP 400 Bad Request**  **Allow:** GET, POST, HEAD, OPTIONS **Content-Type:** application/json **Vary:** Accept [“Unable to create account.”][quote=“tanjil, post:1, topic:18744, full:true”]  
i can not register new user .

# User List

**POST** /auth/users/

**HTTP 400 Bad Request**  **Allow:** GET, POST, HEAD, OPTIONS **Content-Type:** application/json **Vary:** Accept [“Unable to create account.”]  
[/quote]

from django.conf import settings  
from django.db.models.signals import post\_save  
from django.dispatch import receiver  
from store.models import Customer

@receiver(post\_save, sender=settings.AUTH\_USER\_MODEL)  
def create\_customer\_for\_new\_user(sender, \*\*kwargs):  
if kwargs[‘created’]:  
Customer.objects.create(user=kwargs[‘instance’])
