In the urls.py
from django.contrib import admin
from django.urls import path
import pandas as pd
import statsmodels.api as sm
urlpatterns = [path('admin/',admin.site.urls),]
When I comment out the 'import statsmodels.api as sm' line, the API is working fine and shows the django home page but when I include the statsmodels package it keeps on loading and throws timeout error. Please suggest what is going wrong. The packages are installed properly in the django environment.
Additional information: (Python version - 3.8.5, Django - 3.1.4, Ubuntu - 20.4)
Deployed this django API (installed apache2 and mod_wsgi with this django) in the Ubuntu EC2 instance and calling the django API from the local computer using Public IPv4 DNS. (Followed this site to deploy the django and apache - https://studygyaan.com/django/how-to-setup-django-applications-with-apache-and-mod-wsgi-on-ubuntu)