Skip to content

hackersandslackers/django-intro-tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

34 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Django Intro Tutorial

Python Django GitHub Last Commit GitHub Issues GitHub Stars GitHub Forks

Django Intro Tutorial

A beginner's tutorial to launching a simple Django web app (part 1 of a series). This repository is the source code for the tutorial found here: https://hackersandslackers.com/getting-started-django/

Installation

Installation via requirements.txt:

$ git clone https://github.com/hackersandslackers/django-intro-tutorial.git
$ cd django-intro-tutorial
$ python3 -m venv myenv
$ source myenv/bin/activate
$ pip3 install -r requirements.txt
$ python3 manage.py runserver

Installation via Pipenv:

$ git clone https://github.com/hackersandslackers/django-intro-tutorial.git
$ cd django-intro-tutorial
$ pipenv shell
$ pipenv update
$ python3 manage.py runserver

Installation via Poetry:

$ git clone https://github.com/hackersandslackers/django-intro-tutorial.git
$ cd django-intro-tutorial
$ poetry shell
$ poetry update
$ python3 manage.py runserver

How to use

The scope of this tutorial covers the modest scope of serving a single page template via Django complete with styles and other static assets. Deploying this project won't result in anything glorious, as it is intended to help newcomers grasp some basic Django concepts such as:

  • Installing and running Django locally
  • Configuring Django settings properly
  • Creating and managing โ€œappโ€ modules
  • Serving templates via Djangoโ€™s native templating system
  • Styling templates with static assets
  • Routing in Django

Hackers and Slackers tutorials are free of charge. If you found this tutorial helpful, a small donation would be greatly appreciated to keep us in business. All proceeds go towards coffee, and all coffee goes towards more content.