This is a management systems framework based on django. It contains the core functionality that is required for any management project
(eg: Authentication, Logging, User management, Goup management, Authorization, Forgot password, Confirmation, ...etc). It also provides advanced
logging and a ready to use API for each new model you create.
Clone Lava repository from remote to your project directory:
/project/root$ git clone git@bitbucket.org:username/lava.gitAdd the following urls to your project's urls.py urlpatterns.
path("ekadmin/", include("lava.urls")),
path("api-auth/", include("rest_framework.urls")),
path("auth/", include("djoser.urls")),
path("auth/", include("djoser.urls.authtoken")),Add the following code to the end of your project urls.py file:
from django.conf.urls.static import static
if settings.DEBUG is True:
urlpatterns += static(
settings.MEDIA_URL, document_root=settings.MEDIA_ROOT
)
urlpatterns += static(
settings.EXPOSED_URL, document_root=settings.EXPOSED_ROOT
)Add the following code to the bottom of your project settings file, right above local_settings:
try:
from lava.project_settings import *
except ImportError:
passInstall all the dependancies from requirements.txt file using the following command:
/project/root$ pip install -r lava/requirements.txt- Writing tests
- Code review
- Other guidelines
Send all your questions and thoughts to: EKBlocks