On Thursday, January 27, 2011 9:15:52 AM UTC+11, 3lancer.eu wrote: > > Hi, > > More a Python thing, than Django. > > You should never put custom code in the django package. > > Generally you can put SWFUploadMiddleware inside, say, middleware.py in the > same directory as your settings.py. > > Then you'd have to put: > 'yourprojectname.middleware.SWFUploadMiddleware' > > Once you understand how namespaces work, you'll be fine. At least until you > try do deploy using mod_wsgi ;) >
That isn't exactly mod_wsgi's fault. You should go have a read of: http://blog.dscpl.com.au/2010/03/improved-wsgi-script-for-use-with.html some time and then you might understand the horrible things that the development server does with paths. :-) Graham -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

