Skip to content

Instantly share code, notes, and snippets.

@alisonamerico
Created July 28, 2020 21:07
Show Gist options
  • Save alisonamerico/bc3088e79ad00e635c683e9c73c71c18 to your computer and use it in GitHub Desktop.
Save alisonamerico/bc3088e79ad00e635c683e9c73c71c18 to your computer and use it in GitHub Desktop.
erro_username_facebook
snowman on  112 [!?] is 📦 v0.1.0 via 🐍 v3.8.3 took 4m9s
❯ docker-compose up
Starting touristspots_database ... done
Starting snowman_web_1 ... done
Attaching to touristspots_database, snowman_web_1
touristspots_database |
touristspots_database | PostgreSQL Database directory appears to contain a database; Skipping initialization
touristspots_database |
touristspots_database | 2020-07-28 21:02:43.291 UTC [1] LOG: starting PostgreSQL 12.3 (Debian 12.3-1.pgdg100+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 8.3.0-6) 8.3.0, 64-bit
touristspots_database | 2020-07-28 21:02:43.292 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
touristspots_database | 2020-07-28 21:02:43.292 UTC [1] LOG: listening on IPv6 address "::", port 5432
touristspots_database | 2020-07-28 21:02:43.458 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
touristspots_database | 2020-07-28 21:02:44.169 UTC [25] LOG: database system was shut down at 2020-07-28 21:02:31 UTC
touristspots_database | 2020-07-28 21:02:44.207 UTC [1] LOG: database system is ready to accept connections
web_1 | Traceback (most recent call last):
web_1 | File "/usr/local/lib/python3.8/site-packages/django/db/models/options.py", line 581, in get_field
web_1 | return self.fields_map[field_name]
web_1 | KeyError: 'username'
web_1 |
web_1 | During handling of the above exception, another exception occurred:
web_1 |
web_1 | Traceback (most recent call last):
web_1 | File "manage.py", line 21, in <module>
web_1 | main()
web_1 | File "manage.py", line 17, in main
web_1 | execute_from_command_line(sys.argv)
web_1 | File "/usr/local/lib/python3.8/site-packages/django/core/management/__init__.py", line 401, in execute_from_command_line
web_1 | utility.execute()
web_1 | File "/usr/local/lib/python3.8/site-packages/django/core/management/__init__.py", line 395, in execute
web_1 | self.fetch_command(subcommand).run_from_argv(self.argv)
web_1 | File "/usr/local/lib/python3.8/site-packages/django/core/management/base.py", line 328, in run_from_argv
web_1 | self.execute(*args, **cmd_options)
web_1 | File "/usr/local/lib/python3.8/site-packages/django/core/management/base.py", line 366, in execute
web_1 | self.check()
web_1 | File "/usr/local/lib/python3.8/site-packages/django/core/management/base.py", line 392, in check
web_1 | all_issues = self._run_checks(
web_1 | File "/usr/local/lib/python3.8/site-packages/django/core/management/commands/migrate.py", line 64, in _run_checks
web_1 | issues.extend(super()._run_checks(**kwargs))
web_1 | File "/usr/local/lib/python3.8/site-packages/django/core/management/base.py", line 382, in _run_checks
web_1 | return checks.run_checks(**kwargs)
web_1 | File "/usr/local/lib/python3.8/site-packages/django/core/checks/registry.py", line 72, in run_checks
web_1 | new_errors = check(app_configs=app_configs)
web_1 | File "/usr/local/lib/python3.8/site-packages/django/core/checks/urls.py", line 40, in check_url_namespaces_unique
web_1 | all_namespaces = _load_all_namespaces(resolver)
web_1 | File "/usr/local/lib/python3.8/site-packages/django/core/checks/urls.py", line 57, in _load_all_namespaces
web_1 | url_patterns = getattr(resolver, 'url_patterns', [])
web_1 | File "/usr/local/lib/python3.8/site-packages/django/utils/functional.py", line 48, in __get__
web_1 | res = instance.__dict__[self.name] = self.func(instance)
web_1 | File "/usr/local/lib/python3.8/site-packages/django/urls/resolvers.py", line 588, in url_patterns
web_1 | patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
web_1 | File "/usr/local/lib/python3.8/site-packages/django/utils/functional.py", line 48, in __get__
web_1 | res = instance.__dict__[self.name] = self.func(instance)
web_1 | File "/usr/local/lib/python3.8/site-packages/django/urls/resolvers.py", line 581, in urlconf_module
web_1 | return import_module(self.urlconf_name)
web_1 | File "/usr/local/lib/python3.8/importlib/__init__.py", line 127, in import_module
web_1 | return _bootstrap._gcd_import(name[level:], package, level)
web_1 | File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
web_1 | File "<frozen importlib._bootstrap>", line 991, in _find_and_load
web_1 | File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
web_1 | File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
web_1 | File "<frozen importlib._bootstrap_external>", line 783, in exec_module
web_1 | File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
web_1 | File "/code/touristspots/urls.py", line 20, in <module>
web_1 | from touristspots.api.views import FacebookLogin
web_1 | File "/code/touristspots/api/views.py", line 2, in <module>
web_1 | from dj_rest_auth.registration.views import SocialLoginView
web_1 | File "/usr/local/lib/python3.8/site-packages/dj_rest_auth/registration/views.py", line 11, in <module>
web_1 | from dj_rest_auth.registration.serializers import (SocialAccountSerializer,
web_1 | File "/usr/local/lib/python3.8/site-packages/dj_rest_auth/registration/serializers.py", line 171, in <module>
web_1 | class RegisterSerializer(serializers.Serializer):
web_1 | File "/usr/local/lib/python3.8/site-packages/dj_rest_auth/registration/serializers.py", line 173, in RegisterSerializer
web_1 | max_length=get_username_max_length(),
web_1 | File "/usr/local/lib/python3.8/site-packages/allauth/utils.py", line 69, in get_username_max_length
web_1 | max_length = User._meta.get_field(USER_MODEL_USERNAME_FIELD).max_length
web_1 | File "/usr/local/lib/python3.8/site-packages/django/db/models/options.py", line 583, in get_field
web_1 | raise FieldDoesNotExist("%s has no field named '%s'" % (self.object_name, field_name))
web_1 | django.core.exceptions.FieldDoesNotExist: User has no field named 'username'
snowman_web_1 exited with code 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment