A simple Django application demonstrating database integration, using external rest apis, templating, static assets and forms. Shows the latest surf conditions in Manly, NSW.
- Check out this code
- Install Python (tested using Python 3.7.3)
- Create a virtual environment using virtualenv
- Install Django
pip install Django==2.2
- Install requests
pip install requests=2.21
- In the code directory in a terminal, run your database migrations
python manage.py migrate
- Run your local server
MAGIC_SEAWEED_API_KEY=[API_KEY] python manage.py runserver
- In a browser, navigate to http://localhost:8000. This has been tested using Chrome.
You will need an API key for MagicSeaweed. This can be requested at MagicSeaweed, or you may have been provided with one if you have been sent here as a code example.
This project is licensed under the MIT License - see the LICENSE.md file for details