# Async in django . Asgi file

**URL:** <https://forum.djangoproject.com/t/async-in-django-asgi-file/13139>\
**Category:** Deployment\
**Created:** [April 13, 2022, 7:08am UTC](https://forum.djangoproject.com/t/async-in-django-asgi-file/13139 "2022-04-13T07:08:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![omkashyap007](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/omkashyap007/32/8112_2.png) [@omkashyap007](https://forum.djangoproject.com/u/omkashyap007)\
**Post date:** [April 13, 2022, 7:08am UTC](https://forum.djangoproject.com/t/async-in-django-asgi-file/13139/1 "2022-04-13T07:08:51Z")

</div>

Hello . i have created a chat app using django channels and websockets , it is working in development environment nicely without any errors . But when I am trying to deploy it to web , it gives me error for asgi file. I am unable to figure out how to solve the error because everything is fine , but still error . I am new to django channels and websockets . I have not enough knowledge of it .

Here is the stackoverflow question which is asked . Please help me \>  
[https://stackoverflow.com/questions/71828109/unable-to-deploy-django-app-with-websockets-and-channels-using-daphne-asgi-app](https://stackoverflow.com/questions/71828109/unable-to-deploy-django-app-with-websockets-and-channels-using-daphne-asgi-app)

---

<div class="post-metadata">

**Author:** ![carltongibson](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/carltongibson/32/267_2.png) [@carltongibson](https://forum.djangoproject.com/u/carltongibson)\
**Post date:** [April 13, 2022, 8:33am UTC](https://forum.djangoproject.com/t/async-in-django-asgi-file/13139/2 "2022-04-13T08:33:43Z")

</div>

Hi @omkashyap007

The issue is this line:

```auto
Apr 09 19:09:47 ubuntu-s-1vcpu-1gb-blr1-01 python[3411]: django.core.exceptions.ImproperlyConfigured: Cannot find 'application' in ASGI_APPLICATION module Chatapp.asgi

```

So I’d skip `systemd` for the moment, and make sure you can run `daphne` by hand, and that all the paths etc. are lined up correctly. Once you’re sure you’ve got it all configured properly, and Daphne is running your app in a shell, then you can go back to the Systemd configuration, and make sure that’s correct too.

It can be tricky getting it lined up. 😬
