Skip to content

Project config

Amin Zamani edited this page Mar 22, 2023 · 8 revisions

`

Add app to settings.py

INSTALLED_APPS = [ … , 'app_name' ]

App templates folder

create folder appfolder/templates/appname

Project templates folder:

create folder projectname/templates

settings.py template config

Project templates settings.py: TEMPLATES = [ { … 'DIRS': [BASE_DIR / 'templates', ], … }

Create Static folder:

project_name\static\

Static folder (settings.py):

STATIC_URL = '/static/' STATICFILES_DIRS = [ BASE_DIR / 'static' ] STATIC_ROOT = 'static_root'

To use PostgresSQL

pip install psycopg2

settings.py

DATABASE = { 'default': { 'ENGINE': 'django.db.backends.postgresql', 'NAME': 'blog', 'USER': 'admin', 'PASSWORD': '123456', 'HOST': 'localhost', 'PORT': '5432'

`

Python

Python Essentials 1 (PCEP)

Introduction to Python and computer programming

Data types, variables, basic I/O operations, and basic operators

Boolean values, conditional execution, loops, lists and list processing, logical and bitwise operations

Clean Code

Algorithms

Django

Django Rest Framework

API

pip

SQLAlchemy

FastAPI

Pytest

TDD

Git

Linux

Docker

Python Testing

Interview Questions

Clone this wiki locally