On Jun 5, 3:51 pm, David <ww...@yahoo.com> wrote: > Hello, > > In my project "mysite" directory I have "middleware.py". This > "middleware.py" has only one class "SiteLogin" and this class has only > one method "process_request". > > Now I need to import this "process_request" into "urls.py" in the > "mysite" directory. Can anybody give me a clue how to do this? > > Thanks so much.
Er, what? If it's a middleware, it needs to go in the MIDDLEWARE_CLASSES tuple in settings.py. -- DR. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---