Django _view_() takes 1 positional argument but 2 were given
<p>I have faced a problem with my django project. 
It is as following: I had a simple regexp to match the users</p>

<pre><code>url(r'^users/\w+/$', views.user)
</code></pre>

<p>And it worked perfectly.</p>

<p>Then I changed the regexpt, because there was an update in users' logins, so now it is (I added the dot symbol):</p>

<pre><code>url(r'^users/([a-zA-Z0-9.]+)/$', views.user)
</code></pre>

<p>And now I am getting the "user() takes 1 positional argument but 2 were given" django error.</p>

<p>The view is defined like this:</p>

<pre><code>def user(request):
    return render(request, 'home/user_page.html')
</code></pre>