https://github.com/dewanshrawat15/django-basics
https://github.com/dewanshrawat15/django-basics
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/dewanshrawat15/django-basics
- Owner: dewanshrawat15
- Created: 2018-12-22T14:58:04.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-06-20T07:13:47.000Z (almost 6 years ago)
- Last Synced: 2025-02-09T12:15:20.432Z (3 months ago)
- Language: Python
- Size: 23.4 KB
- Stars: 0
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.MD
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README
# Django Basics
The aim is to teach Django to a small group of people.
- ```mysite``` is a basic example of how ```views.py, urls.py and django templating``` works.
- ```myapp``` is an example of how ```forms.py, models.py, admin.py, views.py, urls.py and django templating``` works.
This is more relatable to the development progress in Django.## Installation
- Make a virtual environment by running ```python -m venv myvenv```
- Activate the virtual environment by:
- ```myvenv\Scripts\activate``` on Windows
- ```source myvenv/bin/activate``` on MacOS, Linux, Ubuntu
- Run ```pip install django```
- ```cd mysite``` or ```cd myapp```
- ```python manage.py makemigrations app```
- ```python manage.py migrate```
- ```python manage.py runserver```