Code samples from the Django tutorial series.
- Part 1 - Getting Started
- Part 2 - Fundamentals
- Part 3 - Advanced Concepts
- Part 4 - Authentication
- Part 5 - ORM
- Part 6 - Class-Based Views
- Part 7 - Deployment
For the complete tutorial series index click here.
First, clone the repository to your local machine:
git clone https://github.com/naoyuki-hirata-biz/django42-beginners-guide.git
cd django42-beginners-guide
docker compose build
docker compose up
docker compose exec python bash
python -m venv django42
source django42/bin/activate
Install the requirements:
pip install -r requirements.txt
Setup the local configurations:
cp .env.example .env
Create the database:
mysql -h mysql -u root
create database myproject;
python manage.py migrate
Finally, run the development server:
python manage.py runserver 0.0.0.0:8000
The project will be available at 127.0.0.1:8000.
The source code is released under the MIT License.
The tutorials, documentations, comics are licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.