https://github.com/fabienh27/pokeproject-django
A personal project to learn Python & Django using Tailwind CSS for design
https://github.com/fabienh27/pokeproject-django
django pokemons python
Last synced: 7 months ago
JSON representation
A personal project to learn Python & Django using Tailwind CSS for design
- Host: GitHub
- URL: https://github.com/fabienh27/pokeproject-django
- Owner: FabienH27
- Created: 2021-02-24T15:49:54.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-10-08T18:42:19.000Z (12 months ago)
- Last Synced: 2025-01-12T08:39:20.288Z (9 months ago)
- Topics: django, pokemons, python
- Language: CSS
- Homepage:
- Size: 297 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PokeProject

A personal project to learn Python & Django.
## Configuration
- In the pokeproject folder : copy `.env.example` file to `.env`
- Change your settings inside the `.env` file to match your MySQL Database configuration
- Generate a new secret key from the cmd with : `python -c 'from django.core.management.utils import get_random_secret_key; print(get_random_secret_key())' `
- Paste this key to the `.env` file as follows : `SECRET_KEY=your_key`### Load pokemons
- Create a database named after what you wrote in the `.env` file, it could be `pokebase`
- Run the command : `py pokemons\getPokemons.py`
> It could take a few minutes to load all pokemons### Start Django Server
- Run the command : `py manage.py runserver`
- Go to http://127.0.0.1:8000/pokemons/### Useful commands
```sh
docker build -t pokeproject .
``````sh
docker run -d -p 8080:8080 --name pokeproject pokeproject
```### Author
Fabien Hannon
### License
Licensed under the GPL License