pigeonmow / pokemon-django

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pokémon Django

Requirements

This application requires Python 3

Good to know

The application uses the Django web framework to take care of the boilerplate code and provide project structure.

This project is using requirements.txt at its most basic level. e.g. it's not configured to deal with new package releases, different environments etc.

You will need to have a MySQL server and database running on localhost set up by some means. The project is already set up to use mySQL, connection settings can be edited in the settings file DJANGO_SETTINGS_MODULE referenced in manage.py.

Get started

  1. Clone this repository to your local machine
git clone repo-url-tbc
  1. Navigate to the project folder
cd pokemon-django
  1. Create a virtual environment
python -m venv venv
  1. Activate the virtual environment you just created
.\venv\Scripts\activate
  1. Install packages
python -m pip install -r requirements.txt
  1. Add your database connection settings
  2. Run migrations to create database tables
python manage.py makemigrations
python manage.py migrate
  1. start the development server
python manage.py runserver

Working tips

Pinning package requirements:

python -m pip freeze > requirements.txt

Deactivate the virtual environment:

deactivate

About


Languages

Language:Python 100.0%