Saturday, October 19, 2013

Re: PythonAnywhere->TemplateSyntaxError: 'blog_extras' is not a valid tag library: ImportError raised loading nrpccms.newsroom.templatetags.blog_extras: No module named settings

Fixed: I had to add my projects folder to sys.path in my wsgi script. This is my new wsgi script:

activate_this = '/home/nimbiotics/.virtualenvs/nrpccms/bin/activate_this.py'  execfile(activate_this, dict(__file__=activate_this))    import os  import sys    path = '/home/nimbiotics/projects'  if path not in sys.path:      sys.path.append(path)    ###########################################################  nrpccms_path = '/home/nimbiotics/projects/nrpccms'  if nrpccms_path not in sys.path:      sys.path.append(nrpccms_path)  ###########################################################    os.environ['DJANGO_SETTINGS_MODULE'] = 'nrpccms.settings'    import django.core.handlers.wsgi  application = django.core.handlers.wsgi.WSGIHandler()  


On Friday, October 18, 2013 9:56:55 PM UTC-4, Mario Osorio wrote:
Trying to deploy my very first app in PythonAnywhere (or at AnywhereAnywhere for that matter) I'm currently getting

    TemplateSyntaxError: 'blog_extras' is not a valid tag library: ImportError raised loading nrpccms.newsroom.templatetags.blog_extras: No module named settings

(full error log)[http://dpaste.com/1421863/]
(see error live)[http://nimbiotics.pythonanywhere.com/]

The app newsroom is the very first one in INSTALLED_APPS:

    #! python
    # ...
    INSTALLED_APPS = (
        "nrpccms.newsroom",
        "django.contrib.admin",
    # ...

Also, blog_extras.py is at MY_PROJECT/MY_APP/templates, and there IS a __init__.py at MY_PROJECT/mY_APP

Please help me pinpoint my mistakes as I don't know where else to look: This are my first baby steps in the arts of webapps/django

Thanks a lot in advanced!

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/c0d6e6ff-7183-4036-b2e9-2259fab4a534%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate