django-templatestore is a Django application/ UI tool to edit and save your templates.
Follow steps to quickly add django-templatestore to your existing django application:
- Install
django-templatestorepip install django-templatestore - Add
templatestoreto yourINSTALLED_APPSinsettings.py:INSTALLED_APPS = [ ... 'templatestore', ] - Include the
templatestoreURLconf in your project'surls.py:path('templatestore/', include('templatestore.urls')), - Run
python manage.py collectstaticto collect the static files into root static folder. - Run
python manage.py migrateto create thetemplatestoremodels. - Start the development server and visit
http://127.0.0.1:8000/templatestore/to start editing templates.
Currently following templating libraries are supported:
-
pythonpip install -r requirements.txt # pythonnodecd templatestore/frontend/ && npm install && cd - # node packages
-
- Migrate database
python manage.py migrate - Build js and collect static files
cd templatestore/frontend/ && npm run build && cd - && python manage.py collectstatic --noinput - Run application
python manage.py runserver
- Migrate database