Reverse for 'home' with arguments '()' and keyword arguments '{}' not found. 0 pattern(s) tried: []
<p>The name of my project is 'trydjango19' and I have two apps: 'newsletter' and 'posts'.</p>

<p>The trydjango19/urls.py is:</p>

<pre><code>urlpatterns = [
    url(r'^admin/', admin.site.urls),
    url(r'^posts/', include("posts.urls", namespace='posts')),
    url(r'^', include("newsletter.urls", namespace='newsletter')),]
</code></pre>

<p>The newsletter/urls.py is:</p>

<pre><code>urlpatterns = [
    url(r'^', 'newsletter.views.home', name='home'),]
</code></pre>

<p>The newsletter/view.py is:</p>

<pre><code>def home(request):
    title = 'ОСТАВЬТЕ ЗАЯВКУ'
    form = SignUpForm(request.POST or None)
    context = {
        "title": title,
        "form": form
    }
    if form.is_valid():
        instance = form.save(commit=False)

        full_name = form.cleaned_data.get("full_name")
        if not full_name:
            full_name = "anonymous"
        instance.full_name = full_name
        instance.save()
        context = {
            "title": "Ваша заявка принята!"
    }

    if request.user.is_authenticated() and request.user.is_staff:
        queryset = SignUp.objects.all().order_by('-timestamp') 
        context = {
            "queryset": queryset
        }

    return render(request, "newsletter/home.html", context)
</code></pre>

<p>The newsletter/templates/newsletter/home.html is:</p>

<pre><code>{% extends 'newsletter/base.html' %}
{% load crispy_forms_tags %}
{% load staticfiles %}

{% block head_title %}Welcome | {{ block.super }}{% endblock %}

{% block jumbotron %}
    {% if not request.user.is_authenticated %}

            &lt;img class="close" onclick="show('none')" src="{% static 'img/close.png' %}"&gt;

            &lt;p class='lead text-align-center'&gt;{{ title }}&lt;/p&gt;

            &lt;form method='POST' action=''&gt;{% csrf_token %}
                {{ form|crispy }}
                &lt;p class='text-align-center'&gt;
                    &lt;input class='btn btn-primary' type='submit' value='Откликнуться' /&gt;
                &lt;/p&gt;
            &lt;/form&gt;
        &lt;/div&gt;
&lt;img src="{% static 'img/pony.png' %}" width='380px' /&gt;
... etc.
</code></pre>

<p>I tried with urls.py in many ways, with 'namespace' and 'app_name' but I still do not understand how it should run properly</p>

<pre><code>In template /home/pavel/DJANG/django19/src/newsletter/templates/newsletter/home.html, error at line 0
Reverse for 'home' with arguments '()' and keyword arguments '{}' not found. 0 pattern(s) tried: []
</code></pre>