django.core.exceptions.AppRegistryNotReady: Apps aren't loaded yet
> <mailto:django-users+unsub...@googlegroups.com>.
For the traceback: http://pastebin.com/Wy7And6M
And the views configuration: http://pastebin.com/q0V3bQay
thanks
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+unsubscribe@googlegroups.com.
To post to this group, send email to django...@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/d615e2de-e205-4536-bc08-771e62b59e0a%40googlegroups.com.
What does the project structure look like?
Is Stranvr the name of the project?
It looks to me like you haven't created an app - or have you called your app "db_testing" and the project "Stranvr"?Because you first have to create you project with "django-admin.py startproject <project_name>" and then within that created directory run either "./manage.py startapp <app_name>" or "django-admin.py startapp <app_name>".
Regards,Andréas
2017-01-16 21:23 GMT+01:00 'Peter Müller' via Django users <django...@googlegroups.com>:
Well else python doesn't find the view.py file?
Am Montag, 16. Januar 2017 21:20:53 UTC+1 schrieb Daniel Roseman:On Monday, 16 January 2017 15:53:56 UTC, Peter Müller wrote:For the traceback: http://pastebin.com/Wy7And6M
And the views configuration: http://pastebin.com/q0V3bQay
thanks
PeterThe traceback shows that you are importing your views module in the __init__.py of your app. Don't do that.--DR.
--
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...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
You import views in your urls.py file. Your settings.py file has a constant pointing to where the urls.py file is located for the project. Your urls.py file is the one that actually utilizes the views file.
--
You import views in your urls.py file. Your settings.py file has a constant pointing to where the urls.py file is located for the project. Your urls.py file is the one that actually utilizes the views file.
From: 'Peter Müller' via Django users [mailto:django...@googlegroups.com]
Sent: Monday, January 16, 2017 2:23 PM
To: Django users
Subject: Re: Am I stupid or is there an essential error in Django 1.10 Docs?
Well else python doesn't find the view.py file?
Am Montag, 16. Januar 2017 21:20:53 UTC+1 schrieb Daniel Roseman:On Monday, 16 January 2017 15:53:56 UTC, Peter Müller wrote:
For the traceback: http://pastebin.com/Wy7And6M
And the views configuration: http://pastebin.com/q0V3bQay
thanks
Peter
The traceback shows that you are importing your views module in the __init__.py of your app. Don't do that.
--
DR.
--
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...@googlegroups.com.
To post to this group, send email to djang...@googlegroups.com.
On Monday 16 January 2017 07:49:00 'Peter Müller' via Django users wrote:
> Also I used the tutorial just that I abstracted the concept since I
> think the tutorial is more than bad.
Awaiting your PRs.
--
Melvyn Sopacua
https://github.com/django/django/pulls
The tutorial has a very logical order, going from the database abstraction up to the template layer and beyond. But feel free to rewrite it and submit it to the project.
I never follow tutorials to the letter - for example back when I did it in Django 1.3, my polls app had an ip-based rate limiter tucked onto existing code - but it certainly is one of the top tutorials for a framework I've seen.
> > Melvyn Sopacua
--
Melvyn Sopacua
"Each view is responsible for doing one of two things: Returning an
HttpResponse object containing the content for the requested page, or
raising an exception such as Http404. The rest is up to you."
As a matter of fact it is easier to use Class based views usually, so
calling render explicitly is not that common, but function based views
are easier to understand initially.