quokkaproject / quokka Goto Github PK
View Code? Open in Web Editor NEWLOOKING FOR NEW MAINTAINER - Quokka is a Content Management System - `docker run --rm -it -p 5000:5000 quokka/quokka`
Home Page: http://www.quokkaproject.org
License: Other
LOOKING FOR NEW MAINTAINER - Quokka is a Content Management System - `docker run --rm -it -p 5000:5000 quokka/quokka`
Home Page: http://www.quokkaproject.org
License: Other
In order to have multi themes in the same website, the idea is to have per channel template/theme configuration.
channel.behaviour = "portal|blog|wiki|app|site"
channel.theme = "foundation_blog"
channel.template_folder = "blablabla"
this way, there is no need to create different apps for those things.
A blog would be just a generic channel configured as a blog.
Thinking on using this with different configurable backends.
Installing and running:
*nix
Install gcc, make, python-devel, python-pip, mongodb, git-core
OpenSUSE:
zypper ar http://download.opensuse.org/repositories/devel:/languages:/python/openSUSE_12.2/devel:languages:python.repo
zypper refresh
zypper in gcc make python-devel python-pip mongodb git-core
Start MongoDB
/etc/init.d/mongodb start
......
i uploaded a image (test.jpg).it produced tow images.
test.jpg( it's a fail image)
test_thumb.jpg( it's ok )
windows7 64bit ,python 2.7.3
prepopulated_fields for title/slug is working well when creating a Post, but not when creating a Channel.
Would be good to have it implemented for every content which has a "slug" depending on a "title" field.
I looked the JavaScript used to generate this and I think this can be transformed in a _macro in Jinja2.
No distributions matching the version for pytz (from Flask-BabelEx==0.8.1->-r requirements.txt (line
20))
Requirements.
Work out of the box, no need to install anything
optional and configurable
customizable template for login page
Pipeline (see django-social-auth pipelines)
hi,i run command:
python manage.py createsuperuser
error information:
Traceback (most recent call last):
File "manage.py", line 52, in
load_blueprint_commands(manager)
File "D:\python_pro\flask_pro\quokka-env\quokka\quokka\ext\blueprints.py", lin
e 94, in load_blueprint_commands
mod = imp.load_module(fname, f, filename, descr)
File "D:\python_pro\flask_pro\quokka-env\quokka\quokka\modules\posts\commands.
py", line 4, in
from .models import Post
ValueError: Attempted relative import in non-package
i found that models.py(quokka/quokka/modules/posts) doesn't compile.
Implemented history of changed urls for redirects
information:
15.08 17:10:56 root WARNING admin.register(<\class 'quokka.core.models.C
hannel'>, <class 'quokka.core.models.ChannelAdmin'>, (), {'category': 'Content'}
) error: 'NoneType' object has no attribute 'get'
i updated code in 'quokka/core/models.py'.
now,it works !
old version:
class ChannelAdmin(ModelAdmin):
roles_accepted = ('admin', 'editor')
column_list = ('title', 'long_slug', 'is_homepage', 'published')
column_filters = ['published', 'is_homepage', 'include_in_rss',
'show_in_menu', 'indexable']
column_searchable_list = ('title', 'description')
form_columns = ['title', 'slug', 'description', 'parent', 'is_homepage',
'include_in_rss', 'indexable', 'show_in_menu', 'order',
'published', 'canonical_url', 'values']
new version:
class ChannelAdmin(ModelAdmin):
roles_accepted = ('admin', 'editor')
column_list = ('title', 'long_slug', 'is_homepage', 'published')
column_filters = ['published', 'is_homepage', 'include_in_rss',
'show_in_menu', 'indexable']
column_searchable_list = ('title', 'description')
form_columns = ['title', 'slug', 'description', 'parent', 'is_homepage',
'include_in_rss', 'indexable', 'show_in_menu', 'order',
'published', 'canonical_url']
Try this http://pythonhosted.org/pulsar/index.html as notification engine.
On render_template in core views, send a list of themes based in each ancestor channel.channel_type. Do it for List and Detail views.
Admin Dashboard Like:
Install tutorial documentation points to:
(quokka-env)~/quokka-env$ git clone https://github.com/rochacbruno/quokka
as the source for install,
Isn't the correct source at: pythonhub?
(quokka-env)~/quokka-env$ git clone https://github.com/pythonhub/quokka
Media folder is referenced, but does not exist.
besides of recommendation, would have a way to specify related content.
"{} {}".format(x, y)
with "{0} {1}".format(x, y)
importlib
, include in requirements2.6.txtBootstrap is good but Foundation is better in responsiveness and it is clean, better for customization.
Create a default theme for Flask-admin based in zurb.foundation.
13.08 23:09:44 quokka ERROR Exception on /admin/fileview/new/ [GET]
Traceback (most recent call last):
File "/home/rochacbruno/.virtualenvs/quokka-test-1/local/lib/python2.7/site-packages/flask/app.py", line 1817, in wsgi_app
response = self.full_dispatch_request()
File "/home/rochacbruno/.virtualenvs/quokka-test-1/local/lib/python2.7/site-packages/flask/app.py", line 1477, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/home/rochacbruno/.virtualenvs/quokka-test-1/local/lib/python2.7/site-packages/flask/app.py", line 1381, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/home/rochacbruno/.virtualenvs/quokka-test-1/local/lib/python2.7/site-packages/flask/app.py", line 1475, in full_dispatch_request
rv = self.dispatch_request()
File "/home/rochacbruno/.virtualenvs/quokka-test-1/local/lib/python2.7/site-packages/flask/app.py", line 1461, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/home/rochacbruno/.virtualenvs/quokka-test-1/local/lib/python2.7/site-packages/flask_admin/base.py", line 60, in inner
return f(self, **kwargs)
File "/home/rochacbruno/.virtualenvs/quokka-test-1/local/lib/python2.7/site-packages/flask_admin/base.py", line 60, in inner
return f(self, **kwargs)
File "/home/rochacbruno/.virtualenvs/quokka-test-1/local/lib/python2.7/site-packages/flask_admin/base.py", line 60, in inner
return f(self, **kwargs)
File "/home/rochacbruno/.virtualenvs/quokka-test-1/local/lib/python2.7/site-packages/flask_admin/base.py", line 60, in inner
return f(self, **kwargs)
File "/home/rochacbruno/.virtualenvs/quokka-test-1/local/lib/python2.7/site-packages/flask_admin/model/base.py", line 1079, in create_view
form = self.create_form()
File "/home/rochacbruno/.virtualenvs/quokka-test-1/local/lib/python2.7/site-packages/flask_admin/model/base.py", line 660, in create_form
return self._create_form_class(get_form_data(), obj=obj)
File "/home/rochacbruno/.virtualenvs/quokka-test-1/local/lib/python2.7/site-packages/wtforms/form.py", line 178, in __call__
return type.__call__(cls, *args, **kwargs)
File "/home/rochacbruno/.virtualenvs/quokka-test-1/local/lib/python2.7/site-packages/flask_admin/form/__init__.py", line 13, in __init__
super(BaseForm, self).__init__(formdata=formdata, obj=obj, prefix=prefix, **kwargs)
File "/home/rochacbruno/.virtualenvs/quokka-test-1/local/lib/python2.7/site-packages/wtforms/form.py", line 226, in __init__
super(Form, self).__init__(self._unbound_fields, prefix=prefix)
File "/home/rochacbruno/.virtualenvs/quokka-test-1/local/lib/python2.7/site-packages/wtforms/form.py", line 39, in __init__
field = unbound_field.bind(form=self, name=name, prefix=prefix, translations=translations)
File "/home/rochacbruno/.virtualenvs/quokka-test-1/local/lib/python2.7/site-packages/wtforms/fields/core.py", line 314, in bind
return self.field_class(_form=form, _prefix=prefix, _name=name, _translations=translations, *self.args, **dict(self.kwargs, **kwargs))
File "/home/rochacbruno/.virtualenvs/quokka-test-1/local/lib/python2.7/site-packages/flask_admin/form/upload.py", line 163, in __init__
super(FileUploadField, self).__init__(label, validators, **kwargs)
TypeError: __init__() got an unexpected keyword argument 'path'
Use https://github.com/nicolaiarocci/eve as default API layer, make it optional.
write a better utils/populate.py to load sample data from a json or yaml file
Where is the layout.html file that is mentioned in (/ templates / admin / base.html)?
Should the docs say:
~/$ virtualenv quokka-env
~/$ ... creating virtualenv in quokka-env........
~/$ cd quokka-env
~/$ source bin/activate
~/$ git clone https://github.com/rochacbruno/quokka
~/$ ...cloning in to quokka
Or is this just my personal preference? (I like the app to be in the virtualenv which you source).
After install, I'm unable to login using the superuser or user accounts. Passwords in the db seem to be stored as plain text [!].
I know that the blueprint template folder is added to the searchpath of templates but with a lower priority than the actual application’s template folder.
In that way, current post module , has a post folder under templates module to avoid this.
But is not working, also, i just tried to give a unique name(Jinja by default caches a template based on its name) to each module template, without success.
Also remove the template_folder module property and placed the templates under app main templates, without any success.
The only templates that are applied are those under themes.
is this the expected behavoir ?
How is it supposed to work ?
Themes are not supposed to know about modules stuff or they must ?
Thats the problem.
Here some log:
30.09 22:49:14 quokka ERROR Exception on /accounts/register [POST]
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/flask/app.py", line 1817, in wsgi_app
response = self.full_dispatch_request()
File "/Library/Python/2.7/site-packages/flask/app.py", line 1477, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/Library/Python/2.7/site-packages/flask/app.py", line 1381, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/Library/Python/2.7/site-packages/flask/app.py", line 1475, in full_dispatch_request
rv = self.dispatch_request()
File "/Library/Python/2.7/site-packages/flask/app.py", line 1461, in dispatch_request
return self.view_functionsrule.endpoint
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/flask_security/views.py", line 117, in register
user = register_user(**form.to_dict())
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/flask_security/registerable.py", line 41, in register_user
user=user, confirmation_link=confirmation_link)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/flask_security/utils.py", line 260, in send_mail
mail.send(msg)
File "/Library/Python/2.7/site-packages/flask_mail.py", line 415, in send
with self.connect() as connection:
File "/Library/Python/2.7/site-packages/flask_mail.py", line 123, in enter
self.host = self.configure_host()
File "/Library/Python/2.7/site-packages/flask_mail.py", line 137, in configure_host
host = smtplib.SMTP(self.mail.server, self.mail.port)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/smtplib.py", line 250, in init
(code, msg) = self.connect(host, port)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/smtplib.py", line 310, in connect
self.sock = self._get_socket(host, port, self.timeout)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/smtplib.py", line 285, in _get_socket
return socket.create_connection((host, port), timeout)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py", line 571, in create_connection
raise err
error: [Errno 61] Connection refused
30.09 22:49:14 werkzeug INFO 127.0.0.1 - - [30/Sep/2013 22:49:14] "POST /accounts/register HTTP/1.1" 500 -
I would like to propose to allow Markdown as input for the body text in the admin interface. For instance lepture: http://lab.lepture.com/editor/ is a nice editor for this.
Markdown would separate content and design more, while still allowing the use of HTML. What would be the most convenient way to detect which editor to use? I gave it a class markdown-editor or html-editor.
Implementation is really simple with https://flask-misaka.readthedocs.org/en/latest/ and we can always cache the html output, so no performance loss.
Another advantage is that Markdown is easy to read even without parser. This stored in the database can have strong advantages for the eventual API.
based on channel ancestors and "inherit" atribute, every save of Channel and Content should set its default template_suffix and specific theme
I like the auto-load feature, you just drop a module folder and it is done! but it is error prone and I am already having trouble with naming problems.
Now the idea is to keep the folder /modules and the same blueprint structure, but it will not be autoloaded, to load a blueprint it will need to be activated in admin.
When you upload/extract a module in to /modules it will be automatically added to "available modules" but the default state will be inactive, so in admin you need to click in activate button and then it will perform validations, run the tests and check for naming issues.
It is urgent!
Add support howto:
Configure Nginx + uWSGI or Gunicorn
Add captcha in comment form,
Add required email in comment form
python manage.py populate
should populate the database with sample data.
at 367 line: 'path': form.FileUploadField
error information:
AttributeError: 'module' object has no attribute 'FileUploadField'
flask-admin 1.0.6(installed)
Set Post or Page in home CMS
Settings are not generic on first install. (mongodb not localhost, secret key not auto-generated, Flask-Mail settings, etc).
How do we want to handle this? I don't mind the settings file like it is, makes for easier provisioning. However, I like the idea of writing the settings file in a wizard-like way, after bootstrap and with a one-time-use admin account.
In channel, if render_content is selected with a reference to any Content, then this channel url should render the Content detail template/context without redirect.
in admin the access to content needs to be controlled by role.
by default we have admin, moderator, editor, viewer
Implement a general model AccessControl with roles_accepted definition for read/edit/list/delete
This will be applied for Channel and Content
This should have a default api method to check the permission
The generic views and api should call this method to define if access is allowed.
The admin should query the fields to define the access control.
Implement a https://github.com/audreyr/cookiecutter based template for quokka blueprints.
hi,i want to get a random Content.
how do ?
Each content can have multiple authors.
The html described above is importing the same js twice in a row (foundation.js).
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.