Query larni optimizatsiya qilish uchun yaxshi package.
https://django-debug-toolbar.readthedocs.io/en/latest/index.html
https://django-debug-toolbar.readthedocs.io/en/latest/index.html
👍1
Main purpose of this article is solving N+1 problem of Database Queries in Django.
Django solves this issue with perfetch_related and select_related. You can read it more in this link: https://medium.com/django-rest/speeding-up-django-queries-59697895a615
Django solves this issue with perfetch_related and select_related. You can read it more in this link: https://medium.com/django-rest/speeding-up-django-queries-59697895a615
Medium
— Speeding Up Django Queries
Learn technques on how you can speed up your Django queries. This can help ease load on your database and dramatically reduce response…
NGNIX.pdf
5.3 MB
Nginx has interested me for many months, nowadays i have some time to learn new thing ,my choice was Nginx.
So I am going to train with Nginx and know more informations.
if you know good resources about Nginx ,please share in comment.
So I am going to train with Nginx and know more informations.
if you know good resources about Nginx ,please share in comment.
❤1
SOLID is one of the best principles. It gives chance to create high-quality, maintanable code.
WIKIPEDIA
WIKIPEDIA
Medium
Best Practice Programming and SOLID Principles in Django Rest Framework
This article is being written as part of the individual review criteria for PPL Fasilkom UI 2023.
F expression in Django.
This is cool expression to use where you send queries using the Django ORM to DB.
*You can use this expression to combine some fields in one Table and not takes many data from database.
This is cool expression to use where you send queries using the Django ORM to DB.
*You can use this expression to combine some fields in one Table and not takes many data from database.
Django Tutorial
I suppose this is best tutorial for Beginner because before one or two years I learned some languages like html, css, js, python, c++ in w3school.It is understandable, readable, short texts and more comfortable than another platforms.
I suppose this is best tutorial for Beginner because before one or two years I learned some languages like html, css, js, python, c++ in w3school.It is understandable, readable, short texts and more comfortable than another platforms.
W3Schools
W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more.
👍1
Django Rest OAuth
Integrate Social Login that is Google, Facebook, Twitter.
Video: https://youtu.be/d7OxfJZOIhQ
Source: https://github.com/CryceTruly/incomeexpensesapi
Integrate Social Login that is Google, Facebook, Twitter.
Video: https://youtu.be/d7OxfJZOIhQ
Source: https://github.com/CryceTruly/incomeexpensesapi
YouTube
Django REST OAuth. Enable Social Login via Google, Facebook, and Twitter. #22
Django REST OAuth. Enable Social Login via Google, Facebook, and Twitter. Django Rest Framework Project Tutorial [22]
Full project source code.
https://github.com/CryceTruly/incomeexpensesapi
Features Breakdown with Video Links:
1. Project Introduction…
Full project source code.
https://github.com/CryceTruly/incomeexpensesapi
Features Breakdown with Video Links:
1. Project Introduction…
What do you think guys ?
Django Best Practices 🌟
📁 Organize Django settings with multiple files:
- Create a settings/ directory
- Include separate files for each environment:
- base.py (common settings)
- local.py (local dev settings)
- staging.py (staging version)
- test.py (test settings)
- production.py (live server settings)
Is that true thought or no ?
Please write down your opinions in comment
Django Best Practices 🌟
📁 Organize Django settings with multiple files:
- Create a settings/ directory
- Include separate files for each environment:
- base.py (common settings)
- local.py (local dev settings)
- staging.py (staging version)
- test.py (test settings)
- production.py (live server settings)
Is that true thought or no ?
Please write down your opinions in comment
If you want to use multiple database in django project you can do it, It is just amazing stuff.
First of all you should fill credentials of your second or third database in "DATABASES" key dict which is located in settings.py of django project, They are included ENGINE, NAME, USER, PASSWORD, HOST, PORT and Name of Database which is using by django orm for Queries For example they are may be second_db or third_db or somthing that you want.
So and after you do all things that we said above you can use db you added in your views with
Django’s admin doesn’t have any explicit support for multiple databases - more
First of all you should fill credentials of your second or third database in "DATABASES" key dict which is located in settings.py of django project, They are included ENGINE, NAME, USER, PASSWORD, HOST, PORT and Name of Database which is using by django orm for Queries For example they are may be second_db or third_db or somthing that you want.
So and after you do all things that we said above you can use db you added in your views with
using
statement to send queries, if you are saving something to db you can do: my_object.save(using="legacy_users")
through thi you can save one data to multiple db with moving like this:p = Person(name="Fred")There is one issue with using Multiple db
p.save(using="first")
p.save(using="second")
Django’s admin doesn’t have any explicit support for multiple databases - more
❤1
PythonAnyWhere has been supporting free virtual mashines to deploy web application or websites.
This guide might be useful for you to deploy Django application to production I suppose it will be easy to understand and you can run on prod in short time.
This guide might be useful for you to deploy Django application to production I suppose it will be easy to understand and you can run on prod in short time.
API Made Easy 🔥.pdf
18.8 MB
The simple Guide for the API principles.
1. HTTP Verbs:
* POST - send data to server to create resource
* GET - ...
2. HTTP Status Code:
* 1xx - Informational
* 2xx - Success
3. Response Headers:
* Content-Type - Specifies MIME type of the data in the response.
...
4. API Design:
* GraphQL - a query language and runtime for building APIs.
...
5. API Architectures
6. API Design Patterns
7. API Security
8. API Testing
...
1. HTTP Verbs:
* POST - send data to server to create resource
* GET - ...
2. HTTP Status Code:
* 1xx - Informational
* 2xx - Success
3. Response Headers:
* Content-Type - Specifies MIME type of the data in the response.
...
4. API Design:
* GraphQL - a query language and runtime for building APIs.
...
5. API Architectures
6. API Design Patterns
7. API Security
8. API Testing
...
Forwarded from ShukurDev (ѕнυĸυralι)
How to make Basic and Full-Text Search in the Django using PostgreSQL 🔎
Language: 🇺🇿
* Used Django queryset lookups.
* Created 1000 Posts to test with Faker package.
* Given information about SearchVector, SearchQuery, SearchRank and Practise on them.
* To have source code in Github Repo.
Article: link
LinkedIn: link
To get source code on Github: link
Language: 🇺🇿
* Used Django queryset lookups.
* Created 1000 Posts to test with Faker package.
* Given information about SearchVector, SearchQuery, SearchRank and Practise on them.
* To have source code in Github Repo.
Article: link
LinkedIn: link
To get source code on Github: link
Telegraph
Qanday qilib Qidirish(Search) tizimini qo'shish mumkin Django da PostgreSQL dan foydalanib.
Search - bu biron bir ma'lumotni bittalab kurib chiqib topishning urniga qidirish orqali topishni imkonini beradi. Ko'pincha ma'lumot ko'p bo'lgan website, application yoki boshqa kottaroq platformalarda ko'zlangan(qidirilayotgan) ma'lumotni qisqa vaqt ichida…