from django.conf.urls import include, url
from django.contrib import admin
urlpatterns = [
url(r'^boutique/', include('boutique.urls')) ,
url(r'^admin/', admin.site.urls),
]
boutique (app)
urls.py
from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^$', views.index, name='index'),
]
views.py
from django.http import HttpResponse
def index(request):
return HttpResponse ("Hello, world...")
127.0.0.1:8000
Using the URLconf defined in beaumarche.urls, Django tried these URL patterns, in this order:
1.^boutique/
2^admin/
The empty path didn't match any of these
--
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/5431a0c8-1365-4a73-8026-25c57c2f775b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hello
First : thanks for your Help. It's very easy, but I need 4
hours...to understand... don't panic :-!
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/CABF8kZPpN_nQ1Xkjq-5%2BWBip1EMxtY-sUuo9grZ4ZnttL5hRag%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.