On 16/01/2017 5:01 AM, 'Peter Müller' via Django users wrote:
Hello everybody.
I just began learning how to use django. So I wanted to include data
from the database in a testwebsite.
Therefore I made a new app and created a model called "user" and
You don't need to create your own user model. There's one in the box ...
from django.contrib.auth.models import User
Try using that and see if your error goes away. Also, you should work
through the tutorial to get a handle on how it is used ...
https://docs.djangoproject.com/en/1.10/intro/tutorial01/
As you are a Django beginner I assume you will try one or two small
projects before tackling a major one so just going with the standard
User model should be no impediment in the early stages. Then maybe look
through the docs to see how to customise/replace that User model.
Cheers
Mike
a view that should fill a template with data from that model.
To do this (according to Django 1.10 Docs/Tutorial) I need to import
the model class into the view file and for example use models.user.all().
However on import of the view Django complains about
|
django.core.exceptions.AppRegistryNotReady:Appsaren't loaded yet
|
What is the solution to that problem?
Greetings
Peter
--
You received this message because you are subscribed to the Google
Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to django-users+unsubscr...@googlegroups.com
<mailto:django-users+unsubscr...@googlegroups.com>.
To post to this group, send email to django-users@googlegroups.com
<mailto:django-users@googlegroups.com>.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/31442c04-4da4-496b-8611-9d7b70e36138%40googlegroups.com
<https://groups.google.com/d/msgid/django-users/31442c04-4da4-496b-8611-9d7b70e36138%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Django
users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/5257db09-88d7-c527-de9d-223b12299bde%40dewhirst.com.au.
For more options, visit https://groups.google.com/d/optout.