It's seem you missed init file. that all.
On Thursday, August 25, 2022 at 1:54:53 PM UTC+7
mikeol...@open4businessonline.com wrote:
> >>> import mysite.mymiddleware.DoseControllerMiddleware
> Traceback (most recent call last):
> File "", line 1, in
> ModuleNotFoundError: No module named 'mysit
Ok will try the shell
On Thursday, August 25, 2022 at 2:00:33 PM UTC+8 bboy...@gmail.com wrote:
>
> Ur config with me are the same.
>
> [image: Screenshot_2022-08-25-12:50:38-1661406638.png]
> But i put it in the bottom of the middleware
>
> MIDDLEWARE = [
> "django.middleware.security.Secur
Ur config with me are the same.
[image: Screenshot_2022-08-25-12:50:38-1661406638.png]
But i put it in the bottom of the middleware
MIDDLEWARE = [
"django.middleware.security.SecurityMiddleware",
"whitenoise.middleware.WhiteNoiseMiddleware",
"django.contrib.sessions.middleware.Session
Currently, I have
/mysite/
mymiddleware.py
settings.py
My CustomMiddlware class looks like...
class DoseControllerMiddleware(object):
def process_request(self, request):
"""
get ready to call the Dose Controller
"""
print("DoseControllerModdleware.proce
Well I have continued to search and now I see that CustomMiddleware will do
what I want, but I cannot find a current example and some of the
StackOverflow answers are old and not working in the latest Django.
On Thursday, August 25, 2022 at 10:23:41 AM UTC+8 bboy...@gmail.com wrote:
> Could you
Could you tell us more detail of process flow?
On Wed, 24 Aug 2022 at 20:52 Mike Oliver <
mikeolive...@open4businessonline.com> wrote:
> Hello,
>
> I want to follow a microservices architecture and have some shared
> services I can include in a process flow instead of the 1:1 View:Model
>
> Sugge
Hello,
I want to follow a microservices architecture and have some shared services
I can include in a process flow instead of the 1:1 View:Model
Suggestions?
MO
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group
7 matches
Mail list logo