Comments (8)
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.
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.
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.
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.
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.
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.
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.
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)
- Appengine docs are not consistant HOT 1
- support installing with an exact version to avoid UnacceptableVersionError HOT 2
- Allow non-django handlers to mix with django handlers in the same app HOT 4
- ImportError: No module named fancy_urllib HOT 6
- Wrong value of appid and have_appserver, HOT 2
- Default Database not set and objct User dont have attribute 'properties' HOT 2
- Cannot update my application remotely HOT 1
- simplejson importerror HOT 2
- ImportError: No module named whoosh (needs path update for SDK 1.5.3) HOT 4
- BadRequestError: app "google-app-engine-django" cannot access app "MY_APP"'s data in IntegrationTest.testBasic HOT 4
- Adds upgrade script to keep an application in sync with the helper
- console management command doesn't work
- AttributeError: 'module' object has no attribute 'ApplicationLoggingHandler'
- Since GAE1.6 - ValueError: too many values to unpack in LoadAppengineEnvironment HOT 5
- SDK 1.6 LoadAppConfig ValueError: too many values to unpack HOT 1
- pls help me out....while browsing project i got this error ..!!!!
- from google.appengine.dist works in local 2.7 environment HOT 3
- ImportError: cannot import name SMTPConnection HOT 1
- Goflow implementation in google app engine nosql.
- Enter one-line summary
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from google-app-engine-django.