Same problem here, after running PYTHONPATH=<path to django-blocks>
and ./manage.py runserver the
same error occurs, such "Error: No module named blocks.apps.core".
What can i do to solve this issue?
Thank you in advance
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
I don't have the right to access /usr/lib/python2.6/site-packages
(webfaction.com host),and I think I have set django-blocks into the
PYTHONPATH ( I verified from python shell with "import sys" and "sys.path"
commands.
I still see "No module named blocks.apps.core"
What can I do?
Thanks,
@ljiang510: hi, can you be more explicit?
did you put django-blocks in: ~/lib/pythonX.Y ??
i.e (assuming that your default python version is 2.6 and you have done
mkdir -p ~/lib/python2.6):
cd ~/lib/python2.6
svn co http://django-blocks.googlecode.com/svn/trunk/src/python/blocks/
You can read more in: http://docs.webfaction.com/software/python.html
I never used Webfaction but maybe this can help:
http://docs.webfaction.com/software/django/getting-started.html
For pulling your feeds you need to execute ./manage.py aggregate
You can put that command in a cron to execute in a interval that suits you.
PYTHONPATH=/path/to/python
DJANGO_SETTINGS_MODULE=mysite.settings
20,50 * * * * python /path/to/mysite/manage.py aggregate
Thank you very much, Kimus. I had the issues solved.
I don't quite get the following tho.
*******************************
PYTHONPATH=/path/to/python
DJANGO_SETTINGS_MODULE=mysite.settings
20,50 * * * * python /path/to/mysite/manage.py aggregate
*******************************
I searched..
@ljiang510: that's an example of a crontab to run aggregate command every
hour at 20 and 50 minutes.
Comment #11 on issue 4 by kimus.linuxus: Installation instructions do not
work, directory structure doesn't match instructions
http://code.google.com/p/django-blocks/issues/detail?id=4
I'm going to close this because the issue was corrected long ago. Tough I
want to write a better help page.