# Django - Deployment Error

**URL:** <https://forum.codewithmosh.com/t/django-deployment-error/18310>\
**Category:** Django\
**Created:** [February 18, 2023, 11:50pm UTC](https://forum.codewithmosh.com/t/django-deployment-error/18310 "2023-02-18T23:50:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vinodh](https://avatars.discourse-cdn.com/v4/letter/v/5daacb/32.png) [@Vinodh](https://forum.codewithmosh.com/u/Vinodh)\
**Post date:** [February 18, 2023, 11:50pm UTC](https://forum.codewithmosh.com/t/django-deployment-error/18310/1 "2023-02-18T23:50:20Z")

</div>

Hello all,

Currently, I am deploying my Django app, but I am getting an error “django.core.exceptions.ImproperlyConfigured: Error loading psycopg2 module: No module named ‘psycopg2’”

I installed psycopg2 & psycopg2-binary on windows within the virtualenv, but the error still persists. Disabled Django collectstatic ( env var DISABLE\_COLLECTSTATIC) because it was another error with psycopg2.

Do I need to deploy in ubuntu VM?  
This is my database engine. My DATABASE\_URL = “Heroku\_postgres link”. Did I miss anything here?  
Please help me out. Please see the attached images.

![depl](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/2X/4/4746cfc4113d3dce28a5ea29eaa478366e305a2a.png)

 ![deploy0](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/2X/f/f57076a900ebe01976bd4c5e2128497436a6336c.png)  
 ![deploy](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/2X/b/bfd480efd4f574c2c76e841a8ef927b419ba163c.png)  
 ![deploy2](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/2X/3/3d1969b796763c511d4d516caf4622931df5e9e1.png)  
 ![deploy3](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/2X/4/4ace5bc7760ea70eadfb713bf9263a677d506e49.png)

---

<div class="post-metadata">

**Author:** ![Vinodh](https://avatars.discourse-cdn.com/v4/letter/v/5daacb/32.png) [@Vinodh](https://forum.codewithmosh.com/u/Vinodh)\
**Post date:** [February 20, 2023, 6:25am UTC](https://forum.codewithmosh.com/t/django-deployment-error/18310/2 "2023-02-20T06:25:28Z")

</div>

I resolved it my connecting to JawsDBMySQL in Heroku. My app got deployed.
