liqd / a4-cookiecutter Goto Github PK
View Code? Open in Web Editor NEWA cookiecutter template to set up a participation platform based on adhocracy4 and the CMS wagtail
A cookiecutter template to set up a participation platform based on adhocracy4 and the CMS wagtail
like here: liqd/a4-meinberlin#1553
also add docs for new translations in new projects
and add the makemessages-overwrite?!
if I make my project private in the settings, the "participatns" don't show up in the navigation so I can't invite people.
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.
only when project form is not completed
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?!
Should we add them or are they not relevant anymore?
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.
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.
Why is it that leaflet only is in the package.json when bootstrap is wanted?
Redirect after accepting the rgistration is to project site, which cannot yet be accessed by the moderators.
Should inviting them only be allowed after project publish?
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',)})```
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 ;-)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.