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 from airlines. 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

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -