Greetings django team, I'm a newbie with this framework but I have 
experience with python, I did the first tutorial and it throws me a 404 
error, I saw that in the previous versions we used a r'formated 'string and 
indicated the beginning ^ and the end $ but in version 2.1 is no longer 
used, check and I do not know where the error comes from, I will leave some 
captures, the IRC room is down I hope answers from this wonderful community

tuto/urls.py
 from django.contrib import admin
 from django.urls import include, path

 urlpatterns = [
     path('polls/', include('polls.urls')),
     path('admin/', admin.site.urls),
 ]





polls/urls.py
from django.urls import path
from . import views

urlpatterns = [
     path(' ', views.index, name='index'),
 ]

polls/views.py
from django.shortcuts import render
from django.http import HttpResponse as HR
# Create your views here.

def index(request):
       return HR("hola estas en el index de polls")
 

mi internet its very laggy

-- 
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/a331d5ef-7081-4cc7-a938-5a1d521a99cd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to