title: Reverse for 'register' not found. 'register' is not a valid view function or pattern name
body: <p>I'm trying to make a simple app that uses the django built-in User model. I have created a registration page, but when I run the server, I get this error at the index page. Here's the code I'm using:</p>
  
  <p>Registration.html</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  
  {% extends "basic/base.html" %}
  
  {% block title_block %}
      &lt;title&gt;Registration&lt;/title&gt;
  {% endblock title_block %}
  
  {% block body_block %}
      &lt;div class="jumbotron"&gt;
          {% if registered %}
              &lt;h1&gt;Thank you for registering&lt;/h1&gt;
          {% else %}
              &lt;h1&gt;Register here!&lt;/h1&gt; 
              &lt;h3&gt;Fill out the form: &lt;/h3&gt;
  
              &lt;form enctype="multipart/form-data" method="post"&gt;
                  {% csrf_token %}
                  {{userForm.as_p}}
                  {{profileForm.as_p}}
                  &lt;input type="submit" value="Register" name=""&gt;
              &lt;/form&gt;
          {% endif %}
      &lt;/div&gt;
  {% endblock body_block %}
  </code></pre>
  
  <p>Views.py for the 'register' method</p>
  
  <pre><code>def register(request):
  
      registered = False
  
      if(request.method == 'POST'):
          userForm = forms.UserForm(data=request.POST)
          profileForm = forms.UserProfileInfoForm(data=request.POST)
  
          if((userForm.is_valid()) and (profileForm.id_valid())):
              user = userForm.save()
              user.set_password(user.password)
              user.save()
  
              profile = profileForm.save(commit=False)
              profile.user = user
  
              if('profileImage' in request.FILES):
                  profile.profileImage = request.FILES['profileImage']
  
              profile.save()
  
              registered = True
  
          else:
              print(userForm.errors, profileForm.errors)
  
      else:
          userForm = forms.UserForm()
          profileForm = forms.UserProfileInfoForm()
  
      return render(request, 'basic/registration.html', {'userForm':userForm, 'profileForm':profileForm, 'registered':registered})
  </code></pre>
  
  <p>This is the urls.py for the project</p>
  
  <pre><code>from django.contrib import admin
  from django.urls import path, include
  from basic import views
  
  urlpatterns = [
      path('', views.index, name='index'),
      path('admin/', admin.site.urls),
      path('basic/', include('basic.urls', namespace='basic'))
  ]
  </code></pre>
  
  <p>This is the urls.py for the basic app</p>
  
  <pre><code>from django.urls import path
  from . import views
  
  app_name = 'basic'
  
  urlpatterns = [
      path('register/', views.register)
  ]
  </code></pre>
  
  <p>And the link to the page in base.html</p>
  
  <pre><code>&lt;a class="nav-link" href="{% url 'basic:register' %}"&gt;Register&lt;/a&gt;
  </code></pre>
  
  <p>What can cause the error here?</p>