I have installed django, Postgresql, and psycopg2 and went to migrate a
project to a new database I created on postgresql, This is the error
message I got.
Traceback (most recent call last):
File "manage.py", line 15, in <module>
execute_from_command_line(sys.argv)
File
"/Users/JosephConrad/Desktop/Joetestsite/lib/python3.6/site-packages/django/core/management/__init__.py",
line 371, in execute_from_command_line
utility.execute()
File
"/Users/JosephConrad/Desktop/Joetestsite/lib/python3.6/site-packages/django/core/management/__init__.py",
line 317, in execute
settings.INSTALLED_APPS
File
"/Users/JosephConrad/Desktop/Joetestsite/lib/python3.6/site-packages/django/conf/__init__.py",
line 56, in __getattr__
self._setup(name)
File
"/Users/JosephConrad/Desktop/Joetestsite/lib/python3.6/site-packages/django/conf/__init__.py",
line 43, in _setup
self._wrapped = Settings(settings_module)
File
"/Users/JosephConrad/Desktop/Joetestsite/lib/python3.6/site-packages/django/conf/__init__.py",
line 106, in __init__
mod = importlib.import_module(self.SETTINGS_MODULE)
File
"/Users/JosephConrad/Desktop/Joetestsite/lib/python3.6/importlib/__init__.py",
line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 978, in _gcd_import
File "<frozen importlib._bootstrap>", line 961, in _find_and_load
File "<frozen importlib._bootstrap>", line 950, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 655, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 674, in exec_module
File "<frozen importlib._bootstrap_external>", line 781, in get_code
File "<frozen importlib._bootstrap_external>", line 741, in source_to_code
File "<frozen importlib._bootstrap>", line 205, in
_call_with_frames_removed
File
"/Users/JosephConrad/Desktop/Joetestsite/MySite/BudgetSite/settings.py",
line 77
‘postgresql’: {
^
SyntaxError: invalid character in identifier
I am able to migrate with sqllite but I can't migrate to postgresql.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/8f699b48-4f09-4b55-a8d1-c3dfbe5a4166%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.