I am deploying a django based web application. My hosting provider doesn't allow SSH access. So I deployed my application via python setup app. But it doesn't load static files altough it loads media files.
so i wanted to execute "python manage.py collectstatic"
But Only way to execute python command is through python setup app. But with the latest upgrade of Cpanel Python Setup Interface is fully different. I can't find a way to activate my virtualenv and execute command.
#My Static configuration in Settings.py
STATIC_URL = '/static/'
STATIC_ROOT = os.path.join(os.path.dirname(BASE_DIR), 'static')
#My Urls.Py
urlpatterns = [
path('admin/', admin.site.urls),
]+ static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
#I also tried
STATIC_URL = '/static/'
STATIC_ROOT = '/home/user/public_html/static'
This is the screenshot of Latest Cpanel. How to activate virtualenv and Execute Command.