A tool to help you gain vocabulary (Web-based dictionary using Merriam-Webster api).
- Get your Django secret key from Djecrety and fill it in
django_secret_key
- Set
ALLOWED_HOSTS
option - Fill in the
DIC_KEY
andTHES_KEY
option. You may get this information at Merriam-Webster Dev Center - Use
pip install -r requirements.txt
to install dependencies. - Put following command into your command prompt
python manage.py collectstatic
- Enter the following command into your command prompt to initialize the database.
python manage.py makemigrations
python manage.py migrate
- The following command will help you to create a superuser.
python manage.py createsuperuser
- Use the following command to start the Django service
python manage.py runserver
- Usually, the service will automatically run on
port:8000
.
And you should notice that the host and port can be modified by running those commands
python manage.py runserver <your_host>:<your_port>
- You may get more details by visiting Django Documents
- And finally, by visiting
http://<your_host>:<your_port>/
, you are good to go.
MIT License
Copyright (C) 2021 ZHChain