A minimalistic reactive framework for Django Templates
Project description
A minimalistic reactive framework for Django Templates.
This project brings Svelete-like thinking for Django Templates. The computation starts at the backend and continues in the frontend.
This project is licensed under the MIT License.
This project is experimental and under development.
Requirements
This package requires:
- Python>=3.8 (tested in 3.8, 3.9 & 3.10.0-rc.2)
- Django>=3.1 (tested in 3.1, 3.2 & 3.2.7)
Installation
You can install this package by two ways:
-
The easy way - Type the following to a command line:
pip install --upgrade https://github.com/Tal500/django-reactive-framework/archive/master.zip
-
The deep way (for internal development):
-
Clone the package:
git clone https://github.com/Tal500/django-reactive-framework.git
-
Add the path for the repository directory
src
to your system PYTHONPATH. This way, the python package, which is insrc/django_reactive
, will be visible.
-
Kepp in mind that this package is still under development.
Example
You can start see an example by either one of these three methods:
-
(Recomended) Browse the live example in Heroko (might take time to wake up): https://django-reactive-example.herokuapp.com
-
Starting the example server:
-
Open the command line in the root directory and execute the following:
python example/manage.py runserver
You may ignore the following migration warning, since we don't use database at all:
You have 18 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): admin, auth, contenttypes, sessions. Run 'python manage.py migrate' to apply them.
-
Open your browser and browse to:
http://127.0.0.1:8000/
-
-
Import the example urls to your server (listed in
src/django_reactive_framework/urls.py
):-
Add the following patterns to yout urls.py:
urlpatterns += [ path('reactive_example/', include('django_reactive_framework.urls')) ]
-
Then, the example will be in the path
reactive_example/example/
in your server.
-
Look more at src/django_reactive/templates/reactive_example.html
for the source of the example.
Communication
For any communication you may start a discussion or report an issue in the GitHub page:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for django-reactive-framework-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 76c26cde0ed88851a956b723ca9ada43b9e7d5045163e1daa87b21ecd08d2810 |
|
MD5 | dffdc452616d2e30362957f55d70e602 |
|
BLAKE2b-256 | 36591cc59480ad36f1d6008afee0589a23b60bbe1ace98a66587e7d822b908fd |
Hashes for django_reactive_framework-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3771f0d10b76ebe646e960ec993821029800898fae166cb98d6433a5ed7adbc5 |
|
MD5 | 47cf0f40be174699692913360475ceb5 |
|
BLAKE2b-256 | eafcfdb9dbdf06fe40b8a98675a94f4fd870bd89b0f34a8935a559f348b4a3d7 |