IV1T3 / django-middleware-fileuploadvalidation

A Django middleware to validate user file uploads and detect malicious content.
Apache License 2.0
6 stars 2 forks source link

django.core.exceptions.ImproperlyConfigured: WSGI application 'main.wsgi.application' could not be loaded; Error importing module. #40

Closed mahdiashtian closed 1 year ago

mahdiashtian commented 1 year ago

Hi I ran into the following problem django.core.exceptions.ImproperlyConfigured: WSGI application 'main.wsgi.application' could not be loaded; Error importing module. Can anyone help me?

my settings: WSGI_APPLICATION = 'main.wsgi.application'

mahdiashtian commented 1 year ago

I solved the problem This error was because the old version of middleware was used By override the code and updating it to the new version, the problem will be solved

wichmannpas commented 1 year ago

Thanks for your report. This repository contains only the bare middleware without a Django project. I suppose this issue is related to the Django project itself and not the middleware?

wichmannpas commented 1 year ago

I solved the problem This error was because the old version of middleware was used By override the code and updating it to the new version, the problem will be solved

Great, thanks for the reply! Were any changes to the middleware itself required?

mahdiashtian commented 1 year ago

I solved the problem This error was because the old version of middleware was used By override the code and updating it to the new version, the problem will be solved

Great, thanks for the reply! Were any changes to the middleware itself required?

Yeah But it doesn't seem logical I used MiddlewareMixin and rewrote the code and the problem was solved

mahdiashtian commented 1 year ago

I solved the problem This error was because the old version of middleware was used By override the code and updating it to the new version, the problem will be solved

Great, thanks for the reply! Were any changes to the middleware itself required?

I improved your code and added some features I wanted to get permission to put the code in my GitHub

wichmannpas commented 1 year ago

You can create a fork and send a pull request. Greatly appreciated, thanks!

mahdiashtian commented 1 year ago

You can create a fork and send a pull request. Greatly appreciated, thanks!

ok

IV1T3 commented 6 months ago

I solved the problem This error was because the old version of middleware was used By override the code and updating it to the new version, the problem will be solved

Great, thanks for the reply! Were any changes to the middleware itself required?

I improved your code and added some features I wanted to get permission to put the code in my GitHub

Hey Mahdi! Would you mind sharing your improvements with the community? Maybe we could even get your changes merged into our upcoming new release. Highly appreciated!