Cloud-CV / EvalAI

:cloud: :rocket: :bar_chart: :chart_with_upwards_trend: Evaluating state of the art in AI
https://eval.ai
Other
1.77k stars 785 forks source link

Update Profile not working #3279

Open gautamjajoo opened 3 years ago

gautamjajoo commented 3 years ago

The users are not able to update the profile on the new frontend. Error 400 is popping up.

@Ram81 @RishabhJain2018

Screenshot from 2021-03-02 23-39-00

Alabhya268 commented 3 years ago

@gautamjajoo , In frontendv2 updating profile is working fine with me. Could you please more elaborate on how it happened.

gautamjajoo commented 3 years ago

@Alabhya268 I was updating the profile by adding name/links but the changes were not displayed and error 400 was showing up.

Alabhya268 commented 3 years ago

@gautamjajoo , It turned out trying to remove Affiliated to is causing this issue, Everything else is working fine.

Alabhya268 commented 3 years ago

I will try to fix this issue.

Alabhya268 commented 3 years ago

@gautamjajoo @RishabhJain2018 @Ram81

In accounts models.py affiliate is required field, we can simply fix this issue by allowing it to be blank but while running migrations we need secret key. Please tell me what should be done next.

Ram81 commented 3 years ago

we need secret key. @Alabhya268 there is no secret key needed for generating migrations. You can just update the model file and generate a migration file from that. Let me know if you have any doubts

Alabhya268 commented 3 years ago

@Ram81 , I am getting this error when generating migrations. Please have a look.

(venv) alabhya@alabhya-OMEN-by-HP-Laptop-15-dc0xxx:/media/alabhya/DATA4/PROJECTS/Open Source/EvalAI$ python manage.py makemigrations accounts Traceback (most recent call last): File "manage.py", line 22, in execute_from_command_line(sys.argv) File "/media/alabhya/DATA4/PROJECTS/Open Source/EvalAI/venv/lib/python3.8/site-packages/django/core/management/init.py", line 401, in execute_from_command_line utility.execute() File "/media/alabhya/DATA4/PROJECTS/Open Source/EvalAI/venv/lib/python3.8/site-packages/django/core/management/init.py", line 395, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/media/alabhya/DATA4/PROJECTS/Open Source/EvalAI/venv/lib/python3.8/site-packages/django/core/management/base.py", line 330, in run_from_argv self.execute(*args, **cmd_options) File "/media/alabhya/DATA4/PROJECTS/Open Source/EvalAI/venv/lib/python3.8/site-packages/django/core/management/base.py", line 368, in execute self.check() File "/media/alabhya/DATA4/PROJECTS/Open Source/EvalAI/venv/lib/python3.8/site-packages/django/core/management/base.py", line 392, in check all_issues = checks.run_checks( File "/media/alabhya/DATA4/PROJECTS/Open Source/EvalAI/venv/lib/python3.8/site-packages/django/core/checks/registry.py", line 70, in run_checks new_errors = check(app_configs=app_configs, databases=databases) File "/media/alabhya/DATA4/PROJECTS/Open Source/EvalAI/venv/lib/python3.8/site-packages/django/core/checks/urls.py", line 10, in check_url_config if getattr(settings, 'ROOT_URLCONF', None): File "/media/alabhya/DATA4/PROJECTS/Open Source/EvalAI/venv/lib/python3.8/site-packages/django/conf/init.py", line 82, in getattr self._setup(name) File "/media/alabhya/DATA4/PROJECTS/Open Source/EvalAI/venv/lib/python3.8/site-packages/django/conf/init.py", line 69, in _setup self._wrapped = Settings(settings_module) File "/media/alabhya/DATA4/PROJECTS/Open Source/EvalAI/venv/lib/python3.8/site-packages/django/conf/init.py", line 189, in init raise ImproperlyConfigured("The SECRET_KEY setting must not be empty.") django.core.exceptions.ImproperlyConfigured: The SECRET_KEY setting must not be empty.

Ram81 commented 3 years ago

@Alabhya268 are you running EvalAI using docker-compose? If yes, could you try exec'ing into the django docker container and run migrations again to see if you face this issue.