Request Method: GET Request URL: http://127.0.0.1:8000/ Django Version: 1.10.2 Python Version: 3.5.2 Installed Applications: ['django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'bookings'] Installed Middleware: ['django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware'] Template error: In template C:\Users\Kadhafu\mysite\templates\home.html, error at line 0 Reverse for 'views.home_page' with arguments '()' and keyword arguments '{}' not found. 0 pattern(s) tried: [] 1 : {% extends "layout.html" %} 2 : 3 : {% load static from staticfiles %} 4 : 5 : {% block title %}Online Booking!{% endblock %} 6 : 7 : {% block content %} 8 : <div class="page-header" 9 : <h1>Welcome</h1> 10 : </div> Traceback: File "C:\Users\Kadhafu\Envs\myproject\lib\site-packages\django\core\handlers\exception.py" in inner 39. response = get_response(request) File "C:\Users\Kadhafu\Envs\myproject\lib\site-packages\django\core\handlers\base.py" in _get_response 187. response = self.process_exception_by_middleware(e, request) File "C:\Users\Kadhafu\Envs\myproject\lib\site-packages\django\core\handlers\base.py" in _get_response 185. response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\Kadhafu\mysite\mysite\views.py" in home_page 5. return render(request, 'home.html') File "C:\Users\Kadhafu\Envs\myproject\lib\site-packages\django\shortcuts.py" in render 30. content = loader.render_to_string(template_name, context, request, using=using) File "C:\Users\Kadhafu\Envs\myproject\lib\site-packages\django\template\loader.py" in render_to_string 68. return template.render(context, request) File "C:\Users\Kadhafu\Envs\myproject\lib\site-packages\django\template\backends\django.py" in render 66. return self.template.render(context) File "C:\Users\Kadhafu\Envs\myproject\lib\site-packages\django\template\base.py" in render 208. return self._render(context) File "C:\Users\Kadhafu\Envs\myproject\lib\site-packages\django\template\base.py" in _render 199. return self.nodelist.render(context) File "C:\Users\Kadhafu\Envs\myproject\lib\site-packages\django\template\base.py" in render 994. bit = node.render_annotated(context) File "C:\Users\Kadhafu\Envs\myproject\lib\site-packages\django\template\base.py" in render_annotated 961. return self.render(context) File "C:\Users\Kadhafu\Envs\myproject\lib\site-packages\django\template\loader_tags.py" in render 174. return compiled_parent._render(context) File "C:\Users\Kadhafu\Envs\myproject\lib\site-packages\django\template\base.py" in _render 199. return self.nodelist.render(context) File "C:\Users\Kadhafu\Envs\myproject\lib\site-packages\django\template\base.py" in render 994. bit = node.render_annotated(context) File "C:\Users\Kadhafu\Envs\myproject\lib\site-packages\django\template\base.py" in render_annotated 961. return self.render(context) File "C:\Users\Kadhafu\Envs\myproject\lib\site-packages\django\template\defaulttags.py" in render 439. url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app) File "C:\Users\Kadhafu\Envs\myproject\lib\site-packages\django\urls\base.py" in reverse 91. return force_text(iri_to_uri(resolver._reverse_with_prefix(view, prefix, *args, **kwargs))) File "C:\Users\Kadhafu\Envs\myproject\lib\site-packages\django\urls\resolvers.py" in _reverse_with_prefix 392. (lookup_view_s, args, kwargs, len(patterns), patterns) Exception Type: NoReverseMatch at / Exception Value: Reverse for 'views.home_page' with arguments '()' and keyword arguments '{}' not found. 0 pattern(s) tried: []
need help please
On Mon, Oct 24, 2016 at 3:10 PM, <django-users@googlegroups.com> wrote:
- Read Only by user in Django Admin - 1 Update
- Running django on demand via my PyQt4 Standalone app - 1 Update
- Methods in Models - 2 Updates
- Django project structure - 1 Update
- transferring data between Postgres databases - 4 Updates
- Multiple Types of Account with Abstract User - 5 Updates
- Am I missing a design pattern? My views code somehow isn't as elegant as it should be... - 2 Updates
- How to: Django development and debugging - 7 Updates
- Django Unleashed, custom user model - 1 Update
- "canonical" views.py in Django Unleashed book, Chapter 22 - 1 Update
Naveen Kumar <k.v.naveen7@gmail.com>: Oct 24 05:45AM -0700
Hello,
This looks perfect when i don't have any fields in list_editable.
This code is not working with list_editable.
On Sunday, February 8, 2015 at 8:14:26 PM UTC+5:30, Hangloser Firestarter ...more
Dam ian <damian.wilczek.1990@gmail.com >: Oct 23 06:20PM -0700
Hi,
I work on some Smart Home UI / Controlling system using PyQt4, now I'm in
the point where i need a Web Server to share a "Admin Page" to let the user
change some Smart Home settings (via ...more
Deep Shah <deepshah.91@gmail.com>: Oct 24 12:47AM -0700
What kind of methods should be part of the models and what should be in the
views? Can anyone give me an example of a method which should be in a Model
than the views file?
...more
Asad Jibran Ahmed <surfer.a1@gmail.com>: Oct 24 12:14PM +0400
Any method that works *only* with the model data and is used in multiple
places in the application should be a part of the model.
Next, if you have functions that operate on multiple pieces of ...more
Deep Shah <deepshah.91@gmail.com>: Oct 24 12:45AM -0700
I have a django project which is a loyalty program for restaurants. The
different database tables are- Users (and extending it with User Profiles),
Restaurant Company (the entire chain), Branches, ...more
Mike Dewhirst <miked@dewhirst.com.au>: Oct 24 03:04PM +1100
I have a user who has done a lot of work (instead of playing) in the
staging server and now wants to get that work into the production database.
I'm about to research selective dump and load ...more
"Aaron C. de Bruyn" <aaron@heyaaron.com>: Oct 23 09:08PM -0700
If you're talking about migrating data using tools outside of django,
I've used SQLWorkbench[0] in the past.
I currently use it to selectively sync a handful of tables out of a
~900 table database ...more
Mike Dewhirst <miked@dewhirst.com.au>: Oct 24 04:10PM +1100
On 24/10/2016 3:08 PM, 'Aaron C. de Bruyn' via Django users wrote:
> I've used SQLWorkbench[0] in the past.
> I currently use it to selectively sync a handful of tables out of a
> ~900 table ...more
Vineet Kothari <me.vineetkothari@gmail.com>: Oct 24 12:30PM +0530
You will have to dump the back up file for that you can either use GUI
based tool as other friends has suggested or you can use command line
.There may be more ways please read two scoops of Django ...more
Shazia Nusrat <shazianusra@gmail.com>: Oct 23 05:37PM -0700
Hi,
I am trying to create multiple types of users in my django e-commerce
project by extending built-in Django user model but I am having issue.
Would appreciate if someone can guide me to right ...more
Asad Jibran Ahmed <surfer.a1@gmail.com>: Oct 24 06:53AM +0400
Did you change the AUTH_USER_MODEL setting *after *you had already run python
manage.py migrate once (or more) before? From the error I guess what's
happening is that you already have a User model ...more
Shazia Nusrat <shazianusra@gmail.com>: Oct 23 08:18PM -0700
I've deleted DB and migrations I had previously.
But still can't figure this out. What I need is....that multiple shops
needs to get registered with my ecommerce store as well as designers and as ...more
Asad Jibran Ahmed <surfer.a1@gmail.com>: Oct 24 08:26AM +0400
In that case I suggest you create multiple models, one for each type of
user. For example, you could have a SupplierProfile, DesignerProfile, etc...
The reason I suggest multiple profile models, ...more
Shazia Nusrat <shazianusra@gmail.com>: Oct 23 09:55PM -0700
I will try it but I have a question that how can I link this to
Django-regisration-redux app. Like if somebody tries to sign in they should
have registration choices within registration app to save ...more
ludovic coues <couesl@gmail.com>: Oct 23 11:52PM +0200
Python doesn't have special structure to separate internal and
interface. There is a convention of prefixing the internal with an
underscore. That's all.
So having IPInfo.request being part of ...more
Vinicius Assef <viniciusban@gmail.com>: Oct 24 12:57AM -0200
Inline answers follow...
> Tried to look up service layers, but couldn't find examples of how it was
> supposed to look like - is it supposed to be like a class, and I toss the
...more
Derek <gamesbook@gmail.com>: Oct 23 06:20AM -0700
Is VS Code Editor available on Linux platforms?
On Friday, 21 October 2016 02:30:45 UTC+2, Don Thilaka Jayamanne wrote:
...more
"Luis Zárate" <luisza14@gmail.com>: Oct 23 10:38AM -0600
I rarelly debug code with django, with external utility, just trace stack
when errors appears, buy when I need it I use pydev over Aptana, it has
heap monitor, breakpoints, step by step run and ...more
Don Thilaka Jayamanne <don.jayamanne@gmail.com>: Oct 24 09:56AM +1100
@Derek, yes VS Code Editor is available on Linux platforms.
Have a look here:
https://code.visualstudio.com/Download
...more
Don Thilaka Jayamanne <don.jayamanne@gmail.com>: Oct 24 09:58AM +1100
@Luis Zárate
>I dislike VS as IDE but
Any particular reason for this?
>great if you want to support Django there
Django is supported today (including template debugging). Right now i'm ...more
Don Thilaka Jayamanne <don.jayamanne@gmail.com>: Oct 23 04:06PM -0700
@Derek, yes VS Code Editor is available on Linux platforms.
Have a look here:
https://code.visualstudio.com/Download
On Monday, 24 October 2016 00:20:26 UTC+11, Derek wrote:
...more
Don Thilaka Jayamanne <don.jayamanne@gmail.com>: Oct 23 04:08PM -0700
@Luis Zárate
>I dislike VS as IDE but
Please remember, this is Visual Studio Code (cross platform, open source,
free) and not to be confused with Visual Sutdio IDE (full blown IDE runs ...more
Don Thilaka Jayamanne <don.jayamanne@gmail.com>: Oct 23 04:13PM -0700
Hi ,
This Python Extension
<https://marketplace.visualstudio.com/items? > tooitemName=donjayamanne.python
supports the features you have mentioned.
The difference is:
- Visual Studio Code is ...more
Andrew Pinkham <ml@andrewsforge.com>: Oct 23 11:36AM -0400
Hi Malik,
I'm sorry to hear that you are still having trouble with Chapter 22. I've attempted to answer your questions below based on the limited information you have provided. You might find a ...more
Andrew Pinkham <ml@andrewsforge.com>: Oct 23 11:09AM -0400
Hi Malik,
> I found that surprising, but then I'm somewhat isolated so don't claim to know what other folks are doing. Why is this the common practice? Just to save time because the tools are ...more
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page.
To unsubscribe from this group and stop receiving emails from it send an email to django-users+unsubscribe@googlegroups.com .
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-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/CAF-G%2B0CQ9GmWLdRwRXLAy-YX7ZZ76Z8TPPejQkV%3DxDsLj-hw3A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment