Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

错误的代码放上了折腾好久 #43

Open
L00J opened this issue Jun 25, 2021 · 1 comment
Open

错误的代码放上了折腾好久 #43

L00J opened this issue Jun 25, 2021 · 1 comment

Comments

@L00J
Copy link

L00J commented Jun 25, 2021

python manage.py loaddata init.json

port = int(port, 10)
ValueError: Problem installing fixture '/home/admin/workspace/develop-django/tmp/drf_admin/init.json': Could not load system.Permissions(pk=1): invalid literal for int() with base 10: 'redis'
(env3.6.2) [admin@us-cor

@TianPangJi
Copy link
Owner

python manage.py loaddata init.json

port = int(port, 10)
ValueError: Problem installing fixture '/home/admin/workspace/develop-django/tmp/drf_admin/init.json': Could not load system.Permissions(pk=1): invalid literal for int() with base 10: 'redis'
(env3.6.2) [admin@us-cor

python manage.py loaddata init.json

port = int(port, 10)
ValueError: Problem installing fixture '/home/admin/workspace/develop-django/tmp/drf_admin/init.json': Could not load system.Permissions(pk=1): invalid literal for int() with base 10: 'redis'
(env3.6.2) [admin@us-cor

python manage.py loaddata init.json

port = int(port, 10)
ValueError: Problem installing fixture '/home/admin/workspace/develop-django/tmp/drf_admin/init.json': Could not load system.Permissions(pk=1): invalid literal for int() with base 10: 'redis'
(env3.6.2) [admin@us-cor

您这边是在Linux下运行的吧?
项目还未尝试在Linux下运行,具体会有什么异常目前未验证。
如果是在Linux下运行,可以帮助写下注意事项,具体报错原因和解决方案等。
感谢😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants