mozilla / sumo-experiments

1 stars 5 forks source link

Setup a demo page to simulate the existing article in Kitsune. #4

Closed akatsoulas closed 5 years ago

akatsoulas commented 5 years ago

This is needed for local development.

johngian commented 5 years ago

Steps to setup local page for experiment development:

>  make init
>  docker-compose exec web ./manage.py generatedata
>  make djshell
$ipython > from kitsune.wiki.models import Document
$ipython > doc = Document.objects.all().order_by('?')[0]
$ipython > doc.slug = 'example'
$ipython > doc.save(update_fields=['slug'])

Then 127.0.0.1:8000/kb/example should serve your example document