Learn Django

New Comm - Create URL

Users can create new communication records by accessing '/comm/new/'. This URL config will be added to the project URLs file.

Open the /.../crmeasy/crmapp/urls.py file in your IDE. Locate the # Communication related URLs section and make it look as follows:

1
2
3
4
5
# Communication related URLs
url(r'^comm/new/$',
    'crmapp.communications.views.comm_cru', name='comm_new'
),
url(r'^comm/(?P<slug>[\w-]+)/', include(comm_urls)),

Commit Changes

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 new communication URL"

Track your progress with a free account