Only one URL configuration is required to enable users to access the Signup page. Open the
/.../crmeasy/crmapp/urls.py file and add the URL beneath the configurations that are already there.
1 2 3 4
# Subscriber related URLs url(r'^signup/$', 'crmapp.subscribers.views.subscriber_new', name='sub_new' ),
Lines 2-4: This is similar to the other URL configurations. There are three arguments passed to the url function. The first argument is the regex that defines the relative URL path that applies to this configuration. The second argument points to the view that was created to handle the Signup form. The last argument is the name of this URL configuration.
Execute these commands to commit your changes in Git.
1 2 3 4 5
# add files (venv)$ git add . # commit files (venv)$ git commit -m "created the subscriber URL"