Git Product home page Git Product logo

defectdojo-engagement-survey's People

Contributors

davidbernick avatar grendel513 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

defectdojo-engagement-survey's Issues

Remove use of url `patterns` as it's removed in Django 1.10

Hi Jay,

I was trying to install your engagement survey with Defect Dojo latest commit but I have been facing lot of issues since then, from what I understand, you're importing patterns in urls.py however, it has removed from Django, due to which I am getting the following error synchronizing the database.

python manage.py makemigrations defectDojo_engagement_survey

Traceback (most recent call last):
  File "manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 363, in execute_from_command_line
    utility.execute()
  File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 355, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 283, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 327, in execute
    self.check()
  File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 359, in check
    include_deployment_checks=include_deployment_checks,
  File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 346, in _run_checks
    return checks.run_checks(**kwargs)
  File "/usr/local/lib/python2.7/dist-packages/django/core/checks/registry.py", line 81, in run_checks
    new_errors = check(app_configs=app_configs)
  File "/usr/local/lib/python2.7/dist-packages/django/core/checks/urls.py", line 16, in check_url_config
    return check_resolver(resolver)
  File "/usr/local/lib/python2.7/dist-packages/django/core/checks/urls.py", line 26, in check_resolver
    return check_method()
  File "/usr/local/lib/python2.7/dist-packages/django/urls/resolvers.py", line 254, in check
    for pattern in self.url_patterns:
  File "/usr/local/lib/python2.7/dist-packages/django/utils/functional.py", line 35, in __get__
    res = instance.__dict__[self.name] = self.func(instance)
  File "/usr/local/lib/python2.7/dist-packages/django/urls/resolvers.py", line 405, in url_patterns
    patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
  File "/usr/local/lib/python2.7/dist-packages/django/utils/functional.py", line 35, in __get__
    res = instance.__dict__[self.name] = self.func(instance)
  File "/usr/local/lib/python2.7/dist-packages/django/urls/resolvers.py", line 398, in urlconf_module
    return import_module(self.urlconf_name)
  File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
  File "/opt/django-DefectDojo/dojo/urls.py", line 34, in <module>
    from defectDojo_engagement_survey.urls import urlpatterns as survey_urls
  File "/opt/django-DefectDojo/defectDojo_engagement_survey/urls.py", line 6, in <module>
    from django.conf.urls import patterns, url
ImportError: cannot import name patterns

Want to rename and modify the form fields

This feature is nice, but I don't want to call it a Survey. I want to rename it to "Requests"
As these Surveys are kind of requests.
Is there a way I can rename it?
Also, the form have really large text boxes, I want to customize it like more decent looking form fields.

Guide me, so I can make changes and submit it back.

Recent versions of DefectDojo don't appear to be compatible.

Specifically I'm using polymorphic 1.3 and getting this error:

2018-12-07T19:49:43.756111592Z Traceback (most recent call last):
2018-12-07T19:49:43.756160967Z   File "manage.py", line 10, in <module>
2018-12-07T19:49:43.756172783Z     execute_from_command_line(sys.argv)
2018-12-07T19:49:43.756180211Z   File "/usr/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 364, in execute_from_command_line
2018-12-07T19:49:43.757140104Z     utility.execute()
2018-12-07T19:49:43.757182818Z   File "/usr/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 338, in execute
2018-12-07T19:49:43.757208663Z     django.setup()
2018-12-07T19:49:43.757215021Z   File "/usr/local/lib/python2.7/site-packages/django/__init__.py", line 27, in setup
2018-12-07T19:49:43.758074997Z     apps.populate(settings.INSTALLED_APPS)
2018-12-07T19:49:43.758092389Z   File "/usr/local/lib/python2.7/site-packages/django/apps/registry.py", line 108, in populate
2018-12-07T19:49:43.759429243Z     app_config.import_models()
2018-12-07T19:49:43.759447510Z   File "/usr/local/lib/python2.7/site-packages/django/apps/config.py", line 202, in import_models
2018-12-07T19:49:43.760240095Z     self.models_module = import_module(models_module_name)
2018-12-07T19:49:43.760256797Z   File "/usr/local/lib/python2.7/importlib/__init__.py", line 37, in import_module
2018-12-07T19:49:43.760944775Z     __import__(name)
2018-12-07T19:49:43.760960865Z   File "/usr/local/lib/python2.7/site-packages/defectDojo_engagement_survey/models.py", line 9, in <module>
2018-12-07T19:49:43.767815805Z     from polymorphic import PolymorphicModel
2018-12-07T19:49:43.767838328Z ImportError: cannot import name PolymorphicModel

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.