quokkaproject / quokka

LOOKING FOR NEW MAINTAINER - Quokka is a Content Management System - `docker run --rm -it -p 5000:5000 quokka/quokka`
http://www.quokkaproject.org
Other
2.23k stars 448 forks source link

Relase PyPi package and change the core architecture #97

Closed rochacbruno closed 9 years ago

rochacbruno commented 10 years ago

Draft

Quokka should be installed via pip

pip install quokka

From the current repo, themes, mediafiles, staticfiles, manage, run, wsg will be removed.

The "quokka" package should only contain the core and the base modules.

Once installed user should do

quokka startproject project_name

So using CookieCutter it will ask some things and create the following tree.

project_name
|__ mediafiles/
|__ themes/
    |__ default/
    |__ admin/
|__ static/
|__ __init__.py
|__ app.py
|__ wsgi.py
|__ manage.py
|__ local_settings.py

So app.py will instantiate the Quokka application and expose this.

The modules

Modules should be also installed via PyPI

pip install quokka-cart

So Quokka should use the same way Flask threat extensions but with a module namespace.

from quokka.modules.cart import Cart, Product

Once installed, modules will be available in the CMS, only need to activate it via settings or via admin.

ellisonleao commented 10 years ago

The actual modules implemented on quokka will become core models (Post, Accounts, etc) ?

rochacbruno commented 10 years ago

the core modules posts, media and accounts will not change, they will be in quokka/modules folder.

But, in modules/__init__.py we will do the same hack that Flask does with .ext allowing form quokka.modules.* to import packages from dist-packages.

ellisonleao commented 10 years ago

nice. :+1:

avelino commented 10 years ago

If add the core CMS at PyPI and make project to generate a project?

rochacbruno commented 9 years ago

229