OnProd : SystemError: Parent module 'django.template.loaders' not loaded

58 views
Skip to first unread message

Amine Azariz

unread,
May 31, 2012, 1:56:28 PM5/31/12
to google-a...@googlegroups.com
Hi guys,

I'm on Python 2.5 / DJango 1.2.

This error starts to happen very often on my queue jobs these last days. How I can fix this ? Since it's happening on Production, it's very unconvenient.

Thanks

Amine Azariz

unread,
May 31, 2012, 2:01:26 PM5/31/12
to google-a...@googlegroups.com
LOGS.

  File "/base/python_runtime/python_lib/versions/third_party/django-1.2/django/template/loader.py", line 157, in get_template
    template, origin = find_template(template_name)
  File "/base/python_runtime/python_lib/versions/third_party/django-1.2/django/template/loader.py", line 134, in find_template
    source, display_name = loader(name, dirs)
  File "/base/python_runtime/python_lib/versions/third_party/django-1.2/django/template/loaders/filesystem.py", line 55, in load_template_source
    import warnings
SystemError: Parent module 'django.template.loaders' not loaded

Amine Azariz

unread,
Jun 1, 2012, 5:03:52 AM6/1/12
to google-a...@googlegroups.com
No one here ?

Takashi Matsuo

unread,
Jun 1, 2012, 7:00:06 AM6/1/12
to google-a...@googlegroups.com
Hi Amine,

Could you show me your app.yaml and how you specify the django version?
Do you use datastore admin? If yes, how did you setup the datastore admin?

-- Takashi
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-appengine/-/ShJCn_Jul1wJ.
>
> To post to this group, send email to google-a...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengi...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-appengine?hl=en.



--
Takashi Matsuo | Developer Advocate | tma...@google.com

johnP

unread,
Jun 1, 2012, 12:28:50 PM6/1/12
to Google App Engine
On Reitveldt - Guido Van Rossom's example django app, he includes the
following:

# Import webapp.template. This makes most Django setup issues go
away.
from google.appengine.ext.webapp import template

So I included that line, and so far so good :)

johnP



On Jun 1, 4:00 am, Takashi Matsuo <tmat...@google.com> wrote:
> Hi Amine,
>
> Could you show me your app.yaml and how you specify the django version?
> Do you use datastore admin? If yes, how did you setup the datastore admin?
>
> -- Takashi
>
> On Fri, Jun 1, 2012 at 6:03 PM, Amine Azariz
>
>
>
>
>
>
>
>
>
> <amine.aza...@greendizer.com> wrote:
> > No one here ?
>
> > Le jeudi 31 mai 2012 18:01:26 UTC, Amine Azariz a écrit :
>
> >> LOGS.
>
> >>   File
> >> "/base/python_runtime/python_lib/versions/third_party/django-1.2/django/tem plate/loader.py",
> >> line 157, in get_template
> >>     template, origin = find_template(template_name)
> >>   File
> >> "/base/python_runtime/python_lib/versions/third_party/django-1.2/django/tem plate/loader.py",
> >> line 134, in find_template
> >>     source, display_name = loader(name, dirs)
> >>   File
> >> "/base/python_runtime/python_lib/versions/third_party/django-1.2/django/tem plate/loaders/filesystem.py",
> >> line 55, in load_template_source
> >>     import warnings
> >> SystemError: Parent module 'django.template.loaders' not loaded
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google App Engine" group.
> > To view this discussion on the web visit
> >https://groups.google.com/d/msg/google-appengine/-/ShJCn_Jul1wJ.
>
> > To post to this group, send email to google-a...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-appengi...@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/google-appengine?hl=en.
>
> --
> Takashi Matsuo | Developer Advocate | tmat...@google.com
Message has been deleted

Amine Azariz

unread,
Jun 4, 2012, 5:09:51 AM6/4/12
to google-a...@googlegroups.com
UP.

I still have this issue in our Production application, it's very annoying.

Le vendredi 1 juin 2012 17:06:57 UTC, Amine Azariz a écrit :
Saisissez le code ici...
Hey guys,

here is my app.yaml :

 
application: xxxxxxx
version
: xxxxxxx



# --------------------------------

# General settings

# --------------------------------

runtime: python

api_version: 1

env_variables:


  DJANGO_SETTINGS_MODULE: 'greendizer.settings'




builtins:


- datastore_admin: on


- remote_api: on




error_handlers:


- file: default_error.html




default_expiration: "15d"




# --------------------------------


# HANDLERS


# --------------------------------




handlers:




- url: /(.*)favicon.ico


  static_files: static/icons/favicon.ico


  upload: static/icons/favicon.ico




- url: /robots.txt


  static_files: static/robots.txt


  upload: static/robots.txt








# System and admin tools handlers


# --------------------------------




- url: /_ah/queue/deferred


  script: deferred-main.py


  login: admin




- url: /_ah/remote_api


  script: $PYTHON_LIB/google/appengine/ext/remote_api/handler.py


  login: admin




- url: /_ereporter.*


  script: $PYTHON_LIB/google/appengine/ext/ereporter/report_generator.py


  login: admin




# Tools




- url: /webtest.*


  script: main.py


  login: admin




- url: /test.*


  script: gaeunit/gaeunit.py


  login: admin






# Others end-points


# --------------------------------




- url: /static


  static_dir: static




- url: .*


  script: main.py



Where I'll import webapp.template, and why ? I'm using django.

Thanks a lot
> > To post to this group, send email to google-appengine@googlegroups.com.
> > To unsubscribe from this group, send email to
> > For more options, visit this group at
> >http://groups.google.com/group/google-appengine?hl=en.
>
> --
> Takashi Matsuo | Developer Advocate | tmat...@google.com
> > To post to this group, send email to google-appengine@googlegroups.com.
> > To unsubscribe from this group, send email to
Reply all
Reply to author
Forward
0 new messages