On Mon, Nov 26, 2018 at 04:34:42PM +0200, Yavin Aalto Arba wrote:
> It's kinda all over the place.
> 
> 1. conventions:
> urlpatterns is a list not a tuple
> 2.
> 'restaurants.views',  without include? what's this for?
> 
> 3. You did not close the parenthesis correctly in the second item, here's
> how its supposed to be written:
> 
> path('',ListView.as_view(model=Food,
> template_name='restaurants/index.html',  name='index'))
> 
> 
> 4.you are using path and instead of path_re

5. You should either escape the backslashes in your regular
   expressions, or use raw string literals.

-- 
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 [email protected].
To post to this group, send email to [email protected].
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/20181126144236.GL8269%40koniiiik.org.
For more options, visit https://groups.google.com/d/optout.

Reply via email to