Giter Club home page Giter Club logo

a4-cookiecutter's People

Contributors

dependabot[bot] avatar fuzzylogic2000 avatar ihucos avatar philli-m avatar pyup-bot avatar rmader avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

adampaigge

a4-cookiecutter's Issues

add a basic readme.md

  • installation process (should be the same for every project that has this cookiecutter implemented)
  • global dependencies?
  • i don't know what else

Styles not found

Hi,
i managed to install the a4-cookiecutter. I also managed to make it work with apache2. But now i run into this problem:
The Site is completely without style and this i find in my apache2 error log. I tried to figure out where this files are stored, but most of them i couldn't find. Any hint is welcome.

[Sun Mar 22 11:22:25.153348 2020] [core:info] [pid 29902] [client 217.86.0.0:35218] AH00128: File does not exist: ...adhocracy/site/site/static/adhocracy4.js
[Sun Mar 22 11:22:25.448562 2020] [core:info] [pid 29926] [client 217.86.0.0:35238] AH00128: File does not exist: ...adhocracy/site/site/static/vendor.css
[Sun Mar 22 11:22:25.489554 2020] [core:info] [pid 29926] [client 217.86.0.0:35238] AH00128: File does not exist: ...adhocracy/site/site/static/adhocracy4.css
[Sun Mar 22 11:22:25.638564 2020] [core:info] [pid 29926] [client 217.86.0.0:35238] AH00128: File does not exist: ...adhocracy/site/site/static/vendor.js
[Sun Mar 22 11:22:25.704502 2020] [core:info] [pid 29926] [client 217.86.0.0:35238] AH00128: File does not exist: ...adhocracy/site/site/static/adhocracy4.js

Thanks for the software and thanks for help.

dashboard doesn't reload, when poll is saved

The js gets the prop reloadOnSuccess. The templatetag has to be used like that: {% react_poll_form poll True %}
That is done in A4. The same way as in mB, where it works like that?!

change module titles

you integrated the idea collection (with and without map) but called it (spatial) brainstorming in the CC. This might confuse people who will take a look in the other projects and find a brainstorming there that is different from the brainstorming in the CC.

Invalid .pyup.yml detected

The bot encountered an error in your .pyup.yml config file:

  in "<unicode string>", line 7, column 3:
      - {{cookiecutter.project_slug}}/ ... 
      ^
expected <block end>, but found '<scalar>'
  in "<unicode string>", line 7, column 34:
      - {{cookiecutter.project_slug}}/requirements/base.txt
                                     ^

You can validate it with this online YAML parser or by taking a look at the Documentation.

Missing features

  • base template
  • error templates
  • scss setup
  • linters
  • webpack
  • wagtail homepage (with migrations), but then wagtail would not be optional

Tests fail on new project - can't reverse "javascript-catalog" - have proposed fix

edit: I have a proposed fix to this - see my final comment

Following the setup guide on a first install, I'm getting test failures.
I did the cookiecutter fetch step, then make install then make tests - I believe I have all relevant dependencies and no errors on the first two steps before make test. I have both python 3.7 and python 2.7 installed, looks like this is using 3.7, it's in all the paths.

E django.urls.exceptions.NoReverseMatch: Reverse for 'javascript-catalog' not found. 'javascript-catalog' is not a valid view function or pattern name.
There are 32 failures
================== 32 failed, 156 passed, 70 warnings in 105.55 seconds ===================

Here's one of the failing tests in its entirety

tests/mapideas/views/test_mapidea_update.py:126:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
venv/lib/python3.7/site-packages/django/test/client.py:543: in post
    response = super().post(path, data=data, content_type=content_type, secure=secure, **extra)
venv/lib/python3.7/site-packages/django/test/client.py:357: in post
    secure=secure, **extra)
venv/lib/python3.7/site-packages/django/test/client.py:422: in generic
    return self.request(**r)
venv/lib/python3.7/site-packages/django/test/client.py:485: in request
    response = self.handler(environ)
venv/lib/python3.7/site-packages/django/test/client.py:140: in __call__
    response = self.get_response(request)
venv/lib/python3.7/site-packages/django/core/handlers/base.py:75: in get_response
    response = self._middleware_chain(request)
venv/lib/python3.7/site-packages/django/core/handlers/exception.py:36: in inner
    response = response_for_exception(request, exc)
venv/lib/python3.7/site-packages/django/core/handlers/exception.py:90: in response_for_exception
    response = handle_uncaught_exception(request, get_resolver(get_urlconf()), sys.exc_info())
venv/lib/python3.7/site-packages/django/core/handlers/exception.py:129: in handle_uncaught_exception
    return callback(request, **param_dict)
venv/lib/python3.7/site-packages/django/utils/decorators.py:142: in _wrapped_view
    response = view_func(request, *args, **kwargs)
venv/lib/python3.7/site-packages/django/views/defaults.py:80: in server_error
    return HttpResponseServerError(template.render())
venv/lib/python3.7/site-packages/django/template/backends/django.py:61: in render
    return self.template.render(context)
venv/lib/python3.7/site-packages/django/template/base.py:171: in render
    return self._render(context)
venv/lib/python3.7/site-packages/django/test/utils.py:96: in instrumented_test_render
    return self.nodelist.render(context)
venv/lib/python3.7/site-packages/django/template/base.py:937: in render
    bit = node.render_annotated(context)
venv/lib/python3.7/site-packages/django/template/base.py:904: in render_annotated
    return self.render(context)
venv/lib/python3.7/site-packages/django/template/loader_tags.py:150: in render
    return compiled_parent._render(context)
venv/lib/python3.7/site-packages/django/test/utils.py:96: in instrumented_test_render
    return self.nodelist.render(context)
venv/lib/python3.7/site-packages/django/template/base.py:937: in render
    bit = node.render_annotated(context)
venv/lib/python3.7/site-packages/django/template/base.py:904: in render_annotated
    return self.render(context)
venv/lib/python3.7/site-packages/django/template/loader_tags.py:150: in render
    return compiled_parent._render(context)
venv/lib/python3.7/site-packages/django/test/utils.py:96: in instrumented_test_render
    return self.nodelist.render(context)
venv/lib/python3.7/site-packages/django/template/base.py:937: in render
    bit = node.render_annotated(context)
venv/lib/python3.7/site-packages/django/template/base.py:904: in render_annotated
    return self.render(context)
venv/lib/python3.7/site-packages/django/template/defaulttags.py:443: in render
    url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app)
venv/lib/python3.7/site-packages/django/urls/base.py:90: in reverse
    return iri_to_uri(resolver._reverse_with_prefix(view, prefix, *args, **kwargs))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <URLResolver 'movie_night.urls' (None:None) '^/'>
lookup_view = 'javascript-catalog', _prefix = '/', args = (), kwargs = {}
possibilities = []

    def _reverse_with_prefix(self, lookup_view, _prefix, *args, **kwargs):
        if args and kwargs:
            raise ValueError("Don't mix *args and **kwargs in call to reverse()!")

        if not self._populated:
            self._populate()

        possibilities = self.reverse_dict.getlist(lookup_view)

        for possibility, pattern, defaults, converters in possibilities:
            for result, params in possibility:
                if args:
                    if len(args) != len(params):
                        continue
                    candidate_subs = dict(zip(params, args))
                else:
                    if set(kwargs).symmetric_difference(params).difference(defaults):
                        continue
                    if any(kwargs.get(k, v) != v for k, v in defaults.items()):
                        continue
                    candidate_subs = kwargs
                # Convert the candidate subs to text using Converter.to_url().
                text_candidate_subs = {}
                for k, v in candidate_subs.items():
                    if k in converters:
                        text_candidate_subs[k] = converters[k].to_url(v)
                    else:
                        text_candidate_subs[k] = str(v)
                # WSGI provides decoded URLs, without %xx escapes, and the URL
                # resolver operates on such URLs. First substitute arguments
                # without quoting to build a decoded URL and look for a match.
                # Then, if we have a match, redo the substitution with quoted
                # arguments in order to return a properly encoded URL.
                candidate_pat = _prefix.replace('%', '%%') + result
                if re.search('^%s%s' % (re.escape(_prefix), pattern), candidate_pat % text_candidate_subs):
                    # safe characters from `pchar` definition of RFC 3986
                    url = quote(candidate_pat % text_candidate_subs, safe=RFC3986_SUBDELIMS + '/~:@')
                    # Don't allow construction of scheme relative urls.
                    return escape_leading_slashes(url)
        # lookup_view can be URL name or callable, but callables are not
        # friendly in error messages.
        m = getattr(lookup_view, '__module__', None)
        n = getattr(lookup_view, '__name__', None)
        if m is not None and n is not None:
            lookup_view_s = "%s.%s" % (m, n)
        else:
            lookup_view_s = lookup_view

        patterns = [pattern for (_, pattern, _, _) in possibilities]
        if patterns:
            if args:
                arg_msg = "arguments '%s'" % (args,)
            elif kwargs:
                arg_msg = "keyword arguments '%s'" % (kwargs,)
            else:
                arg_msg = "no arguments"
            msg = (
                "Reverse for '%s' with %s not found. %d pattern(s) tried: %s" %
                (lookup_view_s, arg_msg, len(patterns), patterns)
            )
        else:
            msg = (
                "Reverse for '%(view)s' not found. '%(view)s' is not "
                "a valid view function or pattern name." % {'view': lookup_view_s}
            )
>       raise NoReverseMatch(msg)
E       django.urls.exceptions.NoReverseMatch: Reverse for 'javascript-catalog' not found. 'javascript-catalog' is not a valid view function or pattern name.

venv/lib/python3.7/site-packages/django/urls/resolvers.py:668: NoReverseMatch

Here are the only references to javascript catalog in the folder -

venv/lib/python3.7/site-packages/treebeard/admin.py
73:            from django.views.i18n import javascript_catalog
74:            jsi18n_url = url(r'^jsi18n/$', javascript_catalog, {'packages': ('treebeard',)})```

loading fixtures fails

Just going through all the install steps, running Python 3.7.3 on Linux, I'm tripping on the make fixtures command with this error:

django.db.utils.OperationalError: Problem installing fixtures: no such table: <PROJECT>_users_user__old

It looks a bit like Django #29182, which suggests down/upgrading Django to get around an SQLite issue. I tried the downward directions, but it didn't work. Despite having to massage the code a bit, I also tried Django 2.1.10 - just to get a slightly different message:

Could not load account.EmailAddress(pk=1): no such table: main.<PROJECT>_users_user__old

My sqlite3.version is 3.26.0. I don't see anything relevant in the release notes, but you might ;-)

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.