您可以在这里看到所有的文件,os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'ten_project.settings')
django.setup()
import random
from ten_project.ten_app.models import AccessRecord
我必须创建一个自定义的wordpress主题。我仍然不知道它应该是什么样子,所以查看了20个主题文件,以找出我可以定制的。因此,我在header.php文件中搜索菜单构建函数,找到了以下内容
<?php /* Our navigation menu. If one isn't filled out, wp_nav_menu falls back to wp_page_menu. The menu assiged to the primary position is the one used. If none is assigned, the menu with the lo