Not only can you experience AnswerHub firsthand, but you can also ask and explore questions and answers about AnswerHub.
To get started, try typing a question in the search bar. If your question hasn't been asked, try posting a new question.
If you are a current customer, please use the Customer Success portal instead of this communtiy.
We're very excited to get this running on Evadot.com On installation, running
python manage.py syncdb
Traceback (most recent call last): File "manage.py", line 13, in execute_manager(settings) File "/usr/lib/pymodules/python2.6/django/core/management/__init__.py", line 360, in execute_manager setup_environ(settings_mod) File "/usr/lib/pymodules/python2.6/django/core/management/__init__.py", line 343, in setup_environ project_module = import_module(project_name) File "/usr/lib/pymodules/python2.6/django/utils/importlib.py", line 35, in import_module __import__(name) ImportError: No module named faqs.evadot.com
Not sure where to go from here. This is Ubuntu 9.10/MySQL. Django 1.1
Answer by mrdoornbos · Mar 23, 2010 at 05:29 PM
I figured this out. I cloned the git repo as
git clone git://github.com/OSQA/osqa.git faqs.evadot.com
This renames the osqa directory, thereby creating a python path problem. I cloned it again without specifying the directory and it worked.
Answer by Hernani , Qato lead developer and father of Tiago · Mar 23, 2010 at 07:42 PM
Hey there, the problem is related with dots in the name of the main folder. Simplistically speaking, that main folder is at the same time the main python package for osqa, and python sees structures of directories containing python source code files as the correspondent structure of packages. The difference is that python uses the dot instead of a slash to separate files and folders.
What happens is that the syncdb command (and any other management command) will try to guess the name of the main package based on the name of the folder it's running, and when it sees a folder named faqs.evadot.com, it will try to import faqs.evadot.com, which python will translated to faqs/evadot/com.py or faqs/evadot/com/__init__.py, which unless you really have that directory structure, will result in an import error.