Re: Error: One or more models did not validate: admin.logentry: 'user' has a relation with model <class 'django.contrib.auth.models.User'>, which has either not been installed or is abstract.

1,473 views
Skip to first unread message

Tom Evans

unread,
Nov 1, 2012, 8:45:50 AM11/1/12
to django...@googlegroups.com
On Thu, Nov 1, 2012 at 8:02 AM, Hendrikus Godvliet
<hendriku...@gmail.com> wrote:
> Hello every one
>
> I am new to Django - I am on Google Python App engine and try to work with
> Django to understand more about how Google App engine works.
> For that i follow the tutorial on
> https://docs.djangoproject.com/en/1.4/intro/tutorial01/ I finist tutorial 01
> and started with tutorial 02 the Admin part.
>
> First of all do i need this admin part to work with Django for a simple app?
>
> Second:
> I get this message with:
> $ python manage.py syncdb
> Error: One or more models did not validate: admin.logentry: 'user' has a
> relation with model <class 'django.contrib.auth.models.User'>, which has
> either not been installed or is abstract.
>

The error message says that you have not added "django.contrib.auth"
to INSTALLED_APPS in your settings.py, as far as I can tell.

However, I have no experience of Django on app engine. App engine uses
a customized version of Django, since App Engine does not support
relational databases. This "django-nonrel" (non relational) may not
behave in a way compatible with the tutorial, I don't know. If you are
just starting with Django, I would stick to a more standard Django
setup.

Cheers

Tom

Hendrikus Godvliet

unread,
Nov 1, 2012, 3:56:51 PM11/1/12
to django...@googlegroups.com, teva...@googlemail.com
Tom thank you for helping me on my way in to Django!

I uncomment: 
INSTALLED_APPS = (
    'django.contrib.auth',

and with 
$ python manage.py syncdb 

I still get the eror:
 Error: One or more models did not validate: admin.logentry: 'user' has a  relation with model <class django.contrib.auth.models.User'>, which has either not been installed or is abstract. 

But than I also uncommented:

    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.sites',
    'django.contrib.messages',
    'django.contrib.staticfiles',

And everything started to work.

<However, I have no experience of Django on app engine. App engine uses a customized version of Django, since <App Engine does not support relational databases. This "django-nonrel" (non relational) may not 

No I don't use Django in Appengine I only try to learn from Django for Appengine.

Hendrikus


Op donderdag 1 november 2012 14:46:29 UTC+2 schreef Tom Evans het volgende:
Reply all
Reply to author
Forward
0 new messages