IV1T3 / django-middleware-fileuploadvalidation

A Django middleware to validate user file uploads and detect malicious content.
Apache License 2.0
10 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 2 years ago

mahdiashtian commented 2 years 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 2 years 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 2 years 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 2 years 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 2 years 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 2 years 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 2 years ago

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

mahdiashtian commented 2 years ago

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

ok

IV1T3 commented 10 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!