Username (leave blank to use ‘sh’): <admin登陆账号> Email address: <你的邮箱地址> Password: <密码> Password (again): <确认密码>
html 中引用js等静态资源
settings.py 文件尾部添加
STATIC_URL = '/static/' HERE = os.path.dirname(os.path.abspath(__file__)) HERE = os.path.join(HERE, '../') STATICFILES_DIRS = ( # Put strings here, like "/home/html/static" or "C:/www/django/static". # Always use forward slashes, even on Windows. # Don't forget to use absolute paths, not relative paths. os.path.join(HERE, 'static/'), )