diff --git a/app.log b/app.log index d4b150802..a1af6c37d 100644 --- a/app.log +++ b/app.log @@ -615,3 +615,783 @@ WARNING:django.request:Not Found: /introduction/home.html INFO:django.utils.autoreload:/home/toxin/Project/gsoc/pygoat/introduction/views.py changed, reloading. INFO:django.utils.autoreload:/home/toxin/Project/gsoc/pygoat/introduction/forms.py changed, reloading. WARNING:django.security.csrf:Forbidden (CSRF token missing or incorrect.): /admin/auth/user/ +ERROR:django.request:Internal Server Error: /login/ +Traceback (most recent call last): + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/views/generic/base.py", line 84, in view + return self.dispatch(request, *args, **kwargs) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/utils/decorators.py", line 46, in _wrapper + return bound_method(*args, **kwargs) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/views/decorators/debug.py", line 92, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/utils/decorators.py", line 46, in _wrapper + return bound_method(*args, **kwargs) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/utils/decorators.py", line 133, in _wrapped_view + response = view_func(request, *args, **kwargs) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/utils/decorators.py", line 46, in _wrapper + return bound_method(*args, **kwargs) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/views/decorators/cache.py", line 62, in _wrapped_view_func + response = view_func(request, *args, **kwargs) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/contrib/auth/views.py", line 67, in dispatch + return super().dispatch(request, *args, **kwargs) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/views/generic/base.py", line 119, in dispatch + return handler(request, *args, **kwargs) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/views/generic/edit.py", line 144, in get + return self.render_to_response(self.get_context_data()) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/contrib/auth/views.py", line 103, in get_context_data + current_site = get_current_site(self.request) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/contrib/sites/shortcuts.py", line 14, in get_current_site + return Site.objects.get_current(request) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/contrib/sites/models.py", line 59, in get_current + return self._get_site_by_id(site_id) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/contrib/sites/models.py", line 30, in _get_site_by_id + site = self.get(pk=site_id) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/db/models/manager.py", line 85, in manager_method + return getattr(self.get_queryset(), name)(*args, **kwargs) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/db/models/query.py", line 496, in get + raise self.model.DoesNotExist( +django.contrib.sites.models.Site.DoesNotExist: Site matching query does not exist. +ERROR:django.request:Internal Server Error: /login/ +Traceback (most recent call last): + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/views/generic/base.py", line 84, in view + return self.dispatch(request, *args, **kwargs) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/utils/decorators.py", line 46, in _wrapper + return bound_method(*args, **kwargs) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/views/decorators/debug.py", line 92, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/utils/decorators.py", line 46, in _wrapper + return bound_method(*args, **kwargs) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/utils/decorators.py", line 133, in _wrapped_view + response = view_func(request, *args, **kwargs) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/utils/decorators.py", line 46, in _wrapper + return bound_method(*args, **kwargs) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/views/decorators/cache.py", line 62, in _wrapped_view_func + response = view_func(request, *args, **kwargs) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/contrib/auth/views.py", line 67, in dispatch + return super().dispatch(request, *args, **kwargs) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/views/generic/base.py", line 119, in dispatch + return handler(request, *args, **kwargs) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/views/generic/edit.py", line 144, in get + return self.render_to_response(self.get_context_data()) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/contrib/auth/views.py", line 103, in get_context_data + current_site = get_current_site(self.request) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/contrib/sites/shortcuts.py", line 14, in get_current_site + return Site.objects.get_current(request) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/contrib/sites/models.py", line 59, in get_current + return self._get_site_by_id(site_id) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/contrib/sites/models.py", line 30, in _get_site_by_id + site = self.get(pk=site_id) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/db/models/manager.py", line 85, in manager_method + return getattr(self.get_queryset(), name)(*args, **kwargs) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/db/models/query.py", line 496, in get + raise self.model.DoesNotExist( +django.contrib.sites.models.Site.DoesNotExist: Site matching query does not exist. +ERROR:django.request:Internal Server Error: /login/ +Traceback (most recent call last): + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/views/generic/base.py", line 84, in view + return self.dispatch(request, *args, **kwargs) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/utils/decorators.py", line 46, in _wrapper + return bound_method(*args, **kwargs) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/views/decorators/debug.py", line 92, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/utils/decorators.py", line 46, in _wrapper + return bound_method(*args, **kwargs) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/utils/decorators.py", line 133, in _wrapped_view + response = view_func(request, *args, **kwargs) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/utils/decorators.py", line 46, in _wrapper + return bound_method(*args, **kwargs) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/views/decorators/cache.py", line 62, in _wrapped_view_func + response = view_func(request, *args, **kwargs) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/contrib/auth/views.py", line 67, in dispatch + return super().dispatch(request, *args, **kwargs) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/views/generic/base.py", line 119, in dispatch + return handler(request, *args, **kwargs) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/views/generic/edit.py", line 144, in get + return self.render_to_response(self.get_context_data()) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/contrib/auth/views.py", line 103, in get_context_data + current_site = get_current_site(self.request) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/contrib/sites/shortcuts.py", line 14, in get_current_site + return Site.objects.get_current(request) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/contrib/sites/models.py", line 59, in get_current + return self._get_site_by_id(site_id) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/contrib/sites/models.py", line 30, in _get_site_by_id + site = self.get(pk=site_id) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/db/models/manager.py", line 85, in manager_method + return getattr(self.get_queryset(), name)(*args, **kwargs) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/db/models/query.py", line 496, in get + raise self.model.DoesNotExist( +django.contrib.sites.models.Site.DoesNotExist: Site matching query does not exist. +WARNING:django.request:Not Found: /admin. +ERROR:django.request:Internal Server Error: /admin/login/ +Traceback (most recent call last): + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/utils/decorators.py", line 46, in _wrapper + return bound_method(*args, **kwargs) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/views/decorators/cache.py", line 62, in _wrapped_view_func + response = view_func(request, *args, **kwargs) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/contrib/admin/sites.py", line 440, in login + return LoginView.as_view(**defaults)(request) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/views/generic/base.py", line 84, in view + return self.dispatch(request, *args, **kwargs) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/utils/decorators.py", line 46, in _wrapper + return bound_method(*args, **kwargs) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/views/decorators/debug.py", line 92, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/utils/decorators.py", line 46, in _wrapper + return bound_method(*args, **kwargs) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/utils/decorators.py", line 133, in _wrapped_view + response = view_func(request, *args, **kwargs) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/utils/decorators.py", line 46, in _wrapper + return bound_method(*args, **kwargs) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/views/decorators/cache.py", line 62, in _wrapped_view_func + response = view_func(request, *args, **kwargs) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/contrib/auth/views.py", line 67, in dispatch + return super().dispatch(request, *args, **kwargs) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/views/generic/base.py", line 119, in dispatch + return handler(request, *args, **kwargs) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/views/generic/edit.py", line 144, in get + return self.render_to_response(self.get_context_data()) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/contrib/auth/views.py", line 103, in get_context_data + current_site = get_current_site(self.request) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/contrib/sites/shortcuts.py", line 14, in get_current_site + return Site.objects.get_current(request) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/contrib/sites/models.py", line 59, in get_current + return self._get_site_by_id(site_id) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/contrib/sites/models.py", line 30, in _get_site_by_id + site = self.get(pk=site_id) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/db/models/manager.py", line 85, in manager_method + return getattr(self.get_queryset(), name)(*args, **kwargs) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/db/models/query.py", line 496, in get + raise self.model.DoesNotExist( +django.contrib.sites.models.Site.DoesNotExist: Site matching query does not exist. +ERROR:django.request:Internal Server Error: /login/ +Traceback (most recent call last): + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/views/generic/base.py", line 84, in view + return self.dispatch(request, *args, **kwargs) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/utils/decorators.py", line 46, in _wrapper + return bound_method(*args, **kwargs) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/views/decorators/debug.py", line 92, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/utils/decorators.py", line 46, in _wrapper + return bound_method(*args, **kwargs) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/utils/decorators.py", line 133, in _wrapped_view + response = view_func(request, *args, **kwargs) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/utils/decorators.py", line 46, in _wrapper + return bound_method(*args, **kwargs) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/views/decorators/cache.py", line 62, in _wrapped_view_func + response = view_func(request, *args, **kwargs) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/contrib/auth/views.py", line 67, in dispatch + return super().dispatch(request, *args, **kwargs) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/views/generic/base.py", line 119, in dispatch + return handler(request, *args, **kwargs) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/views/generic/edit.py", line 144, in get + return self.render_to_response(self.get_context_data()) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/contrib/auth/views.py", line 103, in get_context_data + current_site = get_current_site(self.request) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/contrib/sites/shortcuts.py", line 14, in get_current_site + return Site.objects.get_current(request) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/contrib/sites/models.py", line 59, in get_current + return self._get_site_by_id(site_id) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/contrib/sites/models.py", line 30, in _get_site_by_id + site = self.get(pk=site_id) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/db/models/manager.py", line 85, in manager_method + return getattr(self.get_queryset(), name)(*args, **kwargs) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/db/models/query.py", line 496, in get + raise self.model.DoesNotExist( +django.contrib.sites.models.Site.DoesNotExist: Site matching query does not exist. +ERROR:django.request:Internal Server Error: /login/ +Traceback (most recent call last): + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/views/generic/base.py", line 84, in view + return self.dispatch(request, *args, **kwargs) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/utils/decorators.py", line 46, in _wrapper + return bound_method(*args, **kwargs) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/views/decorators/debug.py", line 92, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/utils/decorators.py", line 46, in _wrapper + return bound_method(*args, **kwargs) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/utils/decorators.py", line 133, in _wrapped_view + response = view_func(request, *args, **kwargs) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/utils/decorators.py", line 46, in _wrapper + return bound_method(*args, **kwargs) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/views/decorators/cache.py", line 62, in _wrapped_view_func + response = view_func(request, *args, **kwargs) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/contrib/auth/views.py", line 67, in dispatch + return super().dispatch(request, *args, **kwargs) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/views/generic/base.py", line 119, in dispatch + return handler(request, *args, **kwargs) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/views/generic/edit.py", line 144, in get + return self.render_to_response(self.get_context_data()) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/contrib/auth/views.py", line 103, in get_context_data + current_site = get_current_site(self.request) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/contrib/sites/shortcuts.py", line 14, in get_current_site + return Site.objects.get_current(request) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/contrib/sites/models.py", line 59, in get_current + return self._get_site_by_id(site_id) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/contrib/sites/models.py", line 30, in _get_site_by_id + site = self.get(pk=site_id) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/db/models/manager.py", line 85, in manager_method + return getattr(self.get_queryset(), name)(*args, **kwargs) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/db/models/query.py", line 496, in get + raise self.model.DoesNotExist( +django.contrib.sites.models.Site.DoesNotExist: Site matching query does not exist. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/urls.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/urls.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/urls.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/urls.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/urls.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/urls.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/urls.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/urls.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/urls.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/urls.py changed, reloading. +ERROR:django.request:Internal Server Error: /challenge/do-it-fast +Traceback (most recent call last): + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/views/generic/base.py", line 84, in view + return self.dispatch(request, *args, **kwargs) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/views/generic/base.py", line 119, in dispatch + return handler(request, *args, **kwargs) + File "/home/rupax/GSOC/pygoat/challenge/views.py", line 7, in get + return render(request, 'challenge/do-it-fast.html') + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/shortcuts.py", line 24, in render + content = loader.render_to_string(template_name, context, request, using=using) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/template/loader.py", line 61, in render_to_string + template = get_template(template_name, using=using) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/template/loader.py", line 19, in get_template + raise TemplateDoesNotExist(template_name, chain=chain) +django.template.exceptions.TemplateDoesNotExist: challenge/do-it-fast.html +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +ERROR:django.request:Internal Server Error: /challenge/do-it-fast +Traceback (most recent call last): + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/template/base.py", line 505, in parse + compile_func = self.tags[command] +KeyError: 'static' + +During handling of the above exception, another exception occurred: + +Traceback (most recent call last): + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/views/generic/base.py", line 84, in view + return self.dispatch(request, *args, **kwargs) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/views/generic/base.py", line 119, in dispatch + return handler(request, *args, **kwargs) + File "/home/rupax/GSOC/pygoat/challenge/views.py", line 7, in get + return render(request, 'do-it-fast.html') + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/shortcuts.py", line 24, in render + content = loader.render_to_string(template_name, context, request, using=using) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/template/loader.py", line 61, in render_to_string + template = get_template(template_name, using=using) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/template/loader.py", line 15, in get_template + return engine.get_template(template_name) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/template/backends/django.py", line 34, in get_template + return Template(self.engine.get_template(template_name), self) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/template/engine.py", line 176, in get_template + template, origin = self.find_template(template_name) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/template/engine.py", line 158, in find_template + template = loader.get_template(name, skip=skip) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/template/loaders/base.py", line 28, in get_template + return Template( + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/template/base.py", line 154, in __init__ + self.nodelist = self.compile_nodelist() + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/template/base.py", line 200, in compile_nodelist + return parser.parse() + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/template/base.py", line 507, in parse + self.invalid_block_tag(token, command, parse_until) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/template/base.py", line 568, in invalid_block_tag + raise self.error( +django.template.exceptions.TemplateSyntaxError: Invalid block tag on line 8: 'static'. Did you forget to register or load this tag? +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +WARNING:django.request:Not Found: /event/myevents +WARNING:django.security.csrf:Forbidden (CSRF token missing.): /challenge/do-it-fast +WARNING:django.security.csrf:Forbidden (CSRF token missing.): /challenge/do-it-fast +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +WARNING:django.security.csrf:Forbidden (CSRF token missing.): /challenge/do-it-fast +WARNING:django.security.csrf:Forbidden (CSRF token missing.): /challenge/do-it-fast +WARNING:django.security.csrf:Forbidden (CSRF token missing.): /challenge/do-it-fast +WARNING:django.security.csrf:Forbidden (CSRF token missing.): /challenge/do-it-fast +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +WARNING:django.security.csrf:Forbidden (CSRF token missing.): /challenge/do-it-fast +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/admin.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/admin.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/admin.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/admin.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/admin.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/admin.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/admin.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/admin.py changed, reloading. +WARNING:django.request:Not Found: /favicon.ico +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/models.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/models.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/urls.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/urls.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/urls.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/urls.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/urls.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/urls.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +ERROR:django.request:Internal Server Error: /challenge/do-it-fast +Traceback (most recent call last): + File "/home/rupax/GSOC/pygoat/challenge/views.py", line 15, in get + chal = Challenge.objects.get(name=challange) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/db/models/manager.py", line 85, in manager_method + return getattr(self.get_queryset(), name)(*args, **kwargs) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/db/models/query.py", line 496, in get + raise self.model.DoesNotExist( +challenge.models.Challenge.DoesNotExist: Challenge matching query does not exist. + +During handling of the above exception, another exception occurred: + +Traceback (most recent call last): + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/views/generic/base.py", line 84, in view + return self.dispatch(request, *args, **kwargs) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/views/generic/base.py", line 119, in dispatch + return handler(request, *args, **kwargs) + File "/home/rupax/GSOC/pygoat/challenge/views.py", line 17, in get + return render(request, 'chal-not-found.html') + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/shortcuts.py", line 24, in render + content = loader.render_to_string(template_name, context, request, using=using) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/template/loader.py", line 61, in render_to_string + template = get_template(template_name, using=using) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/template/loader.py", line 15, in get_template + return engine.get_template(template_name) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/template/backends/django.py", line 34, in get_template + return Template(self.engine.get_template(template_name), self) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/template/engine.py", line 176, in get_template + template, origin = self.find_template(template_name) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/template/engine.py", line 158, in find_template + template = loader.get_template(name, skip=skip) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/template/loaders/base.py", line 28, in get_template + return Template( + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/template/base.py", line 154, in __init__ + self.nodelist = self.compile_nodelist() + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/template/base.py", line 200, in compile_nodelist + return parser.parse() + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/template/base.py", line 513, in parse + raise self.error(token, e) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/template/base.py", line 511, in parse + compiled_result = compile_func(self, token) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/template/loader_tags.py", line 293, in do_extends + nodelist = parser.parse() + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/template/base.py", line 513, in parse + raise self.error(token, e) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/template/base.py", line 511, in parse + compiled_result = compile_func(self, token) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/template/loader_tags.py", line 232, in do_block + nodelist = parser.parse(("endblock",)) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/template/base.py", line 518, in parse + self.unclosed_block_tag(parse_until) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/template/base.py", line 581, in unclosed_block_tag + raise self.error(token, msg) +django.template.exceptions.TemplateSyntaxError: Unclosed tag on line 2: 'block'. Looking for one of: endblock. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/urls.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +ERROR:django.request:Internal Server Error: /challenge/do-it-fast +Traceback (most recent call last): + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/views/generic/base.py", line 84, in view + return self.dispatch(request, *args, **kwargs) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/views/generic/base.py", line 119, in dispatch + return handler(request, *args, **kwargs) +TypeError: get() got an unexpected keyword argument 'challenge' +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/utility.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/utility.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/utility.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +ERROR:django.request:Internal Server Error: /challenge/do-it-fast +Traceback (most recent call last): + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/views/generic/base.py", line 84, in view + return self.dispatch(request, *args, **kwargs) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/views/generic/base.py", line 119, in dispatch + return handler(request, *args, **kwargs) + File "/home/rupax/GSOC/pygoat/challenge/utility.py", line 16, in function + if args[0].user.is_authenticated: +AttributeError: 'DoItFast' object has no attribute 'user' +ERROR:django.request:Internal Server Error: /challenge/do-it-fast +Traceback (most recent call last): + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/views/generic/base.py", line 84, in view + return self.dispatch(request, *args, **kwargs) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/views/generic/base.py", line 119, in dispatch + return handler(request, *args, **kwargs) + File "/home/rupax/GSOC/pygoat/challenge/utility.py", line 16, in function + if args[0].user.is_authenticated: +AttributeError: 'DoItFast' object has no attribute 'user' +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +ERROR:django.request:Internal Server Error: /challenge/do-it-fast +Traceback (most recent call last): + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/views/generic/base.py", line 84, in view + return self.dispatch(request, *args, **kwargs) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/views/generic/base.py", line 119, in dispatch + return handler(request, *args, **kwargs) + File "/home/rupax/GSOC/pygoat/challenge/utility.py", line 16, in function + if args[0].user.is_authenticated: +AttributeError: 'DoItFast' object has no attribute 'user' +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/utility.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/utility.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/models.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/models.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/models.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/models.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/models.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/models.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/models.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/models.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/models.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/models.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/models.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/models.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/models.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/models.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/models.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/models.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/models.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/models.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/models.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +ERROR:django.request:Internal Server Error: /challenge/do-it-fast +Traceback (most recent call last): + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/views/generic/base.py", line 84, in view + return self.dispatch(request, *args, **kwargs) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/views/generic/base.py", line 119, in dispatch + return handler(request, *args, **kwargs) +TypeError: delete() got an unexpected keyword argument 'challenge' +ERROR:django.request:Internal Server Error: /challenge/do-it-fast +Traceback (most recent call last): + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/views/generic/base.py", line 84, in view + return self.dispatch(request, *args, **kwargs) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/views/generic/base.py", line 119, in dispatch + return handler(request, *args, **kwargs) +TypeError: delete() got an unexpected keyword argument 'challenge' +ERROR:django.request:Internal Server Error: /challenge/do-it-fast +Traceback (most recent call last): + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/views/generic/base.py", line 84, in view + return self.dispatch(request, *args, **kwargs) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/views/generic/base.py", line 119, in dispatch + return handler(request, *args, **kwargs) +TypeError: delete() got an unexpected keyword argument 'challenge' +ERROR:django.request:Internal Server Error: /challenge/do-it-fast +Traceback (most recent call last): + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/views/generic/base.py", line 84, in view + return self.dispatch(request, *args, **kwargs) + File "/home/rupax/GSOC/pygoat/venv/lib/python3.8/site-packages/django/views/generic/base.py", line 119, in dispatch + return handler(request, *args, **kwargs) +TypeError: delete() got an unexpected keyword argument 'challenge' +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/views.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/models.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/models.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/models.py changed, reloading. +INFO:django.utils.autoreload:/home/rupax/GSOC/pygoat/challenge/models.py changed, reloading. diff --git a/temp.py b/challenge/__init__.py similarity index 100% rename from temp.py rename to challenge/__init__.py diff --git a/challenge/admin.py b/challenge/admin.py new file mode 100644 index 000000000..f913d9b22 --- /dev/null +++ b/challenge/admin.py @@ -0,0 +1,16 @@ +from django.contrib import admin +from .models import Challenge, UserChallenge +# Register your models here. + +@admin.register(Challenge) +class ChallengeAdmin(admin.ModelAdmin): + list_display = ('name', 'docker_image', 'start_port', 'end_port', 'point') + search_fields = ('name', 'docker_image') + empty_value_display = '-empty-' + + +@admin.register(UserChallenge) +class UserChallengeAdmin(admin.ModelAdmin): + list_display = ('user', 'challenge', 'container_id', 'port', 'no_of_attempt', 'is_solved') + search_fields = ('user__username', 'challenge__name') + empty_value_display = '-empty-' \ No newline at end of file diff --git a/challenge/apps.py b/challenge/apps.py new file mode 100644 index 000000000..ad63d6650 --- /dev/null +++ b/challenge/apps.py @@ -0,0 +1,6 @@ +from django.apps import AppConfig + + +class ChallengeConfig(AppConfig): + default_auto_field = 'django.db.models.BigAutoField' + name = 'challenge' diff --git a/challenge/challenge.json b/challenge/challenge.json new file mode 100644 index 000000000..b92c182af --- /dev/null +++ b/challenge/challenge.json @@ -0,0 +1,12 @@ +[ + { + "name":"do-it-fast", + "description":"You want flag ?\nThis webside gives you ?\nyeah, just need to login and grab fast", + "docker_image": "rupak2001/do-it-fast", + "docker_port": 5050, + "start_port" : 5000, + "end_port" : 5500, + "flag": "flag{do_it_fast}", + "point" : 100 + } +] \ No newline at end of file diff --git a/challenge/management/commands/populate_challenge.py b/challenge/management/commands/populate_challenge.py new file mode 100644 index 000000000..62ab6330d --- /dev/null +++ b/challenge/management/commands/populate_challenge.py @@ -0,0 +1,22 @@ +import json +from django.core.management.base import BaseCommand, CommandError +from challenge.models import Challenge + + +class Command(BaseCommand): + help = "Populates the database with some test data" + + def handle(self, *args, **options): + try: + filename = "challenge/challenge.json" + with open(filename, "r") as f: + data = json.load(f) + for challenge in data: + try: + Challenge.objects.create(**challenge).save() + except: + pass + except FileNotFoundError: + raise CommandError("File not found: {}".format(filename)) + + diff --git a/challenge/migrations/0001_initial.py b/challenge/migrations/0001_initial.py new file mode 100644 index 000000000..16e775aa2 --- /dev/null +++ b/challenge/migrations/0001_initial.py @@ -0,0 +1,47 @@ +# Generated by Django 4.0.4 on 2023-03-03 06:33 + +from django.conf import settings +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + initial = True + + dependencies = [ + migrations.swappable_dependency(settings.AUTH_USER_MODEL), + ] + + operations = [ + migrations.CreateModel( + name='Challenge', + fields=[ + ('id', models.AutoField(primary_key=True, serialize=False)), + ('name', models.CharField(max_length=100)), + ('description', models.TextField()), + ('docker_image', models.CharField(max_length=100)), + ('start_port', models.IntegerField()), + ('end_port', models.IntegerField()), + ('created_at', models.DateTimeField(auto_now_add=True)), + ('updated_at', models.DateTimeField(auto_now=True)), + ('flag', models.CharField(max_length=100)), + ('point', models.IntegerField()), + ], + ), + migrations.CreateModel( + name='UserChallenge', + fields=[ + ('id', models.AutoField(primary_key=True, serialize=False)), + ('container_id', models.CharField(max_length=100)), + ('port', models.IntegerField()), + ('created_at', models.DateTimeField(auto_now_add=True)), + ('updated_at', models.DateTimeField(auto_now=True)), + ('is_live', models.BooleanField(default=False)), + ('no_of_attempt', models.IntegerField(default=0)), + ('is_solved', models.BooleanField(default=False)), + ('challenge', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='challenge.challenge')), + ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), + ], + ), + ] diff --git a/challenge/migrations/0002_challenge_docker_port.py b/challenge/migrations/0002_challenge_docker_port.py new file mode 100644 index 000000000..bf8fb3aee --- /dev/null +++ b/challenge/migrations/0002_challenge_docker_port.py @@ -0,0 +1,19 @@ +# Generated by Django 4.0.4 on 2023-03-03 06:45 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('challenge', '0001_initial'), + ] + + operations = [ + migrations.AddField( + model_name='challenge', + name='docker_port', + field=models.IntegerField(default=8000), + preserve_default=False, + ), + ] diff --git a/challenge/migrations/0003_alter_challenge_docker_image_alter_challenge_id_and_more.py b/challenge/migrations/0003_alter_challenge_docker_image_alter_challenge_id_and_more.py new file mode 100644 index 000000000..79c7e8164 --- /dev/null +++ b/challenge/migrations/0003_alter_challenge_docker_image_alter_challenge_id_and_more.py @@ -0,0 +1,28 @@ +# Generated by Django 4.0.4 on 2023-03-03 12:11 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('challenge', '0002_challenge_docker_port'), + ] + + operations = [ + migrations.AlterField( + model_name='challenge', + name='docker_image', + field=models.CharField(max_length=100, unique=True), + ), + migrations.AlterField( + model_name='challenge', + name='id', + field=models.AutoField(primary_key=True, serialize=False, unique=True), + ), + migrations.AlterField( + model_name='challenge', + name='name', + field=models.CharField(max_length=100, unique=True), + ), + ] diff --git a/challenge/migrations/__init__.py b/challenge/migrations/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/challenge/models.py b/challenge/models.py new file mode 100644 index 000000000..95442f220 --- /dev/null +++ b/challenge/models.py @@ -0,0 +1,46 @@ +from django.db import models +from django.contrib.auth.models import User + +# Create your models here +class Challenge(models.Model): + id = models.AutoField(primary_key=True, unique=True) + name = models.CharField(max_length=100, unique=True) + description = models.TextField() + docker_image = models.CharField(max_length=100, unique=True) + docker_port = models.IntegerField() + start_port = models.IntegerField() + end_port = models.IntegerField() + created_at = models.DateTimeField(auto_now_add=True) + updated_at = models.DateTimeField(auto_now=True) + flag = models.CharField(max_length=100) + point = models.IntegerField() + + def __str__(self): + return self.name + + # overwriting default save method + def save(self, *args, **kwargs): + if self.start_port > self.end_port: + raise Exception("Start port should be less than end port") + # Here flag need to be hashed + super(Challenge, self).save(*args, **kwargs) + +class UserChallenge(models.Model): + """ + This is a mapping of user to challenge with proper progress tracking + This also allows us to reuse the created container for the user + """ + id = models.AutoField(primary_key=True) + user = models.ForeignKey(User, on_delete=models.CASCADE) + challenge = models.ForeignKey(Challenge, on_delete=models.CASCADE) + container_id = models.CharField(max_length=100) + port = models.IntegerField() + created_at = models.DateTimeField(auto_now_add=True) + updated_at = models.DateTimeField(auto_now=True) + is_live = models.BooleanField(default=False) + no_of_attempt = models.IntegerField(default=0) + is_solved = models.BooleanField(default=False) + port = models.IntegerField() + + def __str__(self): + return f"{self.user.username} - {self.challenge.name}" \ No newline at end of file diff --git a/challenge/templates/chal-not-found.html b/challenge/templates/chal-not-found.html new file mode 100644 index 000000000..1bacba43b --- /dev/null +++ b/challenge/templates/chal-not-found.html @@ -0,0 +1,8 @@ +{% extends "introduction/base.html" %} +{% block content %} +
{{ chal.description }}+