Page not found (404) with Django
<p>I'm learning Django Framework and I'm following a tutorial based on Django 1.8.
I have Django 1.10 on my Mac OSX and I get an error : <code>Page not found</code></p>

<p>I started a project which is named <code>"Crepes_bretonnes"</code> and I created an app : <code>"Blog"</code>.</p>

<p>The blog urls.py looks like : </p>

<pre><code>from django.conf.urls import url
from django.contrib import admin
from blog.views import home

urlpatterns = [
    url(r'^accueil/$', home),
]
</code></pre>

<p>The blog views.py looks like : </p>

<pre><code>#-*- coding: utf-8 -*-

from django.shortcuts import render
from django.http import HttpResponse    # Ce module permet de retourner une rÃ©ponse (texte brute, HTML, JSON, ...) depuis une string

# Create your views here.

def home(request) :

    text = """&lt;h1&gt;Bienvenue sur mon blog ! &lt;/h1&gt;
            &lt;p&gt; EditÃ© sous Django 1.10 &lt;/p&gt;"""
    return HttpResponse(text)
</code></pre>

<p>And the crepes_bretonnes urls.py looks like :</p>

<pre><code>from django.conf.urls import url, include
from django.contrib import admin

urlpatterns = [
    url(r'^blog/', include('blog.urls'))
]
</code></pre>

<p>However, when I'm running the server, I get this error (picture) and I don't understand why it's not working :/</p>

<p><a href="http://i.stack.imgur.com/bLqJj.png" rel="nofollow"><img src="http://i.stack.imgur.com/bLqJj.png" alt="enter image description here"></a></p>

<p>As I said, I'm beginning Django so if anyone can explain me the problem ?</p>

<p>Thank you !</p>

<p>Your crepes_bretonnes urls are including blog urls, so your blog urls are only visible from <code>blog/</code> url. </p>

<p>If you want to get to your view you need to open this url:</p>

<p><code>/blog/accueil/</code></p>

python django