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

python3 manage.py makemigrations 报错 #2

Open
zeusYi opened this issue Oct 17, 2019 · 1 comment
Open

python3 manage.py makemigrations 报错 #2

zeusYi opened this issue Oct 17, 2019 · 1 comment

Comments

@zeusYi
Copy link

zeusYi commented Oct 17, 2019

(newenv) [root@consul-server1 dbm-center]# python3 manage.py makemigrations
Traceback (most recent call last):
File "manage.py", line 20, in
main()
File "manage.py", line 16, in main
execute_from_command_line(sys.argv)
File "/root/dbm-center/newenv/lib/python3.4/site-packages/django/core/management/init.py", line 371, in execute_from_command_line
utility.execute()
File "/root/dbm-center/newenv/lib/python3.4/site-packages/django/core/management/init.py", line 317, in execute
settings.INSTALLED_APPS
File "/root/dbm-center/newenv/lib/python3.4/site-packages/django/conf/init.py", line 56, in getattr
self._setup(name)
File "/root/dbm-center/newenv/lib/python3.4/site-packages/django/conf/init.py", line 43, in _setup
self._wrapped = Settings(settings_module)
File "/root/dbm-center/newenv/lib/python3.4/site-packages/django/conf/init.py", line 106, in init
mod = importlib.import_module(self.SETTINGS_MODULE)
File "/root/dbm-center/newenv/lib64/python3.4/importlib/init.py", line 109, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 2254, in _gcd_import
File "", line 2237, in _find_and_load
File "", line 2226, in _find_and_load_unlocked
File "", line 1200, in _load_unlocked
File "", line 1129, in _exec
File "", line 1467, in exec_module
File "", line 1572, in get_code
File "", line 1532, in source_to_code
File "", line 321, in _call_with_frames_removed
File "/root/dbm-center/dbmc/settings.py", line 159
f'{PROJECT_NAME}-handler': {
^
SyntaxError: invalid syntax

@Neeky
Copy link
Owner

Neeky commented Oct 18, 2019

给一下你的 django 版本号是多少,目前只支持 django-2.x.x

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