Could you post a few more lines of this settings.py? Preferably the whole
DATABASES definition.
Just in case there actually is a weird invisible character try retyping
'postgresql', but more likely it looks as if you are using wrong quotation
marks other than ' or ". I dont even have on my keyboard whats in your
error message.
Am Mittwoch, 14. Februar 2018 01:17:43 UTC+1 schrieb Joe:
>
> 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/4a39755e-c408-4f6f-93a2-bde83fbc2bbd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.