https://github.com/hackersandslackers/django-views-tutorial
:rocket: :white_check_mark: Building Django Web-Apps with Function-based and Class-based Views
https://github.com/hackersandslackers/django-views-tutorial
django django-application mvc-framework python tutorial web-application
Last synced: 9 months ago
JSON representation
:rocket: :white_check_mark: Building Django Web-Apps with Function-based and Class-based Views
- Host: GitHub
- URL: https://github.com/hackersandslackers/django-views-tutorial
- Owner: hackersandslackers
- License: mit
- Created: 2020-04-03T04:01:05.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2025-04-11T19:35:23.000Z (10 months ago)
- Last Synced: 2025-04-28T11:26:58.448Z (9 months ago)
- Topics: django, django-application, mvc-framework, python, tutorial, web-application
- Language: JavaScript
- Homepage: https://django.hackersandslackers.app/
- Size: 1.1 MB
- Stars: 19
- Watchers: 1
- Forks: 7
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Django Views Tutorial




[](https://github.com/hackersandslackers/django-views-tutorial/issues)
[](https://github.com/hackersandslackers/django-views-tutorial/stargazers)
[](https://github.com/hackersandslackers/django-views-tutorial/network)

This repository contains source code for accompanying tutorial: [https://hackersandslackers.com/creating-django-views/](https://hackersandslackers.com/creating-django-views/)
A working demo of this source code is hosted here: [https://django.hackersandslackers.app/](https://django.hackersandslackers.app/)
## Installation
**Installation via `requirements.txt`**:
```shell
$ git clone https://github.com/hackersandslackers/django-views-tutorial.git
$ cd django-views-tutorial
$ python3 -m venv .venv
$ source .venv/bin/activate
$ pip3 install -r requirements.txt
$ python3 manage.py runserver
```
## Configuration
Configuration is handled by creating a **django_views_tutorial/.env** file (see **.env.example** for reference) Replace values with your own:
```.env
DEBUG=True
SECRET_KEY="yoursecretkey"
DJANGO_SETTINGS_MODULE="django_views_tutorial.settings"
DATABASE_ENGINE=django.db.backends.mysql
DATABASE_NAME=databasename
DATABASE_USER=username
DATABASE_PASSWORD=password
DATABASE_HOST=0.0.0.0
DATABASE_PORT=1234
DATABASE_CERTIFICATE="../creds/ca-certificate.crt" # (optional)
```
-----
**Hackers and Slackers** tutorials are free of charge. If you found this tutorial helpful, a [small donation](https://www.buymeacoffee.com/hackersslackers) would be greatly appreciated to keep us in business. All proceeds go towards coffees], and all coffee goes towards more content.