polls/ __init__.py admin.py apps.py migrations/ __init__.py models.py tests.py urls.py views.py
luego sigue incrustar el codigo en el archivo
from django.urls import path from . import views urlpatterns = [ path('', views.index, name='index'), ]
seguido de agregar el siguiente codigo al siguiente directorio
mysite/urls.py
from django.contrib import admin
from django.urls import include, path
urlpatterns = [
path('polls/', include('polls.urls')),
path('admin/', admin.site.urls),
]
De ahi en teoria al ejecutar en la consola $python manage.py runserver debria de poder ver el hola mundo y solo me da el error de
Not Found
The requested URL / was not found on this server.
cual seria mi error agradecreia mucho una ayuda.....
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/fb4c03f1-8d23-4ca0-bb11-b0a0a9ba1145%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.