Repository for the coding challenge.
At the company Widgets and More, we pride ourselves making the best widgets in the industry and for all your widgety needs. However, in this day and age, one needs a digital presence in order to get the word out about our wonderful widgets, any information and documentation regarding said widgets, and ways to interact with our widget-buying customers and clients.
With a launch of the newest and shiniest Widget, yet, we need to get the news out there and need a new type of page in our content management system (CMS).
Time Limit: 90 minutes
Requirements:
-
Create a
WidgetDocumentation
within the Wagtail CMS. This page type should be able to handle a title, description, and body content as rich text. -
Since the documentation page can become rather long, we'll want a table of contents at the top of the page that can deeplink to the different major sections/headings
We recommend using the miniconda but virtual environments or anything with a working pip and python 3.9 should work.
If you're not there already, go to the directory where you cloned this project and then run the following commands:
conda env create -f=requirements/conda_env.yml
conda activate wagtail_demo
pip install -r requirements/apps.txt
Install browsers for Playwright
playwright install
Next you'll run [Django's][django] manage.py
to initialize the database and create the super user account:
./manage.py migrate
./manage.py createsuperuser
Follow the prompts. Your password will only be used for local access, so don't worry about making it secure.
pytest
Start the [Django] development server with manage.py
:
./manage.py runserver