Giter VIP home page Giter VIP logo

Comments (8)

GoogleCodeExporter avatar GoogleCodeExporter commented on September 3, 2024
Never mind, my bad. I messed the docs. 

Original comment by [email protected] on 31 May 2008 at 12:35

from google-app-engine-django.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 3, 2024
sleytr, I'm not sure what you mean by your comment.. 

I just ran into this issue as well. The tutorial at
http://code.google.com/appengine/articles/appengine_helper_for_django.html says 
"To
reduce the number of files, you can safely remove: ... django/contrib/auth ..." 
yet
appengine_django/__init__.py tries to "from django.contrib.auth import models" 
(line
394), which doesn't work if django/contrib/auth has been removed. 

Original comment by [email protected] on 8 Jun 2008 at 2:25

from google-app-engine-django.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 3, 2024
stevehulet, do not consider the original documentation when you use the django 
helper package. It should work if you use the settings.py file which comes with 
the 
package. 

Original comment by [email protected] on 8 Jun 2008 at 8:42

from google-app-engine-django.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 3, 2024
This is a bug in the article.

It was correct for the initial version of the helper which did not contain code 
to
support Django's authentication functions. 

The article was  not correctly updated to match the latest release of the Django
helper which adds initial support for some of Django's authentication 
functionality.

I will prepare an update for the article that does not tell you to remove the 
auth/
directory.

Original comment by [email protected] on 9 Jun 2008 at 10:41

  • Changed state: Accepted

from google-app-engine-django.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 3, 2024
i do think however that should you not want to use the auth module an error 
should
not be thrown :/ perhaps try to import and catch the exception

Original comment by andyster on 11 Jun 2008 at 3:16

from google-app-engine-django.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 3, 2024
r33 implements the try/except around the auth monkey patching.

An update to the article that does not mention removing contrib/auth should 
also go
live on the site in the next few hours.

Original comment by [email protected] on 26 Jun 2008 at 9:11

  • Changed state: Fixed

from google-app-engine-django.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 3, 2024
With most recent downloads, currently getting this:

(555)$ python manage.py shell
WARNING:root:Could not read datastore data from
/var/folders/Ge/GeQ1BAWEHam3Czy2a6snzE+++TI/-Tmp-/django_google-app-engine-djang
o.datastore
WARNING:root:Could not read datastore data from
/var/folders/Ge/GeQ1BAWEHam3Czy2a6snzE+++TI/-Tmp-/django_google-app-engine-djang
o.datastore.history
Traceback (most recent call last):
  File "manage.py", line 18, in <module>
    InstallAppengineHelperForDjango()
  File "/Users/earino/work/mysite/appengine_django/__init__.py", line 373, in
InstallAppengineHelperForDjango
    InstallAuthentication()
  File "/Users/earino/work/mysite/appengine_django/__init__.py", line 394, in
InstallAuthentication
    from django.contrib.auth import models
  File "/usr/local/google_appengine/lib/django/django/contrib/auth/models.py", line
4, in <module>
    from django.contrib.contenttypes.models import ContentType
  File
"/usr/local/google_appengine/lib/django/django/contrib/contenttypes/models.py", 
line
33, in <module>
    class ContentType(models.Model):
  File "/usr/local/google_appengine/lib/django/django/db/models/base.py", line 30, in
__new__
    new_class.add_to_class('_meta', Options(attrs.pop('Meta', None)))
  File "/usr/local/google_appengine/lib/django/django/db/models/base.py", line 169,
in add_to_class
    value.contribute_to_class(cls, name)
  File "/usr/local/google_appengine/lib/django/django/db/models/options.py", line 53,
in contribute_to_class
    setattr(self, 'verbose_name_plural', meta_attrs.pop('verbose_name_plural',
self.verbose_name + 's'))
  File "/usr/local/google_appengine/lib/django/django/utils/functional.py", line 42,
in __wrapper__
    res = self.__func(*self.__args, **self.__kw)
  File
"/usr/local/google_appengine/lib/django/django/utils/translation/trans_real.py",
 line
268, in gettext
    _default = translation(settings.LANGUAGE_CODE)
  File
"/usr/local/google_appengine/lib/django/django/utils/translation/trans_real.py",
 line
197, in translation
    default_translation = _fetch(settings.LANGUAGE_CODE)
  File
"/usr/local/google_appengine/lib/django/django/utils/translation/trans_real.py",
 line
180, in _fetch
    app = getattr(__import__(appname[:p], {}, {}, [appname[p+1:]]), appname[p+1:])
ImportError: No module named mysite

Original comment by [email protected] on 27 Jun 2008 at 7:52

from google-app-engine-django.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 3, 2024
I had this problem too.  It seems that you have to leave out the project name.

i.e. instead of mysite.myapp.views.getdata you just use myapp.views.getdata

As far as I can tell this goes for all references throughout the project:
settings.py, urls.py, etc.

Original comment by [email protected] on 5 Aug 2008 at 8:44

from google-app-engine-django.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.