我刚刚创建了一个 Django 项目
python manage.py startapp smartrecruitment
然后我运行了一个数据库同步
python manage.py syncdb
Operations to perform:
Apply all migrations: admin, contenttypes, auth, sessions
Running migrations:
Applying contenttypes.0001_initial... OK
Applying auth.0001_initial... OK
Applying admin.0001_initial... OK
Applying sessions.0001_initial... OK
并添加了我的超级用户,但我无法在浏览器中访问 /admin。我尝试执行以下命令来授予 apache 权限,但没有运气。
sudo chown apache <folder_containing_db.sqlite3>
sudo chown apache db.sqlite3