The Django admin interface must be added to the URLconf file so that you can access it from a web browser. Django automatically puts the following line in the urls.py file. However, it is initially commented out and therefore is inactive:
(r'^admin/', include('django.contrib.admin.urls'))
Did you Know?
You don't have to use the default value of admin as the web location for the admin interface. You can specify any name you want. For example:
(r'^WebMaster/', include('django.contrib.admin.urls'))
Try It Yourself: Add Admin Access to the URLconf FileIn this section, you enable access to the admin interface for a web browser by adding the default entry for the admin application to the urls.py file.
From the main page in Django's admin interface, you can add users, groups, and sites and manage any objects that have had the admin interface activated. |