python-import
Importing a Python Module inside Custom Django Templatetags
I\'m using virtualenv with my Python Django installation. Here is my directory structure: project/ dev_environ/[详细]
2023-02-17 19:26 分类:问答what are the rules for imports in python
I have a directory structure : ../POC/mud/ client/ common/ server/ and i am trying to use the following 开发者_C百科imports :[详细]
2023-02-14 15:03 分类:问答How to use OpenCV in Python?
I have just installed OpenCV on my Windows 7 machine. As a result, I get a new directory: C:\\OpenCV2.2\\Python2.7\\Lib\\site-packages[详细]
2023-02-10 21:37 分类:问答How can I transparently redirect a Python import?
I\'m looking for a way to emulate symlinks for Python imports. I\'d like to be able to unzip the following folder structure in-place without duplicating files:[详细]
2023-02-08 06:15 分类:问答ImportError importing forms.py into models.py
I would really like to make a form instance a model attribute so that i have access to the form from the template through a开发者_如何学Gon object that I have handy.[详细]
2023-02-07 15:27 分类:问答Import a Python module into a Jinja template?
Is it possible to import a Python module into a Jinja template so I can use its functions? For example, I have a format.py file that contains methods for formatting dates and times. In a Jinja macro[详细]
2023-02-07 01:28 分类:问答Using a variable for an import
I have the following pattern: databasename = \"mydatabase\" import d开发者_如何学编程atabasefunctions[详细]
2023-02-06 03:53 分类:问答Unresolved Import Issues with PyDev and Eclipse
I am very new to PyDev and Python, though I have used Eclipse for Java plenty. I am trying to work through some of the Dive Into Python examples and this feels like an extremely trivial problem that\'[详细]
2023-02-03 07:44 分类:问答Installing lxml module in python
开发者_如何学编程while running a python script, I got this error from lxml import etree ImportError: No module named lxml[详细]
2023-02-03 01:20 分类:问答Python/Django is importing the wrong module (relative when it should be absolute)
I\'m using Django 1.2 pre-alpha and Python 2.4. Yeah, I know, but I\'m stuck with it. We can\'t upgrade at the moment and I doubt that\'s the answer anyway.[详细]
2023-02-01 04:04 分类:问答