This is a CMS-enabled website for Vauhtijuoksu ry and its speedrun marathons.a
The project is built using Django and Django CMS.
Note: The project is currently a work in progress, and not in production.
- Django 3.2
- Django CMS 3.9
- Bootstrap 5
Required:
- Python 3.9 (recommended), 3.7 or later is likely to work.
- pip
- NodeJS/NPM
OR use Docker for development (see below)
Recommended:
- Pipenv is recommended for package & environment management
- Install NPM dependencies with
npm install
- Python dependencies are defined in the
Pipfile
, and can be installed with Pipenv:pipenv install
- Activate the virtual env created by pipenv with:
pipenv shell
- Initialize database
python manage.py migrate
- Create the admin user
python manage.py createsuperuser
- Run the development server
python manage.py runserver
- Server should now be up running at http://localhost:8080
docker-compose build
docker-compose up
should build & start the app in a Docker container.docker-compose exec web migrate
docker-compose exec web createsuperuser
This is intended for development only!
After installing & running the server for the first time, there is not yet any content on our webpage, so we must start by creating some.
- Navigate to the admin site at http://localhost:8000/admin and log in with your newly created superuser credentials
- The default page creation wizard won't work here, so close it. Press "example.com" in the cms toolbar at the top of the page
- Go to "Pages" and press Add new Page. Give it a name ("frontpage" or whatever) and press Save at the Bottom
- In the page listing, press the eye symbol to navigate to the new page. It has no content yet, but the menu should pop up including the page itself.
- In the CMS toolbar, open the sidebar from the top right
- In the sidebar, you can press the "plus" button to add Plugins to your CMS page. Plugins are basically pieces of content that will be rendered on the page.
- Select the type of plugin you want to add, then modify the content to whatever you want
Plugins can be reordered and modified however you want. Some plugins can even be nested!
Any changes you make to your pages won't actually go live until you publish the changes. Publishing is easy, just press the button in the upper right corner!
You can see the status of all pages in the Pages listing visited before