Files
toiminnanohjaus-django/README.md
T
petriandClaude Opus 5.5 42cf195bd9 Django 5.2 LTS -projektipohja
- config-asetuspaketti, MariaDB (XAMPP) -tietokanta .env-asetuksilla
- suomi / Europe/Helsinki, templates- ja static-kansiot
- requirements.txt, .env.example, README ja dokumentaatio

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-29 11:36:03 +02:00

26 lines
913 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Toiminnanohjaus (Django 5.2 LTS)
## Vaatimukset
- Python 3.14
- XAMPP (vain MariaDB/MySQL käytössä – Apachea tai htdocs-kansiota ei tarvita)
## Käyttöönotto
1. Käynnistä **MySQL** XAMPP Control Panelista.
2. Luo tietokanta (kerran):
```powershell
C:\xampp\mysql\bin\mysql.exe -u root -e "CREATE DATABASE IF NOT EXISTS ``django-toiminnanohjaus`` CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;"
```
3. Kopioi `.env.example` → `.env` ja täytä arvot (jos ei vielä ole).
4. Asenna riippuvuudet ja aja migraatiot:
```powershell
py -3.14 -m venv .venv
.venv\Scripts\python -m pip install -r requirements.txt
.venv\Scripts\python manage.py migrate
.venv\Scripts\python manage.py createsuperuser
```
5. Käynnistä kehityspalvelin:
```powershell
.venv\Scripts\python manage.py runserver
```
Avaa http://127.0.0.1:8000/ ja ylläpito http://127.0.0.1:8000/admin/