The path to the admin interface is usually set in My_project, using django-admin.py startproject my_project
In the urls.py file in the directory, you can see
From Django.conf.urls import include, urlfrom django.contrib import adminurlpatterns = [ # Examples: # URL (r ' ^$ ', ' My_project.views.home ', name= ' home '), # URL (r ' ^blog/', include (' Blog.urls ')), URL (r ' ^admin/', include ( Admin.site.urls)), URL (r ' ^$ ', ' my_project.views.first_page '), url (r ' ^app1/', include (' App1.urls ')),]
The data model student to admin management interface management, you need to register the model in admin
In the app's admin.py, add:
From Django.contrib import adminfrom app1.models import student# Register your models Here.admin.site.register (Student)
Visit http://localhost:8000/admin/
After landing, we can manage our model.
You can see that you can also manage users and groups
The interface of the Chinese is very simple, only need to setting.py in the Language_code = 'en-us ' modified to ZH-CN
The management interface of Python learning--django--django