>> G:\do\alldo\autopart007\web>python code.py >> Traceback (most recent call last): >> File "code.py", line 4, in <module> >> from controllers import admin, people >> File "G:\do\alldo\autopart007\web\controllers\people.py", line 3, in >> <module> >> import web, md5, settings >> File "G:\do\alldo\autopart007\web\settings.py", line 7, in <module> >> refer = web.ctx.env["HTTP_REFERER"] >> [..] >> raise AttributeError, k >> AttributeError: 'env'
web.ctx.env is available only when handling requests. Looks like you are using it when initializing the application. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web.py" 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/webpy?hl=en -~----------~----~----~----~------~----~------~--~---
