Fork me on GitHub

Project Notes

#262 Django Starter Project

The basic Django app framework

Notes

Install Dependencies

Using Python 3.7.3 to create and setup a virtual environment with the requirepements as specified in requirements.txt:

$ python -V
Python 3.7.3
$ python -m venv venv
$ source venv/bin/activate
$ pip install --upgrade pip
$ pip install -r requirements.txt

Using startproject

Use startproject to create an app called “minime”:

$ django-admin startproject minime

Starting the project:

$ cd minime
$ python manage.py migrate
$ python manage.py runserver
Watching for file changes with StatReloader
Performing system checks...

System check identified no issues (0 silenced).
May 16, 2023 - 15:01:47
Django version 3.2.18, using settings 'minime.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CONTROL-C.
[16/May/2023 15:02:15] "GET / HTTP/1.1" 200 10697
[16/May/2023 15:02:15] "GET /static/admin/css/fonts.css HTTP/1.1" 200 423
[16/May/2023 15:02:15] "GET /static/admin/fonts/Roboto-Bold-webfont.woff HTTP/1.1" 200 86184
[16/May/2023 15:02:15] "GET /static/admin/fonts/Roboto-Regular-webfont.woff HTTP/1.1" 200 85876
[16/May/2023 15:02:15] "GET /static/admin/fonts/Roboto-Light-webfont.woff HTTP/1.1" 200 85692

Loading http://127.0.0.1:8000/:

step1

Credits and References

About LCK#262 pythondjango

This page is a web-friendly rendering of my project notes shared in the LittleCodingKata GitHub repository.

Project Source on GitHub Return to the LittleCodingKata Catalog
About LittleCodingKata

LittleCodingKata is my collection of programming exercises, research and code toys broadly spanning things that relate to programming and software development (languages, frameworks and tools).

These range from the trivial to the complex and serious. Many are inspired by existing work and I'll note credits and references where applicable. The focus is quite scattered, as I variously work on things new and important in the moment, or go back to revisit things from the past.

This is primarily a personal collection for my own edification and learning, but anyone who stumbles by is welcome to borrow, steal or reference the work here. And if you spot errors or issues I'd really appreciate some feedback - create an issue, send me an email or even send a pull-request.

Follow the Blog follow projects and notes as they are published in your favourite feed reader