google cloud datastore - Using django-admin on django-nonrel, using App Engine models -
I am creating a Django app for Google App Engine. I am using django-nonrel but the Google App Engine model I am using.
I also want to use Django's admin site.
Airlines app for my models.py :
to google.appengine.ext import db class airline (db.Model): name = Db.StringProperty (required = true) Description = db.TextProperty () Note = DB. TextProperty () class meta: verbose_name_plural = 'airlines' def __unicode __ (self): return self.name
is my admin.py :
From django.contrib import admin fromairlines. Model Import * admin.site.register (Airline)
I am a GAE runner and receive the following error:
django-nonrel with administrator Can not use Google App Engine model I
You can not use the app engine model with the Django-nullal You have to use the DJ model This way your code becomes reusable and allows you to close the app engine and use your code with another code.
Comments
Post a Comment