{"id":23534,"date":"2026-05-05T20:53:20","date_gmt":"2026-05-05T20:53:20","guid":{"rendered":"https:\/\/umang.pk\/2026\/05\/05\/%d8%ac%db%8c%d9%86%da%af%d9%88-%d8%b1%db%8c%d8%b3%d9%b9-%d9%81%d8%b1%db%8c%d9%85-%d9%88%d8%b1%da%a9-%d8%a7%d9%88%d8%b1-%d8%b3%d8%a7%d8%af%db%81-%d8%ac%db%92-%da%88%d8%a8%d9%84%db%8c%d9%88-%d9%b9%db%8c\/"},"modified":"2026-05-05T20:53:38","modified_gmt":"2026-05-05T20:53:38","slug":"%d8%ac%db%8c%d9%86%da%af%d9%88-%d8%b1%db%8c%d8%b3%d9%b9-%d9%81%d8%b1%db%8c%d9%85-%d9%88%d8%b1%da%a9-%d8%a7%d9%88%d8%b1-%d8%b3%d8%a7%d8%af%db%81-%d8%ac%db%92-%da%88%d8%a8%d9%84%db%8c%d9%88-%d9%b9%db%8c","status":"publish","type":"post","link":"https:\/\/umang.pk\/en_us\/2026\/05\/05\/%d8%ac%db%8c%d9%86%da%af%d9%88-%d8%b1%db%8c%d8%b3%d9%b9-%d9%81%d8%b1%db%8c%d9%85-%d9%88%d8%b1%da%a9-%d8%a7%d9%88%d8%b1-%d8%b3%d8%a7%d8%af%db%81-%d8%ac%db%92-%da%88%d8%a8%d9%84%db%8c%d9%88-%d9%b9%db%8c\/","title":{"rendered":"\u062c\u06cc\u0646\u06af\u0648 \u0631\u06cc\u0633\u0679 \u0641\u0631\u06cc\u0645 \u0648\u0631\u06a9 \u0627\u0648\u0631 \u0633\u0627\u062f\u06c1 \u062c\u06d2 \u0688\u0628\u0644\u06cc\u0648 \u0679\u06cc \u06a9\u0627 \u0627\u0633\u062a\u0639\u0645\u0627\u0644 \u06a9\u0631\u062a\u06d2 \u06c1\u0648\u0626\u06d2 \u0627\u0633\u06a9\u0648\u067e\u0688 \u0646\u0648\u0679 \u0644\u06cc\u0646\u06d2 \u0648\u0627\u0644\u0627 API \u06a9\u06cc\u0633\u06d2 \u0628\u0646\u0627\u06cc\u0627 \u062c\u0627\u0626\u06d2"},"content":{"rendered":"\n<div id=\"\">\n<p>\u0627\u06af\u0631 \u0622\u067e \u0646\u06d2 \u0627\u06cc\u06a9 Django API \u0628\u0646\u0627\u06cc\u0627 \u06c1\u06d2 \u0627\u0648\u0631 \u06cc\u06c1 \u0633\u0648\u0686 \u0631\u06c1\u06d2 \u06c1\u06cc\u06ba \u06a9\u06c1 \u062a\u0635\u062f\u06cc\u0642 \u06a9\u06cc\u0633\u06d2 \u0634\u0627\u0645\u0644 \u06a9\u06cc \u062c\u0627\u0626\u06d2 \u062a\u0627\u06a9\u06c1 \u06cc\u06c1 \u06cc\u0642\u06cc\u0646\u06cc \u0628\u0646\u0627\u06cc\u0627 \u062c\u0627 \u0633\u06a9\u06d2 \u06a9\u06c1 \u06c1\u0631 \u0635\u0627\u0631\u0641 \u0635\u0631\u0641 \u0627\u067e\u0646\u06d2 \u0688\u06cc\u0679\u0627 \u062a\u06a9 \u0631\u0633\u0627\u0626\u06cc \u062d\u0627\u0635\u0644 \u06a9\u0631 \u0633\u06a9\u062a\u0627 \u06c1\u06d2\u060c \u0622\u067e \u0635\u062d\u06cc\u062d \u062c\u06af\u06c1 \u067e\u0631 \u067e\u06c1\u0646\u0686\u06d2 \u06c1\u06cc\u06ba\u06d4<\/p>\n<p>\u0632\u06cc\u0627\u062f\u06c1 \u062a\u0631 \u062c\u06cc\u0627\u0646\u06af\u0648 \u0679\u06cc\u0648\u0679\u0648\u0631\u06cc\u0644\u0632 \u0633\u06cc\u0634\u0646 \u067e\u0631 \u0645\u0628\u0646\u06cc \u062a\u0648\u062b\u06cc\u0642 \u0633\u06a9\u06be\u0627\u062a\u06d2 \u06c1\u06cc\u06ba\u06d4 \u062c\u0628 \u0641\u0631\u0646\u0679 \u0627\u06cc\u0646\u0688 \u0627\u0648\u0631 \u0628\u06cc\u06a9 \u0627\u06cc\u0646\u0688 \u0627\u06cc\u06a9 \u06c1\u06cc \u0633\u0631\u0648\u0631 \u067e\u0631 \u06c1\u0648\u062a\u06d2 \u06c1\u06cc\u06ba \u062a\u0648 \u06cc\u06c1 \u0627\u0686\u06be\u06cc \u0637\u0631\u062d \u06a9\u0627\u0645 \u06a9\u0631\u062a\u0627 \u06c1\u06d2\u06d4 \u0644\u06cc\u06a9\u0646 \u062c\u06cc\u0633\u06d2 \u06c1\u06cc \u0622\u067e \u0627\u0646\u06c1\u06cc\u06ba \u0627\u0644\u06af \u06a9\u0631\u062a\u06d2 \u06c1\u06cc\u06ba\u060c \u062c\u06cc\u0633\u06d2 \u06c1\u06cc Netlify \u06a9\u06cc React \u0627\u06cc\u067e PythonAnywhere \u06a9\u06d2 Django API \u06a9\u06d2 \u0633\u0627\u062a\u06be \u0628\u0627\u062a \u0686\u06cc\u062a \u06a9\u0631\u062a\u06cc \u06c1\u06d2\u060c \u0633\u06cc\u0634\u0646 \u06a9\u0631\u06cc\u0634 \u06c1\u0648\u0646\u0627 \u0634\u0631\u0648\u0639 \u06c1\u0648 \u062c\u0627\u062a\u0627 \u06c1\u06d2\u06d4<\/p>\n<p>\u06a9\u0648\u06a9\u06cc\u0632 \u062a\u0645\u0627\u0645 \u0688\u0648\u0645\u06cc\u0646\u0632 \u0645\u06cc\u06ba \u0627\u0686\u06be\u06cc \u0637\u0631\u062d \u0633\u06d2 \u0633\u0641\u0631 \u0646\u06c1\u06cc\u06ba \u06a9\u0631\u062a\u06cc \u06c1\u06cc\u06ba\u060c \u0627\u0648\u0631 \u0627\u0686\u0627\u0646\u06a9 \u0622\u067e \u06a9\u0627 \u0644\u0627\u06af \u0627\u0646 \u0633\u0633\u0679\u0645 \u06a9\u0627\u0645 \u06a9\u0631\u0646\u0627 \u0628\u0646\u062f \u06a9\u0631 \u062f\u06cc\u062a\u0627 \u06c1\u06d2\u06d4<\/p>\n<p>\u06cc\u06c1 \u0648\u06c1 \u062c\u06af\u06c1 \u06c1\u06d2 \u062c\u06c1\u0627\u06ba JWT (JSON Web Tokens) \u06a9\u0627\u0645 \u0645\u06cc\u06ba \u0622\u062a\u06d2 \u06c1\u06cc\u06ba\u06d4 JWT \u0635\u0627\u0631\u0641 \u06a9\u06cc \u062a\u0648\u062b\u06cc\u0642 \u06a9\u0627 \u0627\u06cc\u06a9 \u0628\u06d2 \u0648\u0637\u0646\u060c \u06a9\u0648\u06a9\u06cc \u0644\u06cc\u0633 \u0637\u0631\u06cc\u0642\u06c1 \u0641\u0631\u0627\u06c1\u0645 \u06a9\u0631\u062a\u0627 \u06c1\u06d2\u06d4 \u0688\u0648\u0645\u06cc\u0646\u0632\u060c \u0622\u0644\u0627\u062a \u0627\u0648\u0631 \u067e\u0644\u06cc\u0679 \u0641\u0627\u0631\u0645\u0632 \u067e\u0631 \u0628\u063a\u06cc\u0631 \u06a9\u0633\u06cc \u0631\u06a9\u0627\u0648\u0679 \u06a9\u06d2 \u06a9\u0627\u0645 \u06a9\u0631\u062a\u0627 \u06c1\u06d2\u06d4 \u0633\u0631\u0648\u0631 \u06a9\u0648 \u06a9\u0686\u06be \u06cc\u0627\u062f \u0631\u06a9\u06be\u0646\u06d2 \u06a9\u06cc \u0636\u0631\u0648\u0631\u062a \u0646\u06c1\u06cc\u06ba \u06c1\u06d2\u06d4 \u0622\u067e \u0635\u0631\u0641 \u0679\u0648\u06a9\u0646 \u06a9\u06d2 \u062f\u0633\u062a\u062e\u0637 \u06a9\u06cc \u062a\u0635\u062f\u06cc\u0642 \u06a9\u0631 \u0633\u06a9\u062a\u06d2 \u06c1\u06cc\u06ba \u0627\u0648\u0631 \u0628\u062e\u0648\u0628\u06cc \u062c\u0627\u0646 \u0633\u06a9\u062a\u06d2 \u06c1\u06cc\u06ba \u06a9\u06c1 \u062f\u0631\u062e\u0648\u0627\u0633\u062a \u06a9\u0648\u0646 \u06a9\u0631 \u0631\u06c1\u0627 \u06c1\u06d2\u06d4<\/p>\n<p>\u0644\u06cc\u06a9\u0646 \u062a\u0648\u062b\u06cc\u0642 \u0635\u0631\u0641 \u0622\u062f\u06be\u0627 \u0645\u0633\u0626\u0644\u06c1 \u06c1\u06d2\u06d4 \u0627\u06cc\u06a9 \u0628\u0627\u0631 \u062c\u0628 \u0622\u067e \u062c\u0627\u0646 \u0644\u06cc\u06ba \u06a9\u06c1 \u0622\u067e \u06a9\u06d2 \u0635\u0627\u0631\u0641\u06cc\u0646 \u06a9\u0648\u0646 \u06c1\u06cc\u06ba\u060c \u0622\u067e \u06a9\u0648 \u06cc\u06c1 \u06a9\u0646\u0679\u0631\u0648\u0644 \u06a9\u0631\u0646\u06d2 \u06a9\u06cc \u0636\u0631\u0648\u0631\u062a \u06c1\u06d2 \u06a9\u06c1 \u0648\u06c1 \u06a9\u06cc\u0627 \u062f\u06cc\u06a9\u06be \u0633\u06a9\u062a\u06d2 \u06c1\u06cc\u06ba\u06d4 \u06cc\u06c1 \u062c\u06af\u06c1 <strong>\u062f\u0627\u0626\u0631\u06c1 \u06a9\u0627\u0631 \u06a9\u06cc \u0648\u0636\u0627\u062d\u062a \u06a9\u0631\u06cc\u06ba\u06d4<\/strong> \u0627\u0646\u062f\u0631 \u0622\u0648<\/p>\n<p>\u0627\u0633\u06a9\u0648\u067e\u0646\u06af \u06a9\u0627 \u0645\u0637\u0644\u0628 \u06cc\u06c1 \u06cc\u0642\u06cc\u0646\u06cc \u0628\u0646\u0627\u0646\u0627 \u06c1\u06d2 \u06a9\u06c1 \u06c1\u0631 \u0635\u0627\u0631\u0641 \u06a9\u0648 \u0635\u0631\u0641 \u0627\u0633 \u06a9\u06d2 \u0627\u067e\u0646\u06d2 \u0688\u06cc\u0679\u0627 \u062a\u06a9 \u0631\u0633\u0627\u0626\u06cc \u062d\u0627\u0635\u0644 \u06c1\u06d2\u06d4 \u0635\u0627\u0631\u0641 A \u06a9\u0648 \u0635\u0627\u0631\u0641 B \u06a9\u0627 \u0688\u06cc\u0679\u0627 \u067e\u0691\u06be\u0646\u06d2\u060c \u062a\u0631\u0645\u06cc\u0645 \u06a9\u0631\u0646\u06d2 \u06cc\u0627 \u062d\u0630\u0641 \u06a9\u0631\u0646\u06d2 \u06a9\u06d2 \u0642\u0627\u0628\u0644 \u0646\u06c1\u06cc\u06ba \u06c1\u0648\u0646\u0627 \u0686\u0627\u06c1\u0626\u06d2 (\u0627\u0633 \u0635\u0648\u0631\u062a \u0645\u06cc\u06ba\u060c \u0646\u0648\u0679)\u06d4 \u06cc\u06c1\u0627\u06ba \u062a\u06a9 \u06a9\u06c1 \u0627\u06af\u0631 \u0648\u06c1 \u0635\u062d\u06cc\u062d ID \u06a9\u0627 \u0627\u0646\u062f\u0627\u0632\u06c1 \u0644\u06af\u0627\u062a\u06d2 \u06c1\u06cc\u06ba\u06d4<\/p>\n<p>\u0627\u0633 \u0679\u06cc\u0648\u0679\u0648\u0631\u06cc\u0644 \u0645\u06cc\u06ba\u060c \u0622\u067e \u0627\u06cc\u06a9 \u067e\u0631\u0627\u0626\u06cc\u0648\u06cc\u0679 \u0646\u0648\u0679 \u0644\u06cc\u0646\u06d2 \u0648\u0627\u0644\u0627 API \u0628\u0646\u0627\u0626\u06cc\u06ba \u06af\u06d2 \u062c\u06c1\u0627\u06ba \u0635\u0627\u0631\u0641 \u0631\u062c\u0633\u0679\u0631 \u06a9\u0631 \u0633\u06a9\u062a\u06d2 \u06c1\u06cc\u06ba\u060c JWT \u0679\u0648\u06a9\u0646 \u06a9\u06d2 \u0633\u0627\u062a\u06be \u0644\u0627\u06af \u0627\u0646 \u06a9\u0631 \u0633\u06a9\u062a\u06d2 \u06c1\u06cc\u06ba\u060c \u0627\u0648\u0631 \u0627\u0646 \u0646\u0648\u0679\u0648\u06ba \u06a9\u0648 \u0645\u062d\u0641\u0648\u0638 \u06a9\u0631 \u0633\u06a9\u062a\u06d2 \u06c1\u06cc\u06ba \u062c\u0646 \u062a\u06a9 \u0635\u0631\u0641 \u0648\u06c1 \u06c1\u06cc \u0631\u0633\u0627\u0626\u06cc \u062d\u0627\u0635\u0644 \u06a9\u0631 \u0633\u06a9\u062a\u06d2 \u06c1\u06cc\u06ba\u06d4<\/p>\n<p>\u0631\u0627\u0633\u062a\u06d2 \u0645\u06cc\u06ba\u060c \u0622\u067e \u0627\u06cc\u06a9 \u062d\u0633\u0628 \u0636\u0631\u0648\u0631\u062a \u0635\u0627\u0631\u0641 \u0645\u0627\u0688\u0644 \u0646\u0627\u0641\u0630 \u06a9\u0631\u06cc\u06ba \u06af\u06d2\u060c \u0679\u0648\u06a9\u0646 \u067e\u0631 \u0645\u0628\u0646\u06cc \u062a\u0648\u062b\u06cc\u0642 \u06a9\u06d2 \u0644\u06cc\u06d2 SimpleJWT \u06a9\u0648 \u062a\u0631\u062a\u06cc\u0628 \u062f\u06cc\u06ba \u06af\u06d2\u060c \u0627\u0648\u0631 \u0627\u06cc\u06a9 \u062f\u0627\u0626\u0631\u06c1 \u06a9\u0627\u0631 \u0648\u0627\u0644\u0627 \u0645\u0646\u0638\u0631 \u0628\u0646\u0627\u0626\u06cc\u06ba \u06af\u06d2 \u062c\u0648 \u06c1\u0631 \u0635\u0627\u0631\u0641 \u06a9\u06d2 \u0688\u06cc\u0679\u0627 \u06a9\u0648 \u0627\u0646 \u06a9\u06cc \u0627\u0633\u0646\u0627\u062f \u06a9\u06d2 \u067e\u06cc\u0686\u06be\u06d2 \u0628\u0646\u062f \u06a9\u0631 \u062f\u06d2 \u06af\u0627\u06d4<\/p>\n<h3 id=\"heading-what-well-cover\">\u06c1\u0645 \u06a9\u06cc\u0627 \u0627\u062d\u0627\u0637\u06c1 \u06a9\u0631\u06cc\u06ba \u06af\u06d2:<\/h3>\n<p>\u0627\u0633 \u0679\u06cc\u0648\u0679\u0648\u0631\u06cc\u0644 \u06a9\u0627 \u0627\u062d\u0627\u0637\u06c1 \u06a9\u0631\u062a\u0627 \u06c1\u06d2:<\/p>\n<ol>\n<li>\n<p>\u06a9\u0633\u0679\u0645 \u06cc\u0648\u0632\u0631 \u0645\u0627\u0688\u0644 \u0633\u06cc\u0679 \u0627\u067e \u06a9\u06cc\u0633\u06d2 \u06a9\u0631\u06cc\u06ba (\u0627\u0648\u0631 \u0622\u067e \u06a9\u0648 \u06c1\u0645\u06cc\u0634\u06c1 \u06cc\u06c1 \u06a9\u06cc\u0648\u06ba \u06a9\u0631\u0646\u0627 \u0686\u0627\u06c1\u06cc\u06d2)<\/p>\n<\/li>\n<li>\n<p>\u0679\u0648\u06a9\u0646 \u06a9\u06cc \u062a\u0648\u062b\u06cc\u0642 \u062a\u06a9 \u0631\u0633\u0627\u0626\u06cc \u0627\u0648\u0631 \u0631\u06cc\u0641\u0631\u06cc\u0634 \u06a9\u06d2 \u0644\u06cc\u06d2 SimpleJWT \u06a9\u0648 \u06a9\u06cc\u0633\u06d2 \u062a\u0631\u062a\u06cc\u0628 \u062f\u06cc\u0627 \u062c\u0627\u0626\u06d2\u06d4<\/p>\n<\/li>\n<li>\n<p>\u0627\u06cc\u06a9 \u0633\u06cc\u0631\u06cc\u0644\u0627\u0626\u0632\u0631 \u06a9\u06cc\u0633\u06d2 \u0628\u0646\u0627\u06cc\u0627 \u062c\u0627\u0626\u06d2 \u062c\u0648 \u062d\u0633\u0627\u0633 \u06a9\u06be\u06cc\u062a\u0648\u06ba \u06a9\u06cc \u062d\u0641\u0627\u0638\u062a \u06a9\u0631\u06d2\u06d4<\/p>\n<\/li>\n<li>\n<p>API \u0648\u06cc\u0648 \u06a9\u06cc \u06af\u0646\u062c\u0627\u0626\u0634 \u06a9\u06cc\u0633\u06d2 \u0628\u0646\u0627\u0626\u06cc \u062c\u0627\u0626\u06d2 \u062a\u0627\u06a9\u06c1 \u0635\u0627\u0631\u0641\u06cc\u0646 \u0635\u0631\u0641 \u0627\u067e\u0646\u0627 \u0688\u06cc\u0679\u0627 \u062f\u06cc\u06a9\u06be \u0633\u06a9\u06cc\u06ba<\/p>\n<\/li>\n<li>\n<p>\u067e\u0648\u0633\u0679 \u0645\u06cc\u0646 \u06a9\u0627 \u0627\u0633\u062a\u0639\u0645\u0627\u0644 \u06a9\u0631\u062a\u06d2 \u06c1\u0648\u0626\u06d2 \u067e\u0648\u0631\u06d2 \u0628\u06c1\u0627\u0624 \u06a9\u06cc \u062c\u0627\u0646\u0686 \u06a9\u06cc\u0633\u06d2 \u06a9\u0631\u06cc\u06ba\u06d4<\/p>\n<\/li>\n<\/ol>\n<p>\u0622\u0626\u06cc\u06d2 \u0634\u0631\u0648\u0639 \u06a9\u0631\u062a\u06d2 \u06c1\u06cc\u06ba\u06d4<\/p>\n<h2 id=\"heading-prerequisities\">\u0634\u0631\u0637\u06cc\u06ba<\/h2>\n<p>\u0634\u0631\u0648\u0639 \u06a9\u0631\u0646\u06d2 \u0633\u06d2 \u067e\u06c1\u0644\u06d2\u060c \u06cc\u0642\u06cc\u0646\u06cc \u0628\u0646\u0627\u0626\u06cc\u06ba \u06a9\u06c1 \u0622\u067e \u062f\u0631\u062c \u0630\u06cc\u0644 \u0633\u06d2 \u0648\u0627\u0642\u0641 \u06c1\u06cc\u06ba:<\/p>\n<ol>\n<li>\n<p><strong>\u062c\u06cc\u0646\u06af\u0648 \u06a9\u06cc \u0628\u0646\u06cc\u0627\u062f\u06cc \u0628\u0627\u062a\u06cc\u06ba<\/strong>: \u0622\u067e \u06a9\u0648 \u06cc\u06c1 \u0633\u0645\u062c\u06be\u0646\u06d2 \u06a9\u06cc \u0636\u0631\u0648\u0631\u062a \u06c1\u06d2 \u06a9\u06c1 Django \u067e\u0631\u0648\u062c\u06cc\u06a9\u0679\u0633 \u0627\u0648\u0631 \u0627\u06cc\u067e\u0633 \u06a9\u06cc\u0633\u06d2 \u06a9\u0627\u0645 \u06a9\u0631\u062a\u06cc \u06c1\u06cc\u06ba\u060c \u0628\u0634\u0645\u0648\u0644 \u0645\u0627\u0688\u0644\u0632\u060c \u0648\u06cc\u0648\u0632\u060c \u06cc\u0648 \u0622\u0631 \u0627\u06cc\u0644 \u0627\u0648\u0631 \u0645\u0646\u062a\u0642\u0644\u06cc\u06d4<\/p>\n<\/li>\n<li>\n<p><strong>\u062c\u06cc\u0627\u0646\u06af\u0648 \u0631\u06cc\u0633\u0679 \u0641\u0631\u06cc\u0645 \u0648\u0631\u06a9 \u06a9\u06cc \u0628\u0646\u06cc\u0627\u062f\u06cc \u0628\u0627\u062a\u06cc\u06ba<\/strong>: \u0622\u067e \u06a9\u0648 \u0633\u06cc\u0631\u06cc\u0644\u0627\u0626\u0632\u0631\u0632\u060c \u0648\u06cc\u0648 \u0633\u06cc\u0679\u0633\u060c \u06cc\u0627 API \u0648\u06cc\u0648\u0632 \u0633\u06d2 \u0648\u0627\u0642\u0641 \u06c1\u0648\u0646\u0627 \u0686\u0627\u06c1\u06cc\u06d2 \u0627\u0648\u0631 DRF \u062f\u0631\u062e\u0648\u0627\u0633\u062a\u0648\u06ba \u0627\u0648\u0631 \u062c\u0648\u0627\u0628\u0627\u062a \u06a9\u0648 \u06a9\u06cc\u0633\u06d2 \u06c1\u06cc\u0646\u0688\u0644 \u06a9\u0631\u062a\u0627 \u06c1\u06d2\u06d4<\/p>\n<\/li>\n<li>\n<p><strong>\u0628\u0646\u06cc\u0627\u062f\u06cc \u06a9\u0645\u0627\u0646\u0688 \u0644\u0627\u0626\u0646 \u06a9\u0627 \u0627\u0633\u062a\u0639\u0645\u0627\u0644<\/strong>: \u0627\u0633 \u067e\u0648\u0631\u06d2 \u0679\u06cc\u0648\u0679\u0648\u0631\u06cc\u0644 \u06a9\u06d2 \u062f\u0648\u0631\u0627\u0646\u060c \u0622\u067e \u0679\u0631\u0645\u06cc\u0646\u0644 \u0645\u06cc\u06ba \u06a9\u0645\u0627\u0646\u0688\u0632 \u067e\u0631 \u0639\u0645\u0644 \u06a9\u0631\u06cc\u06ba \u06af\u06d2\u06d4<\/p>\n<\/li>\n<\/ol>\n<p>\u0679\u0648\u0644\u0632 \u0622\u067e \u06a9\u0648 \u0627\u0646\u0633\u0679\u0627\u0644 \u06a9\u0631\u0646\u06d2 \u06a9\u06cc \u0636\u0631\u0648\u0631\u062a \u06c1\u06d2:<\/p>\n<ul>\n<li>\n<p>Python 3.8 \u06cc\u0627 \u0627\u0633 \u0633\u06d2 \u0632\u06cc\u0627\u062f\u06c1<\/p>\n<\/li>\n<li>\n<p>pip (\u0627\u0632\u06af\u0631 \u06a9\u0627 \u067e\u06cc\u06a9\u06cc\u062c \u0645\u06cc\u0646\u06cc\u062c\u0631)<\/p>\n<\/li>\n<li>\n<p>\u06a9\u0648\u0688 \u0627\u06cc\u0688\u06cc\u0679\u0631 \u062c\u06cc\u0633\u06d2 \u0628\u0635\u0631\u06cc \u0627\u0633\u0679\u0648\u0688\u06cc\u0648 \u06a9\u0648\u0688<\/p>\n<\/li>\n<li>\n<p>\u067e\u0648\u0633\u0679 \u0645\u06cc\u0646 (\u06cc\u0627 \u06a9\u0648\u0626\u06cc API \u0679\u06cc\u0633\u0679\u0646\u06af \u0679\u0648\u0644) \u0627\u06cc\u0646\u0688 \u067e\u0648\u0627\u0626\u0646\u0679 \u0679\u06cc\u0633\u0679\u0646\u06af \u06a9\u06d2 \u0644\u06cc\u06d2\u06d4 \u0627\u067e\u0646\u06d2 API \u06a9\u0648 \u062f\u0631\u062e\u0648\u0627\u0633\u062a \u0628\u06be\u06cc\u062c\u0646\u06d2 \u06a9\u06d2 \u0644\u06cc\u06d2 \u0627\u0633\u06d2 \u0627\u0633\u062a\u0639\u0645\u0627\u0644 \u06a9\u0631\u06cc\u06ba\u06d4<\/p>\n<\/li>\n<\/ul>\n<h2 id=\"heading-what-is-jwt-and-why-use-it-over-session-authentication\">JWT \u06a9\u06cc\u0627 \u06c1\u06d2 \u0627\u0648\u0631 \u06c1\u0645 \u0627\u0633\u06d2 \u0633\u06cc\u0634\u0646 \u06a9\u06cc \u062a\u0648\u062b\u06cc\u0642 \u067e\u0631 \u06a9\u06cc\u0648\u06ba \u0627\u0633\u062a\u0639\u0645\u0627\u0644 \u06a9\u0631\u062a\u06d2 \u06c1\u06cc\u06ba\u061f<\/h2>\n<p>\u06a9\u0648\u0626\u06cc \u0628\u06be\u06cc \u06a9\u0648\u0688 \u0644\u06a9\u06be\u0646\u06d2 \u0633\u06d2 \u067e\u06c1\u0644\u06d2\u060c \u06cc\u06c1 \u0633\u0645\u062c\u06be\u0646\u0627 \u0636\u0631\u0648\u0631\u06cc \u06c1\u06d2 \u06a9\u06c1 JWTs \u06a9\u0646 \u0645\u0633\u0627\u0626\u0644 \u06a9\u0648 \u062d\u0644 \u06a9\u0631\u062a\u06d2 \u06c1\u06cc\u06ba \u0627\u0648\u0631 \u06a9\u06cc\u0648\u06ba Django \u06a9\u06cc \u0628\u0644\u0679 \u0627\u0646 \u0633\u06cc\u0634\u0646 \u06a9\u06cc \u062a\u0635\u062f\u06cc\u0642 \u06c1\u0645\u06cc\u0634\u06c1 \u06a9\u0627\u0641\u06cc \u0646\u06c1\u06cc\u06ba \u06c1\u0648\u062a\u06cc \u06c1\u06d2\u06d4<\/p>\n<h3 id=\"heading-how-session-authentication-work\">\u0633\u06cc\u0634\u0646 \u06a9\u06cc \u062a\u0648\u062b\u06cc\u0642 \u06a9\u06cc\u0633\u06d2 \u06a9\u0627\u0645 \u06a9\u0631\u062a\u06cc \u06c1\u06d2\u06d4<\/h3>\n<p>\u062c\u06cc\u0646\u06af\u0648 \u0633\u06cc\u0634\u0646 \u067e\u0631 \u0645\u0628\u0646\u06cc \u062a\u0648\u062b\u06cc\u0642 \u06a9\u0627 \u0646\u0638\u0627\u0645 \u0641\u0631\u0627\u06c1\u0645 \u06a9\u0631\u062a\u0627 \u06c1\u06d2\u06d4 \u06cc\u06c1\u0627\u06ba \u06cc\u06c1 \u06c1\u06d2 \u06a9\u06c1 \u06cc\u06c1 \u0627\u0639\u0644\u06cc \u0633\u0637\u062d \u067e\u0631 \u06a9\u06cc\u0633\u06d2 \u06a9\u0627\u0645 \u06a9\u0631\u062a\u0627 \u06c1\u06d2:<\/p>\n<ol>\n<li>\n<p>\u0635\u0627\u0631\u0641 \u0627\u067e\u0646\u0627 \u0635\u0627\u0631\u0641 \u0646\u0627\u0645 \u0627\u0648\u0631 \u067e\u0627\u0633 \u0648\u0631\u0688 \u0633\u0631\u0648\u0631 \u06a9\u0648 \u0628\u06be\u06cc\u062c\u062a\u0627 \u06c1\u06d2\u06d4<\/p>\n<\/li>\n<li>\n<p>\u0633\u0631\u0648\u0631 \u0627\u0633\u0646\u0627\u062f \u06a9\u06cc \u062a\u0635\u062f\u06cc\u0642 \u06a9\u0631\u062a\u0627 \u06c1\u06d2 \u0627\u0648\u0631 <strong>\u0633\u06cc\u0634\u0646<\/strong> \u06cc\u06c1 \u0633\u0631\u0648\u0631 \u0688\u06cc\u0679\u0627 \u0628\u06cc\u0633 \u0645\u06cc\u06ba \u0630\u062e\u06cc\u0631\u06c1 \u0634\u062f\u06c1 \u0627\u06cc\u06a9 \u0686\u06be\u0648\u0679\u0627 \u0631\u06cc\u06a9\u0627\u0631\u0688 \u06c1\u06d2 \u062c\u0648 \u06a9\u06c1\u062a\u0627 \u06c1\u06d2 &quot;\u06cc\u06c1 \u0635\u0627\u0631\u0641 \u0644\u0627\u06af \u0627\u0646 \u06c1\u06d2\u06d4&#8221;<\/p>\n<\/li>\n<li>\n<p>\u0633\u0631\u0648\u0631 \u0648\u0627\u067e\u0633 \u0628\u06be\u06cc\u062c\u062a\u0627 \u06c1\u06d2: <strong>\u0633\u06cc\u0634\u0646 \u0622\u0626\u06cc \u0688\u06cc<\/strong> \u06a9\u0648\u06a9\u06cc\u0632 \u06a9\u06d2 \u0633\u0627\u062a\u06be\u06d4 \u0622\u067e \u06a9\u0627 \u0628\u0631\u0627\u0624\u0632\u0631 \u062e\u0648\u062f \u0628\u062e\u0648\u062f \u0627\u0633 \u06a9\u0648\u06a9\u06cc \u06a9\u0648 \u0627\u0633\u0679\u0648\u0631 \u06a9\u0631\u062a\u0627 \u06c1\u06d2\u06d4<\/p>\n<\/li>\n<li>\n<p>\u062a\u0645\u0627\u0645 \u0628\u0639\u062f \u06a9\u06cc \u062f\u0631\u062e\u0648\u0627\u0633\u062a\u0648\u06ba \u067e\u0631\u060c \u0628\u0631\u0627\u0624\u0632\u0631 \u06a9\u0648\u06a9\u06cc \u06a9\u0648 \u0633\u0631\u0648\u0631 \u067e\u0631 \u0648\u0627\u067e\u0633 \u0628\u06be\u06cc\u062c\u062a\u0627 \u06c1\u06d2\u06d4 \u0633\u0631\u0648\u0631 \u0688\u06cc\u0679\u0627 \u0628\u06cc\u0633 \u0645\u06cc\u06ba \u0633\u06cc\u0634\u0646 \u0622\u0626\u06cc \u0688\u06cc \u062f\u06cc\u06a9\u06be\u062a\u0627 \u06c1\u06d2 \u0627\u0648\u0631 \u06a9\u06c1\u062a\u0627 \u06c1\u06d2\u060c &quot;\u0627\u0648\u06c1\u060c \u06cc\u06c1 \u0635\u0627\u0631\u0641 \u0627\u06d2 \u06c1\u06d2\u06d4 \u0627\u0633\u06d2 \u06af\u0632\u0631\u0646\u06d2 \u062f\u0648\u06d4&#8221;<\/p>\n<\/li>\n<\/ol>\n<p>\u062c\u0628 \u0641\u0631\u0646\u0679 \u0627\u06cc\u0646\u0688 \u0627\u0648\u0631 \u0628\u06cc\u06a9 \u0627\u06cc\u0646\u0688 \u0627\u06cc\u06a9 \u06c1\u06cc \u0688\u0648\u0645\u06cc\u0646 \u067e\u0631 \u06c1\u0648\u062a\u06d2 \u06c1\u06cc\u06ba \u062a\u0648 \u06cc\u06c1 \u0628\u0627\u0644\u06a9\u0644 \u06a9\u0627\u0645 \u06a9\u0631\u062a\u0627 \u06c1\u06d2\u06d4 \u0628\u0631\u0627\u0624\u0632\u0631 \u062e\u0648\u062f \u0628\u062e\u0648\u062f \u06a9\u0648\u06a9\u06cc\u0632 \u06a9\u0648 \u06c1\u06cc\u0646\u0688\u0644 \u06a9\u0631\u062a\u06d2 \u06c1\u06cc\u06ba\u060c \u0627\u0648\u0631 Django \u0622\u067e \u06a9\u06d2 \u0688\u06cc\u0679\u0627 \u0628\u06cc\u0633 \u0645\u06cc\u06ba \u0633\u06cc\u0634\u0646\u0632 \u06a9\u0627 \u0627\u0646\u062a\u0638\u0627\u0645 \u06a9\u0631\u062a\u0627 \u06c1\u06d2 \u0628\u063a\u06cc\u0631 \u0622\u067e \u06a9\u0648 \u0627\u0633 \u06a9\u06d2 \u0628\u0627\u0631\u06d2 \u0645\u06cc\u06ba \u0633\u0648\u0686\u06d2\u06d4<\/p>\n<p>\u062a\u0627\u06c1\u0645\u060c \u0627\u0633 \u0646\u0642\u0637\u06c1 \u0646\u0638\u0631 \u06a9\u06cc \u06a9\u0686\u06be \u062d\u062f\u0648\u062f \u06c1\u06cc\u06ba\u06d4<\/p>\n<ol>\n<li>\n<p><strong>\u06a9\u0631\u0627\u0633 \u0688\u0648\u0645\u06cc\u0646 \u06a9\u06d2 \u0645\u0633\u0627\u0626\u0644:<\/strong> \u0627\u06af\u0631 \u0622\u067e \u06a9\u0627 React \u0641\u0631\u0646\u0679 \u0627\u06cc\u0646\u0688 app.example.com \u067e\u0631 \u06c1\u06d2 \u0627\u0648\u0631 \u0622\u067e \u06a9\u0627 Django API api.example.com \u067e\u0631 \u06c1\u06d2 \u062a\u0648 \u06a9\u0648\u06a9\u06cc\u0632 \u0645\u0634\u06a9\u0644 \u06c1\u0648 \u062c\u0627\u062a\u06cc \u06c1\u06cc\u06ba\u06d4 \u0628\u0631\u0627\u0624\u0632\u0631 \u0633\u062e\u062a \u0642\u0648\u0627\u0646\u06cc\u0646 \u0646\u0627\u0641\u0630 \u06a9\u0631\u062a\u06d2 \u06c1\u06cc\u06ba \u062c\u0633 \u06a9\u06d2 \u0628\u0627\u0631\u06d2 \u0645\u06cc\u06ba \u0688\u0648\u0645\u06cc\u0646\u0632 \u06a9\u0648\u06a9\u06cc\u0632 \u0628\u06be\u06cc\u062c \u0627\u0648\u0631 \u0648\u0635\u0648\u0644 \u06a9\u0631 \u0633\u06a9\u062a\u06d2 \u06c1\u06cc\u06ba\u06d4<\/p>\n<p>\u0622\u067e \u06a9\u0631\u0627\u0633 \u0627\u0648\u0631\u06cc\u062c\u0646 \u0631\u06cc\u0633\u0648\u0631\u0633 \u0634\u06cc\u0626\u0631\u0646\u06af (CORS) \u06c1\u06cc\u0688\u0631\u0632 \u0627\u0648\u0631 \u062e\u0635\u0648\u0635\u06cc \u06a9\u0648\u06a9\u06cc \u0633\u06cc\u0679\u0646\u06af\u0632 \u06a9\u0627 \u0627\u0633\u062a\u0639\u0645\u0627\u0644 \u06a9\u0631 \u06a9\u06d2 \u0627\u0633 \u06a9\u06d2 \u0627\u0631\u062f \u06af\u0631\u062f \u06a9\u0627\u0645 \u06a9\u0631 \u0633\u06a9\u062a\u06d2 \u06c1\u06cc\u06ba\u060c \u0644\u06cc\u06a9\u0646 \u0627\u0633 \u0633\u06d2 \u067e\u06cc\u0686\u06cc\u062f\u06af\u06cc \u0628\u0691\u06be \u062c\u0627\u062a\u06cc \u06c1\u06d2 \u0627\u0648\u0631 \u06cc\u06c1 \u06a9\u0645\u0632\u0648\u0631 \u06c1\u0648 \u0633\u06a9\u062a\u06cc \u06c1\u06d2\u06d4<\/p>\n<\/li>\n<li>\n<p><strong>\u062a\u0648\u0633\u06cc\u0639 \u067e\u0630\u06cc\u0631\u06cc \u06a9\u06d2 \u0645\u0633\u0627\u0626\u0644:<\/strong> \u062a\u0645\u0627\u0645 \u0641\u0639\u0627\u0644 \u0633\u06cc\u0634\u0646\u0632 \u0633\u0631\u0648\u0631 \u06a9\u06d2 \u0688\u06cc\u0679\u0627 \u0628\u06cc\u0633 \u0645\u06cc\u06ba \u0645\u062d\u0641\u0648\u0638 \u06c1\u06cc\u06ba\u06d4 \u0627\u06af\u0631 \u0627\u06cc\u06a9 \u06c1\u06cc \u0648\u0642\u062a \u0645\u06cc\u06ba 10,000 \u0635\u0627\u0631\u0641\u06cc\u0646 \u0644\u0627\u06af \u0627\u0646 \u06c1\u06cc\u06ba\u060c \u062a\u0648 \u06cc\u06c1 10,000 \u0633\u06cc\u0634\u0646 \u0631\u06cc\u06a9\u0627\u0631\u0688\u0632 \u06c1\u06cc\u06ba \u062c\u0646\u06c1\u06cc\u06ba \u0633\u0631\u0648\u0631 \u06a9\u0648 \u06c1\u0631 \u0627\u06cc\u06a9 \u062f\u0631\u062e\u0648\u0627\u0633\u062a \u06a9\u06d2 \u0644\u06cc\u06d2 \u062a\u0644\u0627\u0634 \u06a9\u0631\u0646\u06d2 \u06a9\u06cc \u0636\u0631\u0648\u0631\u062a \u06c1\u06d2\u06d4 \u062c\u06cc\u0633\u06d2 \u062c\u06cc\u0633\u06d2 \u0622\u067e \u06a9\u06cc \u062f\u0631\u062e\u0648\u0627\u0633\u062a \u0628\u0691\u06be\u062a\u06cc \u06c1\u06d2\u060c \u06cc\u06c1 \u062a\u0644\u0627\u0634 \u0627\u06cc\u06a9 \u0631\u06a9\u0627\u0648\u0679 \u0628\u0646 \u062c\u0627\u062a\u06cc \u06c1\u06d2\u06d4<\/p>\n<\/li>\n<li>\n<p><strong>\u0645\u0648\u0628\u0627\u0626\u0644 \u06a9\u06d2 \u0645\u0633\u0627\u0626\u0644:<\/strong> \u0645\u0648\u0628\u0627\u0626\u0644 \u0627\u06cc\u067e\u0633 \u06a9\u0648\u06a9\u06cc\u0632 \u06a9\u0648 \u0627\u0633 \u0637\u0631\u062d \u06c1\u06cc\u0646\u0688\u0644 \u0646\u06c1\u06cc\u06ba \u06a9\u0631\u062a\u06cc \u06c1\u06cc\u06ba \u062c\u0633 \u0637\u0631\u062d \u0628\u0631\u0627\u0624\u0632\u0631 \u06a9\u0631\u062a\u06d2 \u06c1\u06cc\u06ba\u06d4 \u0627\u06af\u0631 \u0622\u067e \u0627\u06cc\u06a9 \u0627\u06cc\u0633\u0627 API \u0628\u0646\u0627 \u0631\u06c1\u06d2 \u06c1\u06cc\u06ba \u062c\u0648 \u0648\u06cc\u0628 \u0627\u0648\u0631 \u0645\u0648\u0628\u0627\u0626\u0644 \u0627\u06cc\u067e\u0633 \u062f\u0648\u0646\u0648\u06ba \u06a9\u0648 \u067e\u06cc\u0634 \u06a9\u0631\u062a\u0627 \u06c1\u06d2\u060c \u062a\u0648 \u0633\u06cc\u0634\u0646 \u06a9\u0648\u06a9\u06cc\u0632 \u0627\u0636\u0627\u0641\u06cc \u0686\u06cc\u0644\u0646\u062c\u0632 \u067e\u06cc\u0634 \u06a9\u0631\u062a\u06cc \u06c1\u06cc\u06ba\u06d4<\/p>\n<\/li>\n<\/ol>\n<h3 id=\"heading-how-jwt-authentication-works\">\u062c\u06d2 \u0688\u0628\u0644\u06cc\u0648 \u0679\u06cc \u06a9\u06cc \u062a\u0648\u062b\u06cc\u0642 \u06a9\u06cc\u0633\u06d2 \u06a9\u0627\u0645 \u06a9\u0631\u062a\u06cc \u06c1\u06d2\u06d4<\/h3>\n<p>JWT \u0628\u0646\u06cc\u0627\u062f\u06cc \u0637\u0648\u0631 \u067e\u0631 \u0645\u062e\u062a\u0644\u0641 \u0627\u0646\u062f\u0627\u0632 \u0627\u062e\u062a\u06cc\u0627\u0631 \u06a9\u0631\u062a\u0627 \u06c1\u06d2\u06d4 \u0633\u0631\u0648\u0631 \u067e\u0631 \u0633\u06cc\u0634\u0646 \u06a9\u0627 \u0688\u06cc\u0679\u0627 \u0630\u062e\u06cc\u0631\u06c1 \u06a9\u0631\u0646\u06d2 \u06a9\u06d2 \u0628\u062c\u0627\u0626\u06d2\u060c \u06c1\u0645 \u062a\u0635\u062f\u06cc\u0642 \u06a9\u06cc \u0645\u0639\u0644\u0648\u0645\u0627\u062a \u06a9\u0648 \u0628\u0631\u0627\u06c1 \u0631\u0627\u0633\u062a \u0679\u0648\u06a9\u0646 \u0645\u06cc\u06ba \u0688\u0627\u0644 \u062f\u06cc\u062a\u06d2 \u06c1\u06cc\u06ba\u06d4<\/p>\n<p>\u06cc\u06c1\u0627\u06ba \u06cc\u06c1 \u06c1\u06d2 \u06a9\u06c1 \u0628\u06c1\u0627\u0624 \u06a9\u06cc\u0633\u06d2 \u06a9\u0627\u0645 \u06a9\u0631\u062a\u0627 \u06c1\u06d2:<\/p>\n<ol>\n<li>\n<p>\u0635\u0627\u0631\u0641 \u0627\u067e\u0646\u0627 \u0635\u0627\u0631\u0641 \u0646\u0627\u0645 \u0627\u0648\u0631 \u067e\u0627\u0633 \u0648\u0631\u0688 \u0633\u0631\u0648\u0631 \u06a9\u0648 \u0628\u06be\u06cc\u062c\u062a\u0627 \u06c1\u06d2\u06d4<\/p>\n<\/li>\n<li>\n<p>\u0633\u0631\u0648\u0631 \u0627\u0633\u0646\u0627\u062f \u06a9\u06cc \u062a\u0635\u062f\u06cc\u0642 \u06a9\u0631\u062a\u0627 \u06c1\u06d2 \u0627\u0648\u0631 \u0627\u06cc\u06a9 JWT \u062a\u06cc\u0627\u0631 \u06a9\u0631\u062a\u0627 \u06c1\u06d2\u060c \u0627\u06cc\u06a9 \u0637\u0648\u06cc\u0644 \u0627\u0646\u06a9\u0648\u0688 \u0634\u062f\u06c1 \u062a\u0627\u0631 \u062c\u0633 \u0645\u06cc\u06ba \u0635\u0627\u0631\u0641 \u06a9\u06cc \u0634\u0646\u0627\u062e\u062a \u0627\u0648\u0631 \u0679\u0648\u06a9\u0646 \u06a9\u06cc \u0645\u06cc\u0639\u0627\u062f \u062e\u062a\u0645 \u06c1\u0648\u0646\u06d2 \u067e\u0631 \u0645\u0639\u0644\u0648\u0645\u0627\u062a \u06c1\u0648\u062a\u06cc \u06c1\u06d2\u06d4<\/p>\n<\/li>\n<li>\n<p>\u0633\u0631\u0648\u0631 \u06cc\u06c1 \u0679\u0648\u06a9\u0646 \u06a9\u0644\u0627\u0626\u0646\u0679 \u06a9\u0648 \u0648\u0627\u067e\u0633 \u0628\u06be\u06cc\u062c\u062a\u0627 \u06c1\u06d2\u06d4 \u06a9\u0644\u0627\u0626\u0646\u0679 \u0627\u0633\u06d2 \u0630\u062e\u06cc\u0631\u06c1 \u06a9\u0631\u062a\u0627 \u06c1\u06d2 (\u0639\u0627\u0645 \u0637\u0648\u0631 \u067e\u0631 \u0645\u06cc\u0645\u0648\u0631\u06cc \u06cc\u0627 \u0645\u0642\u0627\u0645\u06cc \u0627\u0633\u0679\u0648\u0631\u06cc\u062c \u0645\u06cc\u06ba)\u06d4<\/p>\n<\/li>\n<li>\n<p>\u062a\u0645\u0627\u0645 \u0628\u0639\u062f \u06a9\u06cc \u062f\u0631\u062e\u0648\u0627\u0633\u062a\u0648\u06ba \u0645\u06cc\u06ba\u060c \u06a9\u0644\u0627\u0626\u0646\u0679 \u062f\u0631\u062e\u0648\u0627\u0633\u062a \u06a9\u06d2 \u06c1\u06cc\u0688\u0631 \u0645\u06cc\u06ba \u0679\u0648\u06a9\u0646 \u0634\u0627\u0645\u0644 \u06a9\u0631\u062a\u0627 \u06c1\u06d2\u06d4 \u0633\u0631\u0648\u0631 \u0679\u0648\u06a9\u0646 \u067e\u0691\u06be\u062a\u0627 \u06c1\u06d2\u060c \u062f\u0633\u062a\u062e\u0637 \u06a9\u06cc \u062a\u0635\u062f\u06cc\u0642 \u06a9\u0631\u062a\u0627 \u06c1\u06d2\u060c \u0627\u0648\u0631 \u067e\u06be\u0631 \u06a9\u06c1\u062a\u0627 \u06c1\u06d2\u060c &quot;\u06cc\u06c1 \u0635\u0627\u0631\u0641 A \u06c1\u06d2\u06d4 \u0628\u0631\u0627\u06c1 \u06a9\u0631\u0645 \u067e\u0627\u0633 \u06a9\u0631\u06cc\u06ba\u06d4&#8221;<\/p>\n<\/li>\n<\/ol>\n<p>\u0627\u06c1\u0645 \u0627\u062e\u062a\u0644\u0627\u0641\u0627\u062a \u06c1\u06cc\u06ba: <strong>\u0633\u0631\u0648\u0631 \u06a9\u0686\u06be \u0628\u06be\u06cc \u0630\u062e\u06cc\u0631\u06c1 \u0646\u06c1\u06cc\u06ba \u06a9\u0631\u062a\u0627 \u06c1\u06d2\u06d4<\/strong>.<\/p>\n<p>\u0688\u06cc\u0679\u0627 \u0628\u06cc\u0633 \u0645\u06cc\u06ba \u0633\u06cc\u0634\u0646 \u06a9\u0648 \u0646\u06c1\u06cc\u06ba \u062f\u06cc\u06a9\u06be\u0627 \u062c\u0627\u062a\u0627 \u06c1\u06d2\u06d4 \u06cc\u06c1 \u0635\u0631\u0641 \u0679\u0648\u06a9\u0646 \u06a9\u0648 \u067e\u0691\u06be\u062a\u0627 \u06c1\u06d2\u060c \u06a9\u0631\u067e\u0679\u0648\u06af\u0631\u0627\u0641\u06a9 \u062f\u0633\u062a\u062e\u0637 \u06a9\u06cc \u062a\u0635\u062f\u06cc\u0642 \u06a9\u0631\u062a\u0627 \u06c1\u06d2 \u062a\u0627\u06a9\u06c1 \u06cc\u06c1 \u06cc\u0642\u06cc\u0646\u06cc \u0628\u0646\u0627\u06cc\u0627 \u062c\u0627 \u0633\u06a9\u06d2 \u06a9\u06c1 \u06a9\u0633\u06cc \u0646\u06d2 \u0627\u0633 \u06a9\u06d2 \u0633\u0627\u062a\u06be \u0686\u06be\u06cc\u0691 \u0686\u06be\u0627\u0691 \u0646\u06c1\u06cc\u06ba \u06a9\u06cc \u06c1\u06d2\u060c \u0627\u0648\u0631 \u067e\u06be\u0631 \u0635\u0627\u0631\u0641 \u06a9\u06cc \u0645\u0639\u0644\u0648\u0645\u0627\u062a \u06a9\u0648 \u0646\u06a9\u0627\u0644\u062a\u0627 \u06c1\u06d2\u06d4 \u0627\u0633\u06cc \u0644\u06cc\u06d2 JWT \u06a9\u06c1\u0627 \u062c\u0627\u062a\u0627 \u06c1\u06d2\u06d4 <strong>\u0628\u06d2 \u0648\u0637\u0646<\/strong> &#8211; \u0633\u0631\u0648\u0631 \u0627\u0633 \u0628\u0627\u0631\u06d2 \u0645\u06cc\u06ba \u06a9\u0648\u0626\u06cc \u062d\u0627\u0644\u062a \u0628\u0631\u0642\u0631\u0627\u0631 \u0646\u06c1\u06cc\u06ba \u0631\u06a9\u06be\u062a\u0627 \u06c1\u06d2 \u06a9\u06c1 \u06a9\u0648\u0646 \u0644\u0627\u06af \u0627\u0646 \u06c1\u06d2\u06d4<\/p>\n<p><strong>\u06cc\u06c1 \u06a9\u0631\u0627\u0633 \u0688\u0648\u0645\u06cc\u0646 \u06a9\u0627 \u0645\u0633\u0626\u0644\u06c1 \u062d\u0644 \u06a9\u0631\u062a\u0627 \u06c1\u06d2\u06d4<\/strong> \u0627\u0633 \u06a9\u06cc \u0648\u062c\u06c1 \u06cc\u06c1 \u06c1\u06d2 \u06a9\u06c1 \u0679\u0648\u06a9\u0646 \u0627\u06cc\u06a9 \u062f\u0631\u062e\u0648\u0627\u0633\u062a \u06c1\u06cc\u0688\u0631 \u06a9\u06d2 \u0637\u0648\u0631 \u067e\u0631 \u0628\u06be\u06cc\u062c\u0627 \u062c\u0627\u062a\u0627 \u06c1\u06d2 \u0646\u06c1 \u06a9\u06c1 \u06a9\u0648\u06a9\u06cc \u06a9\u06d2 \u0637\u0648\u0631 \u067e\u0631\u06d4 \u06c1\u06cc\u0688\u0631\u0632 \u0627\u0633\u06cc \u0637\u0631\u062d \u06a9\u0627\u0645 \u06a9\u0631\u062a\u06d2 \u06c1\u06cc\u06ba \u0642\u0637\u0639 \u0646\u0638\u0631 \u0627\u0633 \u06a9\u06d2 \u06a9\u06c1 \u062c\u0633 \u0688\u0648\u0645\u06cc\u0646 \u0633\u06d2 \u062f\u0631\u062e\u0648\u0627\u0633\u062a \u0622\u0631\u06c1\u06cc \u06c1\u06d2\u06d4<\/p>\n<p><strong>\u06cc\u06c1 \u0627\u0633\u06a9\u06cc\u0644 \u0627\u06cc\u0628\u0644\u0679\u06cc \u06a9\u0627 \u0645\u0633\u0626\u0644\u06c1 \u062d\u0644 \u06a9\u0631\u062a\u0627 \u06c1\u06d2\u06d4<\/strong> \u0627\u0633 \u06a9\u06cc \u0648\u062c\u06c1 \u06cc\u06c1 \u06c1\u06d2 \u06a9\u06c1 \u0633\u0631\u0648\u0631 \u0633\u06cc\u0634\u0646\u0632 \u06a9\u0648 \u0627\u0633\u0679\u0648\u0631 \u0646\u06c1\u06cc\u06ba \u06a9\u0631\u062a\u0627 \u06c1\u06d2\u06d4 \u0679\u0648\u06a9\u0646 \u06a9\u06cc \u062a\u0648\u062b\u06cc\u0642 \u0688\u06cc\u0679\u0627 \u0628\u06cc\u0633 \u06a9\u06cc \u062a\u0644\u0627\u0634 \u06a9\u06d2 \u0628\u062c\u0627\u0626\u06d2 \u0627\u06cc\u06a9 \u0641\u0648\u0631\u06cc \u06a9\u0631\u067e\u0679\u0648\u06af\u0631\u0627\u0641\u06a9 \u062a\u0635\u062f\u06cc\u0642 \u06c1\u06d2\u06d4<\/p>\n<p><strong>\u06cc\u06c1 \u0622\u067e \u06a9\u06d2 \u0645\u0648\u0628\u0627\u0626\u0644 \u06a9\u0627 \u0645\u0633\u0626\u0644\u06c1 \u062d\u0644 \u06a9\u0631\u062a\u0627 \u06c1\u06d2\u06d4<\/strong> \u0627\u0633 \u06a9\u06cc \u0648\u062c\u06c1 \u06cc\u06c1 \u06c1\u06d2 \u06a9\u06c1 \u06a9\u0648\u0626\u06cc \u0628\u06be\u06cc \u06a9\u0644\u0627\u0626\u0646\u0679 \u062c\u0648 HTTP \u06c1\u06cc\u0688\u0631 \u0628\u06be\u06cc\u062c \u0633\u06a9\u062a\u0627 \u06c1\u06d2 \u0648\u06c1 JWT \u0627\u0633\u062a\u0639\u0645\u0627\u0644 \u06a9\u0631\u0633\u06a9\u062a\u0627 \u06c1\u06d2\u06d4 \u0645\u0648\u0628\u0627\u0626\u0644 \u0627\u06cc\u067e\u0633\u060c \u0688\u06cc\u0633\u06a9 \u0679\u0627\u067e \u0627\u06cc\u067e\u0633\u060c \u062f\u0648\u0633\u0631\u06d2 \u0633\u0631\u0648\u0631\u0632 &#8211; \u06cc\u06c1 \u0633\u0628 \u0627\u06cc\u06a9 \u06c1\u06cc \u0637\u0631\u062d \u0633\u06d2 \u06a9\u0627\u0645 \u06a9\u0631\u062a\u06d2 \u06c1\u06cc\u06ba\u06d4<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/umang.pk\/wp-content\/uploads\/2026\/05\/1778014309_584_\u062c\u06cc\u0646\u06af\u0648-\u0631\u06cc\u0633\u0679-\u0641\u0631\u06cc\u0645-\u0648\u0631\u06a9-\u0627\u0648\u0631-\u0633\u0627\u062f\u06c1-\u062c\u06d2-\u0688\u0628\u0644\u06cc\u0648-\u0679\u06cc-\u06a9\u0627.png\" alt=\"\u0627\u0646\u0641\u0648\u06af\u0631\u0627\u0641\u06a9 JWT \u06a9\u06cc \u062a\u0648\u062b\u06cc\u0642 \u0645\u06cc\u06ba \u0627\u0679\u06be\u0627\u0626\u06d2 \u06af\u0626\u06d2 \u0627\u0642\u062f\u0627\u0645\u0627\u062a \u06a9\u0648 \u0638\u0627\u06c1\u0631 \u06a9\u0631\u062a\u0627 \u06c1\u06d2\u06d4\" style=\"display:block;margin:0 auto\" width=\"600\" height=\"400\" loading=\"lazy\" title=\"\"><\/p>\n<h2 id=\"heading-step-1-how-to-set-up-the-project-and-install-the-dependecies\">\u0645\u0631\u062d\u0644\u06c1 1: \u067e\u0631\u0648\u062c\u06cc\u06a9\u0679 \u06a9\u0648 \u06a9\u06cc\u0633\u06d2 \u062a\u0631\u062a\u06cc\u0628 \u062f\u06cc\u06ba \u0627\u0648\u0631 \u0627\u0646\u062d\u0635\u0627\u0631 \u06a9\u0648 \u0627\u0646\u0633\u0679\u0627\u0644 \u06a9\u0631\u06cc\u06ba\u06d4<\/h2>\n<h3 id=\"heading-11-how-to-create-the-project\">1.1 \u067e\u0631\u0648\u062c\u06cc\u06a9\u0679 \u06a9\u06cc\u0633\u06d2 \u0628\u0646\u0627\u06cc\u0627 \u062c\u0627\u0626\u06d2\u06d4<\/h3>\n<p>\u0627\u06cc\u06a9 \u0679\u0631\u0645\u06cc\u0646\u0644 \u06a9\u06be\u0648\u0644\u06cc\u06ba\u060c \u0627\u0633 \u0645\u0642\u0627\u0645 \u067e\u0631 \u062c\u0627\u0626\u06cc\u06ba \u062c\u06c1\u0627\u06ba \u0622\u067e \u0627\u067e\u0646\u0627 \u067e\u0631\u0648\u062c\u06cc\u06a9\u0679 \u0631\u06a9\u06be\u0646\u0627 \u0686\u0627\u06c1\u062a\u06d2 \u06c1\u06cc\u06ba\u060c \u0627\u0648\u0631 \u062f\u0631\u062c \u0630\u06cc\u0644 \u06a9\u0645\u0627\u0646\u0688 \u06a9\u0648 \u0686\u0644\u0627\u0626\u06cc\u06ba:<\/p>\n<pre><code class=\"language-shell\">mkdir notes-project\n\ncd notes-project\n<\/code><\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/umang.pk\/wp-content\/uploads\/2026\/05\/1778014310_482_\u062c\u06cc\u0646\u06af\u0648-\u0631\u06cc\u0633\u0679-\u0641\u0631\u06cc\u0645-\u0648\u0631\u06a9-\u0627\u0648\u0631-\u0633\u0627\u062f\u06c1-\u062c\u06d2-\u0688\u0628\u0644\u06cc\u0648-\u0679\u06cc-\u06a9\u0627.png\" alt=\"\u062a\u0635\u0648\u06cc\u0631 \u0646\u0648\u0679\u0633 \u067e\u0631\u0648\u062c\u06cc\u06a9\u0679 \u0641\u0648\u0644\u0688\u0631 \u06a9\u06cc \u062a\u062e\u0644\u06cc\u0642 \u06a9\u0648 \u0638\u0627\u06c1\u0631 \u06a9\u0631\u062a\u06cc \u06c1\u06d2\u06d4\" style=\"display:block;margin:0 auto\" width=\"600\" height=\"400\" loading=\"lazy\" title=\"\"><\/p>\n<h3 id=\"heading-12-how-to-create-a-virtual-environment-and-install-the-required-dependencies\">1.2 \u0648\u0631\u0686\u0648\u0626\u0644 \u0645\u0627\u062d\u0648\u0644 \u06a9\u06cc\u0633\u06d2 \u0628\u0646\u0627\u06cc\u0627 \u062c\u0627\u0626\u06d2 \u0627\u0648\u0631 \u0645\u0637\u0644\u0648\u0628\u06c1 \u0627\u0646\u062d\u0635\u0627\u0631 \u06a9\u0648 \u0627\u0646\u0633\u0679\u0627\u0644 \u06a9\u06cc\u0627 \u062c\u0627\u0626\u06d2\u06d4<\/h3>\n<p>\u06cc\u06c1 \u0648\u06c1 \u062c\u06af\u06c1 \u06c1\u06d2 \u062c\u06c1\u0627\u06ba \u0622\u067e \u0627\u067e\u0646\u0627 \u0648\u0631\u0686\u0648\u0626\u0644 \u0645\u0627\u062d\u0648\u0644 \u0628\u0646\u0627\u062a\u06d2 \u06c1\u06cc\u06ba\u06d4 \u062f\u0631\u062c \u0630\u06cc\u0644 \u06a9\u0645\u0627\u0646\u0688 \u062f\u0631\u062c \u06a9\u0631\u06cc\u06ba:<\/p>\n<pre><code class=\"language-shell\">python3 -m venv venv\n<\/code><\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/umang.pk\/wp-content\/uploads\/2026\/05\/1778014312_725_\u062c\u06cc\u0646\u06af\u0648-\u0631\u06cc\u0633\u0679-\u0641\u0631\u06cc\u0645-\u0648\u0631\u06a9-\u0627\u0648\u0631-\u0633\u0627\u062f\u06c1-\u062c\u06d2-\u0688\u0628\u0644\u06cc\u0648-\u0679\u06cc-\u06a9\u0627.png\" alt=\"\u062a\u0635\u0648\u06cc\u0631 \u0645\u06cc\u06ba \u062f\u06a9\u06be\u0627\u06cc\u0627 \u06af\u06cc\u0627 \u06c1\u06d2 \u06a9\u06c1 \u06a9\u0645\u0627\u0646\u0688\u0632 \u06a9\u0648 \u0644\u0646\u06a9 \u06a9\u0631\u0646\u06d2 \u06a9\u06d2 \u0628\u0639\u062f \u0648\u0631\u0686\u0648\u0626\u0644 \u0645\u0627\u062d\u0648\u0644 \u06a9\u0627 \u0641\u0648\u0644\u0688\u0631 \u0628\u0646\u0627\u06cc\u0627 \u062c\u0627 \u0631\u06c1\u0627 \u06c1\u06d2\u06d4\" style=\"display:block;margin:0 auto\" width=\"600\" height=\"400\" loading=\"lazy\" title=\"\"><\/p>\n<p>\u0645\u0630\u06a9\u0648\u0631\u06c1 \u06a9\u0645\u0627\u0646\u0688 \u0641\u0648\u0644\u0688\u0631 \u06a9\u06d2 \u0627\u0646\u062f\u0631 \u0627\u06cc\u06a9 \u0648\u0631\u0686\u0648\u0626\u0644 \u0645\u0627\u062d\u0648\u0644 \u0628\u0646\u0627\u062a\u06cc \u06c1\u06d2\u06d4 <code>venv<\/code>. \u067e\u06c1\u0644\u06d2 <code>venv<\/code> \u06cc\u06c1 \u0627\u06cc\u06a9 \u062d\u06a9\u0645 \u06c1\u06d2 \u0627\u0648\u0631 \u06cc\u06c1 \u062f\u0648\u0633\u0631\u0627 \u06c1\u06d2\u06d4 <code>venv<\/code> \u0641\u0648\u0644\u0688\u0631 \u06a9\u06d2 \u0646\u0627\u0645 \u06a9\u06cc \u0646\u0634\u0627\u0646\u062f\u06c1\u06cc \u06a9\u0631\u062a\u0627 \u06c1\u06d2\u06d4 \u0641\u0648\u0644\u0688\u0631 \u06a9\u0627 \u0646\u0627\u0645 \u06a9\u0686\u06be \u0628\u06be\u06cc \u06c1\u0648 \u0633\u06a9\u062a\u0627 \u06c1\u06d2\u06d4 <code>venv<\/code> \u0639\u0627\u0645 \u0637\u0648\u0631 \u067e\u0631 \u062a\u0631\u062c\u06cc\u062d \u062f\u06cc \u062c\u0627\u062a\u06cc \u06c1\u06d2\u06d4<\/p>\n<p>\u0648\u0631\u0686\u0648\u0626\u0644 \u0645\u0627\u062d\u0648\u0644 \u06a9\u0648 \u0686\u0627\u0644\u0648 \u06a9\u0631\u0646\u06d2 \u06a9\u06d2 \u0644\u06cc\u06d2\u060c \u0622\u067e \u06a9\u0648 \u062f\u0631\u062c \u0630\u06cc\u0644 \u06a9\u0645\u0627\u0646\u0688 \u06a9\u0648 \u0627\u0633\u062a\u0639\u0645\u0627\u0644 \u06a9\u0631\u0646\u06d2 \u06a9\u06cc \u0636\u0631\u0648\u0631\u062a \u06c1\u06d2:<\/p>\n<p>macOS\/Linux \u06a9\u06d2 \u0644\u06cc\u06d2:<\/p>\n<pre><code class=\"language-shell\">source venv\/bin\/activate\n<\/code><\/pre>\n<p>\u0648\u0646\u0688\u0648\u0632 \u06a9\u06d2 \u0644\u06cc\u06d2:<\/p>\n<pre><code class=\"language-shell\">venvScriptsactivate\n<\/code><\/pre>\n<p>\u0622\u067e \u062f\u06cc\u06a9\u06be\u06cc\u06ba \u06af\u06d2 \u06a9\u06c1 \u0627\u0633 \u0646\u06d2 \u06a9\u0627\u0645 \u06a9\u06cc\u0627\u06d4 <code>(venv)<\/code> \u0679\u0631\u0645\u06cc\u0646\u0644 \u067e\u0631\u0627\u0645\u067e\u0679 \u06a9\u06d2 \u0634\u0631\u0648\u0639 \u0645\u06cc\u06ba\u06d4 \u06a9\u0648\u0626\u06cc \u0628\u06be\u06cc Python \u067e\u06cc\u06a9\u062c \u062c\u0648 \u0622\u067e \u0627\u0633 \u0645\u0642\u0627\u0645 \u0633\u06d2 \u0627\u0646\u0633\u0679\u0627\u0644 \u06a9\u0631\u062a\u06d2 \u06c1\u06cc\u06ba \u0635\u0631\u0641 \u0627\u0633 \u06a9\u06d2 \u0627\u0646\u062f\u0631 \u0645\u0648\u062c\u0648\u062f \u06c1\u0648\u06ba \u06af\u06d2\u06d4 <strong>\u0645\u062c\u0627\u0632\u06cc \u0645\u0627\u062d\u0648\u0644<\/strong>.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/umang.pk\/wp-content\/uploads\/2026\/05\/1778014314_269_\u062c\u06cc\u0646\u06af\u0648-\u0631\u06cc\u0633\u0679-\u0641\u0631\u06cc\u0645-\u0648\u0631\u06a9-\u0627\u0648\u0631-\u0633\u0627\u062f\u06c1-\u062c\u06d2-\u0688\u0628\u0644\u06cc\u0648-\u0679\u06cc-\u06a9\u0627.png\" alt=\"\u062a\u0635\u0648\u06cc\u0631 \u0648\u0631\u0686\u0648\u0626\u0644 \u0645\u0627\u062d\u0648\u0644 \u06a9\u0648 \u0686\u0627\u0644\u0648 \u06c1\u0648\u0646\u06d2 \u06a9\u0648 \u062f\u06a9\u06be\u0627\u062a\u06cc \u06c1\u06d2\u06d4\" style=\"display:block;margin:0 auto\" width=\"600\" height=\"400\" loading=\"lazy\" title=\"\"><\/p>\n<p>\u0648\u0631\u0686\u0648\u0626\u0644 \u0645\u0627\u062d\u0648\u0644 \u06a9\u06d2 \u0641\u0639\u0627\u0644 \u06c1\u0648\u0646\u06d2 \u06a9\u06d2 \u0633\u0627\u062a\u06be\u060c \u062f\u0631\u062c \u0630\u06cc\u0644 \u06a9\u0645\u0627\u0646\u0688\u0632 \u06a9\u0627 \u0627\u0633\u062a\u0639\u0645\u0627\u0644 \u06a9\u0631\u062a\u06d2 \u06c1\u0648\u0626\u06d2 Django\u060c Django Rest Framework\u060c \u0627\u0648\u0631 Simple JWT Framework \u0627\u0646\u0633\u0679\u0627\u0644 \u06a9\u0631\u06cc\u06ba:<\/p>\n<pre><code class=\"language-shell\">pip install django djangorestframework djangorestframework-simplejwt \n<\/code><\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/umang.pk\/wp-content\/uploads\/2026\/05\/1778014316_342_\u062c\u06cc\u0646\u06af\u0648-\u0631\u06cc\u0633\u0679-\u0641\u0631\u06cc\u0645-\u0648\u0631\u06a9-\u0627\u0648\u0631-\u0633\u0627\u062f\u06c1-\u062c\u06d2-\u0688\u0628\u0644\u06cc\u0648-\u0679\u06cc-\u06a9\u0627.png\" alt=\"\u062a\u0635\u0648\u06cc\u0631 \u067e\u0627\u0626\u067e \u06a9\u0645\u0627\u0646\u0688 \u0686\u0644\u0627\u0646\u06d2 \u06a9\u06d2 \u0628\u0639\u062f \u067e\u06cc\u06a9\u06cc\u062c \u06a9\u06cc \u062a\u0646\u0635\u06cc\u0628 \u06a9\u0648 \u0638\u0627\u06c1\u0631 \u06a9\u0631\u062a\u06cc \u06c1\u06d2\u06d4\" style=\"display:block;margin:0 auto\" width=\"600\" height=\"400\" loading=\"lazy\" title=\"\"><\/p>\n<p>\u0622\u067e \u0686\u0644 \u06a9\u0631 \u0686\u06cc\u06a9 \u06a9\u0631 \u0633\u06a9\u062a\u06d2 \u06c1\u06cc\u06ba \u06a9\u06c1 \u0633\u0628 \u06a9\u0686\u06be \u0635\u062d\u06cc\u062d \u0637\u0631\u06cc\u0642\u06d2 \u0633\u06d2 \u0627\u0646\u0633\u0679\u0627\u0644 \u06c1\u06d2:<\/p>\n<pre><code class=\"language-shell\">pip list\n<\/code><\/pre>\n<p>\u062a\u06cc\u0646\u0648\u06ba \u067e\u06cc\u06a9\u062c\u0648\u06ba \u06a9\u0648 \u0627\u0646 \u06a9\u06d2 \u0627\u0646\u062d\u0635\u0627\u0631 \u06a9\u06d2 \u0633\u0627\u062a\u06be \u062f\u0631\u062c \u06a9\u06cc\u0627 \u062c\u0627\u0646\u0627 \u0686\u0627\u06c1\u0626\u06d2\u06d4<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/umang.pk\/wp-content\/uploads\/2026\/05\/1778014318_690_\u062c\u06cc\u0646\u06af\u0648-\u0631\u06cc\u0633\u0679-\u0641\u0631\u06cc\u0645-\u0648\u0631\u06a9-\u0627\u0648\u0631-\u0633\u0627\u062f\u06c1-\u062c\u06d2-\u0688\u0628\u0644\u06cc\u0648-\u0679\u06cc-\u06a9\u0627.png\" alt=\"\u062a\u0635\u0648\u06cc\u0631 \u0627\u0646 \u0627\u0646\u062d\u0635\u0627\u0631\u0648\u06ba \u06a9\u06d2 \u0633\u0627\u062a\u06be \u062a\u0645\u0627\u0645 \u0627\u0646\u062d\u0635\u0627\u0631 \u06a9\u06cc \u0641\u06c1\u0631\u0633\u062a \u062f\u06a9\u06be\u0627\u062a\u06cc \u06c1\u06d2 \u062c\u0648 \u0627\u0628\u06be\u06cc \u0627\u0646\u0633\u0679\u0627\u0644 \u06a9\u06cc \u06af\u0626\u06cc \u062a\u06be\u06cc\u06ba\u06d4\" style=\"display:block;margin:0 auto\" width=\"600\" height=\"400\" loading=\"lazy\" title=\"\"><\/p>\n<h3 id=\"heading-13-how-to-create-the-project-and-the-app\">1.3 \u067e\u0631\u0648\u062c\u06cc\u06a9\u0679\u0633 \u0627\u0648\u0631 \u0627\u06cc\u067e\u0633 \u06a9\u06cc\u0633\u06d2 \u0628\u0646\u0627\u0626\u06cc\u06ba<\/h3>\n<p>\u062f\u0631\u062c \u0630\u06cc\u0644 \u06a9\u0645\u0627\u0646\u0688 \u06a9\u0648 \u0686\u0644\u0627 \u06a9\u0631 \u062c\u06cc\u0646\u06af\u0648 \u067e\u0631\u0648\u062c\u06cc\u06a9\u0679 \u0628\u0646\u0627\u0626\u06cc\u06ba:<\/p>\n<pre><code class=\"language-plaintext\">django-admin startproject notes_core .\n<\/code><\/pre>\n<p>\u0622\u062e\u0631 \u0645\u06cc\u06ba \u0646\u0642\u0637\u06c1 \u0627\u06c1\u0645 \u06c1\u06d2\u06d4 \u06cc\u06c1 \u062c\u06cc\u0646\u06af\u0648 \u06a9\u0648 \u0627\u0636\u0627\u0641\u06cc \u0646\u06cc\u0633\u0679\u0688 \u0641\u0648\u0644\u0688\u0631 \u0628\u0646\u0627\u0646\u06d2 \u06a9\u06d2 \u0628\u062c\u0627\u0626\u06d2 \u0645\u0648\u062c\u0648\u062f\u06c1 \u0688\u0627\u0626\u0631\u06a9\u0679\u0631\u06cc \u0645\u06cc\u06ba \u067e\u0631\u0648\u062c\u06cc\u06a9\u0679 \u0641\u0627\u0626\u0644 \u0628\u0646\u0627\u0646\u06d2 \u06a9\u0648 \u06a9\u06c1\u062a\u0627 \u06c1\u06d2\u06d4<\/p>\n<p>\u0627\u0628 \u0622\u0626\u06cc\u06d2 \u062f\u0631\u062c \u0630\u06cc\u0644 \u06a9\u0645\u0627\u0646\u0688 \u06a9\u0648 \u062f\u0627\u062e\u0644 \u06a9\u0631\u06a9\u06d2 \u0627\u06cc\u067e \u0628\u0646\u0627\u0626\u06cc\u06ba:<\/p>\n<pre><code class=\"language-shell\">python manage.py startapp notes\n<\/code><\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/umang.pk\/wp-content\/uploads\/2026\/05\/1778014320_224_\u062c\u06cc\u0646\u06af\u0648-\u0631\u06cc\u0633\u0679-\u0641\u0631\u06cc\u0645-\u0648\u0631\u06a9-\u0627\u0648\u0631-\u0633\u0627\u062f\u06c1-\u062c\u06d2-\u0688\u0628\u0644\u06cc\u0648-\u0679\u06cc-\u06a9\u0627.png\" alt=\"\u062a\u0635\u0648\u06cc\u0631 \u062c\u06cc\u0646\u06af\u0648 \u067e\u0631\u0648\u062c\u06cc\u06a9\u0679 \u0627\u0648\u0631 \u0627\u06cc\u067e \u06a9\u06d2 \u0641\u0648\u0644\u0688\u0631 \u06a9\u06cc \u0633\u0627\u062e\u062a \u06a9\u0648 \u0638\u0627\u06c1\u0631 \u06a9\u0631\u062a\u06cc \u06c1\u06d2\u06d4\" style=\"display:block;margin:0 auto\" width=\"600\" height=\"400\" loading=\"lazy\" title=\"\"><\/p>\n<h3 id=\"heading-14-how-to-register-the-app-and-django-rest-framework-drf\">1.4 \u0627\u06cc\u067e \u0627\u0648\u0631 \u062c\u06cc\u0627\u0646\u06af\u0648 \u0631\u06cc\u0633\u0679 \u0641\u0631\u06cc\u0645 \u0648\u0631\u06a9 (DRF) \u06a9\u0648 \u06a9\u06cc\u0633\u06d2 \u0631\u062c\u0633\u0679\u0631 \u06a9\u0631\u06cc\u06ba<\/h3>\n<p>\u06a9\u06be\u0644\u0627 <code>notes_core\/settings.py<\/code> \u0627\u0648\u0631 \u0634\u0627\u0645\u0644 \u06a9\u0631\u06cc\u06ba <code>rest_framework<\/code> \u0627\u0648\u0631 <code>notes<\/code> \u067e\u0631 <code>INSTALLED_APPS<\/code> \u0627\u0646\u0648\u06cc\u0646\u0679\u0631\u06cc:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/umang.pk\/wp-content\/uploads\/2026\/05\/1778014323_740_\u062c\u06cc\u0646\u06af\u0648-\u0631\u06cc\u0633\u0679-\u0641\u0631\u06cc\u0645-\u0648\u0631\u06a9-\u0627\u0648\u0631-\u0633\u0627\u062f\u06c1-\u062c\u06d2-\u0688\u0628\u0644\u06cc\u0648-\u0679\u06cc-\u06a9\u0627.png\" alt=\"\u062a\u0635\u0648\u06cc\u0631 \u0645\u06cc\u06ba DRF \u0627\u0648\u0631 Notes \u0627\u06cc\u067e\u0633 \u06a9\u0648 \u0627\u0646\u0633\u0679\u0627\u0644 \u06a9\u0631\u062f\u06c1 \u0627\u06cc\u067e\u0633 \u06a9\u06cc \u0641\u06c1\u0631\u0633\u062a \u0645\u06cc\u06ba \u0634\u0627\u0645\u0644 \u06a9\u06cc\u0627 \u062c\u0627 \u0631\u06c1\u0627 \u06c1\u06d2\u06d4\" style=\"display:block;margin:0 auto\" width=\"600\" height=\"400\" loading=\"lazy\" title=\"\"><\/p>\n<p>\u0627\u0628 Django \u0646\u0626\u06cc \u0627\u06cc\u067e\u0633 \u0627\u0648\u0631 REST \u0641\u0631\u06cc\u0645 \u0648\u0631\u06a9 \u06a9\u06d2 \u0628\u0627\u0631\u06d2 \u0645\u06cc\u06ba \u062c\u0627\u0646\u062a\u0627 \u06c1\u06d2\u06d4 \u0622\u0626\u06cc\u06d2 \u0633\u0628 \u0633\u06d2 \u0627\u06c1\u0645 \u062a\u0639\u0645\u06cc\u0631\u0627\u062a\u06cc \u0641\u06cc\u0635\u0644\u06d2 \u06a9\u06cc \u0637\u0631\u0641 \u0686\u0644\u062a\u06d2 \u06c1\u06cc\u06ba \u062c\u0648 \u0622\u067e \u0627\u0633 \u067e\u0631\u0648\u062c\u06cc\u06a9\u0679 \u06a9\u06d2 \u0644\u06cc\u06d2 \u06a9\u0631\u06cc\u06ba \u06af\u06d2\u06d4<\/p>\n<h2 id=\"heading-step-2-how-to-create-a-custom-user-model\">\u0645\u0631\u062d\u0644\u06c1 2: \u062d\u0633\u0628 \u0636\u0631\u0648\u0631\u062a \u0635\u0627\u0631\u0641 \u0645\u0627\u0688\u0644 \u06a9\u06cc\u0633\u06d2 \u0628\u0646\u0627\u0626\u06cc\u06ba<\/h2>\n<p>\u0627\u06af\u0631 \u0622\u067e \u0646\u06d2 \u067e\u06c1\u0644\u06d2 \u062c\u06cc\u0627\u0646\u06af\u0648 \u067e\u0631\u0648\u062c\u06cc\u06a9\u0679 \u0628\u0646\u0627\u06cc\u0627 \u06c1\u06d2 \u062a\u0648\u060c \u0622\u067e \u0646\u06d2 \u062c\u06cc\u0646\u06af\u0648 \u06a9\u0627 \u0688\u06cc\u0641\u0627\u0644\u0679 \u0635\u0627\u0631\u0641 \u0645\u0627\u0688\u0644 \u0627\u0633\u062a\u0639\u0645\u0627\u0644 \u06a9\u06cc\u0627 \u06c1\u0648\u06af\u0627\u06d4 \u0641\u0648\u0631\u06cc \u067e\u0631\u0648\u0679\u0648 \u0679\u0627\u0626\u067e\u0646\u06af \u06a9\u06d2 \u0644\u06cc\u06d2\u060c \u06cc\u06c1 \u0679\u06be\u06cc\u06a9 \u06c1\u06d2\u06d4 \u062a\u0627\u06c1\u0645\u060c \u06a9\u0633\u06cc \u0628\u06be\u06cc \u067e\u0631\u0648\u062c\u06cc\u06a9\u0679 \u06a9\u06d2 \u0644\u06cc\u06d2 \u062c\u0648 \u0622\u067e \u0628\u0691\u06be\u0627\u0646\u0627 \u06cc\u0627 \u0628\u0631\u0642\u0631\u0627\u0631 \u0631\u06a9\u06be\u0646\u0627 \u0686\u0627\u06c1\u062a\u06d2 \u06c1\u06cc\u06ba\u060c \u062d\u0633\u0628 \u0636\u0631\u0648\u0631\u062a \u0635\u0627\u0631\u0641 \u0645\u0627\u0688\u0644 \u06a9\u06d2 \u0633\u0627\u062a\u06be \u0634\u0631\u0648\u0639 \u06a9\u0631\u0646\u0627 \u0627\u06cc\u06a9 \u0628\u06c1\u062a\u0631\u06cc\u0646 \u0639\u0645\u0644 \u06c1\u06d2 \u062c\u0633\u06d2 \u06a9\u0628\u06be\u06cc \u0646\u06c1\u06cc\u06ba \u0686\u06be\u0648\u0691\u0646\u0627 \u0686\u0627\u06c1\u06cc\u06d2\u06d4<\/p>\n<p>\u06cc\u06c1\u0627\u06ba \u06a9\u06cc\u0648\u06ba \u06c1\u06d2: \u062c\u06cc\u0646\u06af\u0648 \u06a9\u0627 \u0688\u06cc\u0641\u0627\u0644\u0679 <code>User<\/code> \u0645\u0627\u0688\u0644 \u06c1\u06d2\u06d4 <code>username<\/code> \u0641\u06cc\u0644\u0688 \u06a9\u0648 \u0628\u0646\u06cc\u0627\u062f\u06cc \u0634\u0646\u0627\u062e\u062a \u06a9\u0646\u0646\u062f\u06c1 \u06a9\u06d2 \u0637\u0648\u0631 \u067e\u0631 \u0627\u0633\u062a\u0639\u0645\u0627\u0644 \u06a9\u0631\u06cc\u06ba\u06d4 \u0645\u0633\u0627\u0626\u0644 \u067e\u06cc\u062f\u0627 \u06c1\u0648\u062a\u06d2 \u06c1\u06cc\u06ba \u0627\u06af\u0631 \u0622\u067e \u0628\u0639\u062f \u0645\u06cc\u06ba \u0641\u06cc\u0635\u0644\u06c1 \u06a9\u0631\u062a\u06d2 \u06c1\u06cc\u06ba \u06a9\u06c1 \u0635\u0627\u0631\u0641\u06cc\u0646 \u06a9\u0648 \u0627\u0646 \u06a9\u06d2 \u0627\u06cc \u0645\u06cc\u0644 \u0627\u06cc\u0688\u0631\u06cc\u0633 \u06a9\u06d2 \u0633\u0627\u062a\u06be \u0644\u0627\u06af \u0627\u0646 \u06a9\u0631\u0646\u06d2\u060c \u06cc\u0627 \u067e\u0631\u0648\u0641\u0627\u0626\u0644 \u067e\u06a9\u0686\u0631 \u0641\u06cc\u0644\u0688 \u06cc\u0627 \u0641\u0648\u0646 \u0646\u0645\u0628\u0631 \u0634\u0627\u0645\u0644 \u06a9\u0631\u0646\u06d2 \u06a9\u06cc \u0636\u0631\u0648\u0631\u062a \u06c1\u06d2\u06d4<\/p>\n<p>\u0627\u06cc\u06a9 \u062d\u0633\u0628 \u0636\u0631\u0648\u0631\u062a \u0635\u0627\u0631\u0641 \u0645\u0627\u0688\u0644 \u0622\u067e \u06a9\u0648 \u0627\u0633 \u067e\u0631 \u0645\u06a9\u0645\u0644 \u06a9\u0646\u0679\u0631\u0648\u0644 \u0641\u0631\u0627\u06c1\u0645 \u06a9\u0631\u062a\u0627 \u06c1\u06d2 \u06a9\u06c1 \u0622\u067e \u06a9\u06cc \u0627\u06cc\u067e \u0645\u06cc\u06ba &quot;\u0635\u0627\u0631\u0641&#8221; \u06a9\u0627 \u06a9\u06cc\u0627 \u0645\u0637\u0644\u0628 \u06c1\u06d2\u06d4 \u0635\u0627\u0631\u0641 \u0646\u0627\u0645 \u0633\u06d2 \u0645\u0646\u0633\u0644\u06a9 \u06c1\u0648\u0646\u06d2 \u06a9\u06d2 \u0628\u062c\u0627\u0626\u06d2\u060c \u0622\u067e \u0627\u067e\u0646\u06d2 \u0644\u0627\u06af \u0627\u0646 \u06a9\u0648 \u0632\u06cc\u0627\u062f\u06c1 \u0639\u0645\u0644\u06cc \u0686\u06cc\u0632 \u06a9\u06d2 \u0627\u0631\u062f \u06af\u0631\u062f \u0688\u06cc\u0632\u0627\u0626\u0646 \u06a9\u0631 \u0633\u06a9\u062a\u06d2 \u06c1\u06cc\u06ba\u060c \u062c\u06cc\u0633\u06d2 \u0641\u0679\u0646\u0633 \u06cc\u0627 \u0645\u0648\u0628\u0627\u0626\u0644 \u067e\u0631 \u0645\u0628\u0646\u06cc \u0627\u06cc\u067e\u0633 \u06a9\u06d2 \u0644\u06cc\u06d2 \u0627\u06cc \u0645\u06cc\u0644 \u06cc\u0627 \u0641\u0648\u0646 \u0646\u0645\u0628\u0631\u06d4 \u0627\u0644\u06af \u0627\u0644\u06af \u067e\u0631\u0648\u0641\u0627\u0626\u0644\u0632 \u06a9\u0648 \u0628\u0631\u0642\u0631\u0627\u0631 \u0631\u06a9\u06be\u0646\u06d2 \u06a9\u06d2 \u0628\u062c\u0627\u0626\u06d2\u060c \u0622\u067e \u0628\u0631\u0627\u06c1 \u0631\u0627\u0633\u062a \u0635\u0627\u0631\u0641 \u06a9\u06d2 \u0645\u0627\u0688\u0644 \u0645\u06cc\u06ba \u06a9\u0631\u062f\u0627\u0631 (\u0688\u0627\u06a9\u0679\u0631\u060c \u0645\u0631\u06cc\u0636\u060c \u06c1\u0633\u067e\u062a\u0627\u0644 \u06a9\u06d2 \u0646\u0638\u0627\u0645 \u0645\u06cc\u06ba \u0631\u06cc\u0633\u067e\u0634\u0646\u0633\u0679) \u06cc\u0627 \u062a\u0627\u0631\u06cc\u062e \u067e\u06cc\u062f\u0627\u0626\u0634 \u0628\u06be\u06cc \u0634\u0627\u0645\u0644 \u06a9\u0631 \u0633\u06a9\u062a\u06d2 \u06c1\u06cc\u06ba\u06d4<\/p>\n<p>\u06cc\u06c1 \u0622\u067e \u06a9\u06d2 \u067e\u0631\u0648\u062c\u06cc\u06a9\u0679 \u06a9\u0648 \u0645\u0632\u06cc\u062f \u0645\u0633\u062a\u0642\u0628\u0644 \u06a9\u0627 \u062b\u0628\u0648\u062a \u0628\u0646\u0627\u0646\u06d2 \u0645\u06cc\u06ba \u0628\u06be\u06cc \u0645\u062f\u062f \u06a9\u0631\u062a\u0627 \u06c1\u06d2\u06d4 \u0627\u06af\u0631 \u0622\u067e \u0628\u0646\u06cc\u0627\u062f\u06cc \u0645\u0627\u0688\u0644 \u06a9\u06d2 \u0633\u0627\u062a\u06be \u0634\u0631\u0648\u0639 \u06a9\u0631\u062a\u06d2 \u06c1\u06cc\u06ba \u0627\u0648\u0631 \u0628\u0639\u062f \u0645\u06cc\u06ba \u0644\u0627\u06af \u0627\u0646 \u06a9\u0648 \u0635\u0627\u0631\u0641 \u0646\u0627\u0645 \u0633\u06d2 \u0627\u06cc \u0645\u06cc\u0644 \u0645\u06cc\u06ba \u062a\u0628\u062f\u06cc\u0644 \u06a9\u0631\u0646\u06d2 \u06cc\u0627 \u0645\u0637\u0644\u0648\u0628\u06c1 \u0641\u06cc\u0644\u0688\u0632 \u0634\u0627\u0645\u0644 \u06a9\u0631\u0646\u06d2 \u06a9\u0627 \u0641\u06cc\u0635\u0644\u06c1 \u06a9\u0631\u062a\u06d2 \u06c1\u06cc\u06ba \u062a\u0648 \u062a\u0628\u062f\u06cc\u0644\u06cc\u0627\u06ba \u0645\u0634\u06a9\u0644 \u0627\u0648\u0631 \u062e\u0637\u0631\u0646\u0627\u06a9 \u06c1\u0648 \u062c\u0627\u062a\u06cc \u06c1\u06cc\u06ba\u06d4 \u0634\u0631\u0648\u0639 \u0633\u06d2 \u06c1\u06cc \u062d\u0633\u0628 \u0636\u0631\u0648\u0631\u062a \u0635\u0627\u0631\u0641 \u0645\u0627\u0688\u0644 \u06a9\u0627 \u0627\u0633\u062a\u0639\u0645\u0627\u0644 \u0627\u0633 \u0645\u0633\u0626\u0644\u06d2 \u0633\u06d2 \u0628\u0686\u0627\u062a\u0627 \u06c1\u06d2 \u0627\u0648\u0631 \u0622\u067e \u06a9\u06cc \u0627\u06cc\u067e \u06a9\u06d2 \u0628\u0691\u06be\u0646\u06d2 \u06a9\u06d2 \u0633\u0627\u062a\u06be \u0633\u0627\u062a\u06be \u0622\u067e \u06a9\u06d2 \u062a\u0635\u062f\u06cc\u0642\u06cc \u0646\u0638\u0627\u0645 \u06a9\u0648 \u0627\u06cc\u0688\u062c\u0633\u0679 \u06a9\u0631\u0646\u0627 \u0628\u06c1\u062a \u0622\u0633\u0627\u0646 \u0628\u0646\u0627 \u062f\u06cc\u062a\u0627 \u06c1\u06d2\u06d4<\/p>\n<p>\u0627\u06af\u0631 \u0622\u067e \u0634\u0631\u0648\u0639 \u0633\u06d2 \u0627\u06cc\u06a9 \u062d\u0633\u0628 \u0636\u0631\u0648\u0631\u062a \u0635\u0627\u0631\u0641 \u0645\u0627\u0688\u0644 \u0628\u0646\u0627\u062a\u06d2 \u06c1\u06cc\u06ba\u060c \u062a\u0648 \u0622\u067e \u0627\u0633\u06d2 \u0628\u0639\u062f \u0645\u06cc\u06ba \u0628\u063a\u06cc\u0631 \u06a9\u0633\u06cc \u062f\u0642\u062a \u06a9\u06d2 \u0622\u0632\u0627\u062f\u0627\u0646\u06c1 \u0637\u0648\u0631 \u067e\u0631 \u062a\u0628\u062f\u06cc\u0644 \u06a9\u0631 \u0633\u06a9\u062a\u06d2 \u06c1\u06cc\u06ba\u060c \u0686\u0627\u06c1\u06d2 \u06cc\u06c1 \u0628\u0646\u06cc\u0627\u062f\u06cc \u0645\u0627\u0688\u0644 \u0633\u06d2 \u0645\u0645\u0627\u062b\u0644 \u06c1\u06cc \u06a9\u06cc\u0648\u06ba \u0646\u06c1 \u06c1\u0648\u06d4<\/p>\n<h3 id=\"heading-21-how-to-define-the-custom-user-model\">2.1 \u062d\u0633\u0628 \u0636\u0631\u0648\u0631\u062a \u0635\u0627\u0631\u0641 \u0645\u0627\u0688\u0644 \u06a9\u06cc \u0648\u0636\u0627\u062d\u062a \u06a9\u06cc\u0633\u06d2 \u06a9\u0631\u06cc\u06ba\u06d4<\/h3>\n<p>\u06a9\u06be\u0644\u0627 <code>notes\/models\/py<\/code> \u0627\u0648\u0631 \u062f\u0631\u062c \u0630\u06cc\u0644 \u06a9\u0648\u0688 \u0634\u0627\u0645\u0644 \u06a9\u0631\u06cc\u06ba:<\/p>\n<pre><code class=\"language-python\">from django.contrib.auth.models import AbstractUser\nfrom django.db import models\n\nclass CustomUser(AbstractUser):\n    pass\n<\/code><\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/umang.pk\/wp-content\/uploads\/2026\/05\/1778014324_403_\u062c\u06cc\u0646\u06af\u0648-\u0631\u06cc\u0633\u0679-\u0641\u0631\u06cc\u0645-\u0648\u0631\u06a9-\u0627\u0648\u0631-\u0633\u0627\u062f\u06c1-\u062c\u06d2-\u0688\u0628\u0644\u06cc\u0648-\u0679\u06cc-\u06a9\u0627.png\" alt=\"\u062a\u0635\u0648\u06cc\u0631 \u062d\u0633\u0628 \u0636\u0631\u0648\u0631\u062a \u0635\u0627\u0631\u0641 \u0645\u0627\u0688\u0644 \u06a9\u0627 \u06a9\u0648\u0688 \u062f\u06a9\u06be\u0627\u062a\u06cc \u06c1\u06d2\u06d4\" style=\"display:block;margin:0 auto\" width=\"600\" height=\"400\" loading=\"lazy\" title=\"\"><\/p>\n<p>\u06c1\u0645 Django \u06a9\u06cc \u0628\u0644\u0679 \u0627\u0646 \u0641\u0639\u0627\u0644\u06cc\u062a \u06a9\u0648 \u062f\u0631\u0622\u0645\u062f \u06a9\u0631 \u0631\u06c1\u06d2 \u06c1\u06cc\u06ba\u06d4 <code>AbstractUser<\/code> \u06a9\u0644\u0627\u0633<\/p>\n<p>\u0633\u0648\u0686\u0648 <code>AbstractUser<\/code> \u0622\u067e \u06a9\u06d2 \u0644\u06cc\u06d2 \u062a\u06cc\u0627\u0631 \u06a9\u0631\u062f\u06c1 \u0628\u0644\u06cc\u0648 \u067e\u0631\u0646\u0679\u0633 \u06a9\u06d2 \u0633\u0627\u062a\u06be\u06d4 \u06cc\u06c1 \u067e\u06c1\u0644\u06d2 \u0633\u06d2 \u06c1\u06cc \u0641\u06cc\u0644\u0688\u0632 \u067e\u0631 \u0645\u0634\u062a\u0645\u0644 \u06c1\u06d2 \u062c\u06cc\u0633\u06d2 \u0635\u0627\u0631\u0641 \u0646\u0627\u0645\u060c \u067e\u0627\u0633 \u0648\u0631\u0688\u060c \u0627\u06cc \u0645\u06cc\u0644\u060c \u067e\u06c1\u0644\u0627 \u0646\u0627\u0645\u060c \u0622\u062e\u0631\u06cc \u0646\u0627\u0645\u060c \u0627\u0648\u0631 \u062a\u0635\u062f\u06cc\u0642 \u06a9\u06cc \u0645\u0646\u0637\u0642\u06d4<\/p>\n<p>\u06a9\u06c1 <code>pass<\/code> \u0628\u06cc\u0627\u0646 \u06a9\u0627 \u0645\u0637\u0644\u0628 \u06c1\u06d2 \u06a9\u06c1 \u0622\u067e \u0646\u06d2 \u0627\u0628\u06be\u06cc \u062a\u06a9 \u06a9\u0648\u0626\u06cc \u0627\u0636\u0627\u0641\u06cc \u0641\u06cc\u0644\u0688 \u0634\u0627\u0645\u0644 \u0646\u06c1\u06cc\u06ba \u06a9\u06cc \u06c1\u06d2\u06d4<\/p>\n<p>\u0644\u06cc\u06a9\u0646 \u0627\u06c1\u0645 \u0628\u0627\u062a \u06cc\u06c1 \u06c1\u06d2 \u06a9\u06c1 \u06cc\u06c1 \u0645\u0627\u0688\u0644 \u0622\u067e \u06a9\u0627 \u06c1\u06d2\u06d4 \u0644\u06c1\u0630\u0627 \u06cc\u06c1 \u0645\u0627\u0688\u0644 \u0628\u0627\u0644\u06a9\u0644 \u0648\u06c1\u06cc \u06a9\u0627\u0645 \u06a9\u0631\u062a\u0627 \u06c1\u06d2 \u062c\u06cc\u0633\u0627 \u06a9\u06c1 \u062c\u06cc\u0646\u06af\u0648 \u06a9\u06d2 \u0688\u06cc\u0641\u0627\u0644\u0679 \u0635\u0627\u0631\u0641 \u0645\u0627\u0688\u0644\u060c \u0644\u06cc\u06a9\u0646 <strong>\u0628\u0691\u0627 \u0641\u0627\u0626\u062f\u06c1<\/strong>: \u0627\u0628 \u0622\u067e \u0627\u0633\u06d2 \u0628\u0639\u062f \u0645\u06cc\u06ba \u0644\u0686\u06a9\u062f\u0627\u0631 \u0637\u0631\u06cc\u0642\u06d2 \u0633\u06d2 \u0627\u067e\u0646\u06cc \u0645\u0631\u0636\u06cc \u06a9\u06d2 \u0645\u0637\u0627\u0628\u0642 \u0628\u0646\u0627 \u0633\u06a9\u062a\u06d2 \u06c1\u06cc\u06ba\u06d4<\/p>\n<p>\u0627\u0628 \u0633\u06d2 3 \u0645\u0627\u06c1 \u0628\u0639\u062f <code>phone_number<\/code> \u0627\u06af\u0631 \u0622\u067e \u06a9\u0633\u06cc \u0641\u06cc\u0644\u0688 \u06a9\u0648 \u067e\u064f\u0631 \u06a9\u0631\u0646\u0627 \u0686\u0627\u06c1\u062a\u06d2 \u06c1\u06cc\u06ba \u06cc\u0627 \u0627\u06cc \u0645\u06cc\u0644 \u067e\u0631 \u0645\u0628\u0646\u06cc \u0644\u0627\u06af \u0627\u0646 \u067e\u0631 \u062c\u0627\u0646\u0627 \u0686\u0627\u06c1\u062a\u06d2 \u06c1\u06cc\u06ba\u060c \u062a\u0648 \u0622\u067e \u0641\u06cc\u0644\u0688 \u06a9\u0648 \u0627\u0633 \u06a9\u0644\u0627\u0633 \u0645\u06cc\u06ba \u0634\u0627\u0645\u0644 \u06a9\u0631 \u0633\u06a9\u062a\u06d2 \u06c1\u06cc\u06ba \u0627\u0648\u0631 \u0645\u0646\u062a\u0642\u0644\u06cc \u0686\u0644\u0627 \u0633\u06a9\u062a\u06d2 \u06c1\u06cc\u06ba\u06d4<\/p>\n<pre><code class=\"language-python\">from django.contrib.auth.models import AbstractUser\nfrom django.db import models\n\nclass CustomUser(AbstractUser):\n    phone_number = models.CharField(max_length=15)\n<\/code><\/pre>\n<p>\u0628\u06be\u06cc <code>CustomUser<\/code> \u06a9\u0644\u0627\u0633 \u0627\u0633 \u0633\u06d2 \u0648\u0631\u0627\u062b\u062a \u0645\u06cc\u06ba \u0645\u0644\u06cc: <code>AbstractUser<\/code> \u06a9\u0644\u0627\u0633<\/p>\n<p>\u0622\u067e \u0627\u0633 \u06a9\u06d2 \u0644\u06cc\u06d2 \u0627\u0632\u06af\u0631 \u06a9\u0627 \u0634\u06cc\u0644 \u0627\u0633\u062a\u0639\u0645\u0627\u0644 \u06a9\u0631 \u0633\u06a9\u062a\u06d2 \u06c1\u06cc\u06ba\u06d4 \u062f\u0631\u062c \u0630\u06cc\u0644 \u06a9\u0645\u0627\u0646\u0688 \u062f\u0631\u062c \u06a9\u0631\u06cc\u06ba:<\/p>\n<pre><code class=\"language-shell\">python manage.py shell\n<\/code><\/pre>\n<p>\u06cc\u0642\u06cc\u0646\u06cc \u0628\u0646\u0627\u0626\u06cc\u06ba \u06a9\u06c1 \u062c\u0628 \u0622\u067e \u06cc\u06c1 \u06a9\u0645\u0627\u0646\u0688 \u062f\u0627\u062e\u0644 \u06a9\u0631\u062a\u06d2 \u06c1\u06cc\u06ba \u062a\u0648 \u0622\u067e \u06a9\u0627 \u0648\u0631\u0686\u0648\u0626\u0644 \u0645\u0627\u062d\u0648\u0644 \u0641\u0639\u0627\u0644 \u06c1\u06d2\u06d4<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/umang.pk\/wp-content\/uploads\/2026\/05\/1778014326_245_\u062c\u06cc\u0646\u06af\u0648-\u0631\u06cc\u0633\u0679-\u0641\u0631\u06cc\u0645-\u0648\u0631\u06a9-\u0627\u0648\u0631-\u0633\u0627\u062f\u06c1-\u062c\u06d2-\u0688\u0628\u0644\u06cc\u0648-\u0679\u06cc-\u06a9\u0627.png\" alt=\"\u062a\u0635\u0648\u06cc\u0631 \u0627\u0646 \u06a9\u0645\u0627\u0646\u0688\u0632 \u06a9\u0648 \u062f\u06a9\u06be\u0627\u062a\u06cc \u06c1\u06d2 \u062c\u0648 \u0622\u067e Python \u0634\u06cc\u0644 \u0645\u06cc\u06ba \u0648\u0631\u0686\u0648\u0626\u0644 \u0645\u0627\u062d\u0648\u0644 \u06a9\u06d2 \u0633\u0627\u062a\u06be \u062f\u0627\u062e\u0644 \u06a9\u0631\u062a\u06d2 \u06c1\u06cc\u06ba\u06d4\" style=\"display:block;margin:0 auto\" width=\"600\" height=\"400\" loading=\"lazy\" title=\"\"><\/p>\n<p>\u0627\u0633 \u06a9\u06d2 \u0628\u0639\u062f <code>CustomUser<\/code> \u0634\u06cc\u0644 \u06a9\u0627 \u0645\u0627\u0688\u0644:<\/p>\n<pre><code class=\"language-shell\">from notes.models import CustomUser\n<\/code><\/pre>\n<p>\u067e\u06be\u0631 \u062f\u0631\u062c \u0630\u06cc\u0644 \u06a9\u0648\u0688 \u062f\u0631\u062c \u06a9\u0631\u06cc\u06ba:<\/p>\n<pre><code class=\"language-shell\">[fields.name for field in CustomUser._meta.get_fields()]\n<\/code><\/pre>\n<p>\u0645\u0646\u062f\u0631\u062c\u06c1 \u0628\u0627\u0644\u0627 \u0628\u06cc\u0627\u0646 \u0645\u06cc\u06ba \u062f\u0631\u062c \u0630\u06cc\u0644 \u062a\u0645\u0627\u0645 \u0634\u0639\u0628\u0648\u06ba \u06a9\u06cc \u0641\u06c1\u0631\u0633\u062a \u06c1\u06d2: <code>CustomUser<\/code> \u06a9\u0644\u0627\u0633<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/umang.pk\/wp-content\/uploads\/2026\/05\/1778014328_663_\u062c\u06cc\u0646\u06af\u0648-\u0631\u06cc\u0633\u0679-\u0641\u0631\u06cc\u0645-\u0648\u0631\u06a9-\u0627\u0648\u0631-\u0633\u0627\u062f\u06c1-\u062c\u06d2-\u0688\u0628\u0644\u06cc\u0648-\u0679\u06cc-\u06a9\u0627.png\" alt=\"\u062a\u0635\u0648\u06cc\u0631 CustomUser \u0645\u0627\u0688\u0644 \u06a9\u06d2 \u0630\u0631\u06cc\u0639\u06d2 \u0648\u0631\u0627\u062b\u062a \u0645\u06cc\u06ba \u0645\u0644\u0646\u06d2 \u0648\u0627\u0644\u06cc \u062a\u0645\u0627\u0645 \u0641\u0627\u0626\u0644\u0648\u06ba \u06a9\u0627 \u0622\u0624\u0679 \u067e\u0679 \u062f\u06a9\u06be\u0627\u062a\u06cc \u06c1\u06d2\u06d4\" style=\"display:block;margin:0 auto\" width=\"600\" height=\"400\" loading=\"lazy\" title=\"\"><\/p>\n<h3 id=\"heading-22-how-to-tell-django-to-use-your-custom-user-model\">2.2 \u06a9\u0633 \u0637\u0631\u062d Django \u06a9\u0648 \u06a9\u0633\u0679\u0645 \u06cc\u0648\u0632\u0631 \u0645\u0627\u0688\u0644 \u0627\u0633\u062a\u0639\u0645\u0627\u0644 \u06a9\u0631\u0646\u06d2 \u06a9\u06d2 \u0644\u06cc\u06d2 \u0628\u062a\u0627\u0626\u06cc\u06ba<\/h3>\n<p>\u0627\u0628 \u0627\u06c1\u0645 \u062d\u0635\u06c1 \u0622\u062a\u0627 \u06c1\u06d2\u06d4 \u06a9\u06be\u0644\u0627 <code>notes_core\/settings.py<\/code> \u0627\u0648\u0631 \u062f\u0631\u062c \u0630\u06cc\u0644 \u0644\u0627\u0626\u0646 \u0634\u0627\u0645\u0644 \u06a9\u0631\u06cc\u06ba:<\/p>\n<pre><code class=\"language-python\">AUTH_USER_MODEL = 'notes.CustomUser'\n<\/code><\/pre>\n<p>\u06cc\u06c1 \u062a\u0631\u062a\u06cc\u0628 \u062c\u06cc\u0646\u06af\u0648 \u06a9\u0648 \u0627\u062c\u0627\u0632\u062a \u062f\u06cc\u062a\u06cc \u06c1\u06d2\u06d4 <code>CustomUser<\/code> \u062a\u0648\u062b\u06cc\u0642 \u0633\u06d2 \u0645\u062a\u0639\u0644\u0642 \u06c1\u0631 \u0686\u06cc\u0632 \u06a9\u06d2 \u0644\u06cc\u06d2 \u0628\u0644\u0679 \u0627\u0646 \u0645\u0627\u0688\u0644\u0632 \u06a9\u06d2 \u0628\u062c\u0627\u0626\u06d2 \u0645\u0627\u0688\u0644\u0632 \u0627\u0633\u062a\u0639\u0645\u0627\u0644 \u06a9\u0631\u06cc\u06ba\u060c \u062c\u06cc\u0633\u06d2 \u0644\u0627\u06af \u0627\u0646\u060c \u0627\u062c\u0627\u0632\u062a\u06cc\u06ba\u060c \u063a\u06cc\u0631 \u0645\u0644\u06a9\u06cc \u06a9\u06cc\u0632 \u0648\u063a\u06cc\u0631\u06c1\u06d4<\/p>\n<p>\u0627\u0633 \u0628\u0627\u0631\u06d2 \u0645\u06cc\u06ba \u06a9\u0648\u0626\u06cc \u0633\u062e\u062a \u0627\u0648\u0631 \u062a\u06cc\u0632 \u0627\u0635\u0648\u0644 \u0646\u06c1\u06cc\u06ba \u06c1\u06cc\u06ba \u06a9\u06c1 \u0622\u067e \u0627\u0633\u06d2 \u06a9\u06c1\u0627\u06ba \u0634\u0627\u0645\u0644 \u06a9\u0631\u06cc\u06ba\u060c \u0644\u06cc\u06a9\u0646 \u0628\u06c1\u062a\u0631\u06cc\u0646 \u0639\u0645\u0644 \u06cc\u06c1 \u06c1\u06d2 \u06a9\u06c1 \u0627\u0633\u06d2 \u0641\u0627\u0626\u0644 \u06a9\u06d2 \u0622\u062e\u0631 \u0645\u06cc\u06ba \u0634\u0627\u0645\u0644 \u06a9\u0631\u06cc\u06ba\u06d4<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/umang.pk\/wp-content\/uploads\/2026\/05\/1778014330_963_\u062c\u06cc\u0646\u06af\u0648-\u0631\u06cc\u0633\u0679-\u0641\u0631\u06cc\u0645-\u0648\u0631\u06a9-\u0627\u0648\u0631-\u0633\u0627\u062f\u06c1-\u062c\u06d2-\u0688\u0628\u0644\u06cc\u0648-\u0679\u06cc-\u06a9\u0627.png\" alt=\"\u062a\u0635\u0648\u06cc\u0631 \u0645\u0646\u062f\u0631\u062c\u06c1 \u0628\u0627\u0644\u0627 \u06a9\u0648\u0688 \u06a9\u0648 settings.py \u0641\u0627\u0626\u0644 \u0645\u06cc\u06ba \u0634\u0627\u0645\u0644 \u06a9\u0631 \u0631\u06c1\u06cc \u06c1\u06d2\u06d4\" style=\"display:block;margin:0 auto\" width=\"600\" height=\"400\" loading=\"lazy\" title=\"\"><\/p>\n<p>\u0622\u067e \u0686\u06cc\u06a9 \u06a9\u0631 \u0633\u06a9\u062a\u06d2 \u06c1\u06cc\u06ba \u06a9\u06c1 \u06a9\u0648\u0646 \u0633\u0627 \u0635\u0627\u0631\u0641 \u0645\u0627\u0688\u0644 Django \u0645\u0646\u062f\u0631\u062c\u06c1 \u0630\u06cc\u0644 \u0637\u0631\u06cc\u0642\u06c1 \u0627\u0633\u062a\u0639\u0645\u0627\u0644 \u06a9\u0631 \u0631\u06c1\u0627 \u06c1\u06d2\u06d4 <code>get_user_model()<\/code>.<\/p>\n<p>\u0627\u067e\u0646\u0627 \u0627\u0632\u06af\u0631 \u06a9\u0627 \u0634\u06cc\u0644 \u062f\u0648\u0628\u0627\u0631\u06c1 \u06a9\u06be\u0648\u0644\u06cc\u06ba \u0627\u0648\u0631 \u062f\u0631\u0622\u0645\u062f \u06a9\u0631\u06cc\u06ba: <code>get_user_model()<\/code> \u0637\u0631\u06cc\u0642\u06c1:<\/p>\n<pre><code class=\"language-shell\">from django.contrib.auth import get_user_model \n<\/code><\/pre>\n<p>\u067e\u06be\u0631 \u0627\u0633\u062a\u0639\u0645\u0627\u0644 \u06a9\u0631\u06cc\u06ba\u06d4 <code>get_user_model()<\/code> \u0622\u0624\u0679 \u067e\u0679 \u067e\u0631\u0646\u0679 \u06a9\u0631\u06cc\u06ba\u06d4<\/p>\n<pre><code class=\"language-shell\">user = get_user_model()\nprint(user)\n<\/code><\/pre>\n<p>\u0622\u067e \u062c\u0648 \u0645\u0627\u0688\u0644 \u0627\u0633\u062a\u0639\u0645\u0627\u0644 \u06a9\u0631\u0631\u06c1\u06d2 \u06c1\u06cc\u06ba \u0627\u0633 \u06a9\u0627 \u0646\u0627\u0645 \u0638\u0627\u06c1\u0631 \u06c1\u0648\u06af\u0627\u06d4<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/umang.pk\/wp-content\/uploads\/2026\/05\/1778014331_697_\u062c\u06cc\u0646\u06af\u0648-\u0631\u06cc\u0633\u0679-\u0641\u0631\u06cc\u0645-\u0648\u0631\u06a9-\u0627\u0648\u0631-\u0633\u0627\u062f\u06c1-\u062c\u06d2-\u0688\u0628\u0644\u06cc\u0648-\u0679\u06cc-\u06a9\u0627.png\" alt=\"895d5bcc-6880-4c4d-9007-96d44e9fa496\" style=\"display:block;margin:0 auto\" width=\"600\" height=\"400\" loading=\"lazy\" title=\"\"><\/p>\n<p>\u0627\u06af\u0631 \u0622\u067e \u0646\u06d2 \u0627\u0633\u06d2 \u0634\u0627\u0645\u0644 \u0646\u06c1\u06cc\u06ba \u06a9\u06cc\u0627\u06d4 <code>AUTH_USER_MODEL<\/code> \u067e\u0631 <code>settings.py<\/code> \u0627\u06af\u0631 \u0622\u067e \u0641\u0627\u0626\u0644 \u06a9\u0648 \u0645\u062d\u0641\u0648\u0638 \u06a9\u0631\u062a\u06d2 \u06c1\u06cc\u06ba\u060c \u062a\u0648 Django \u067e\u06c1\u0644\u06d2 \u0633\u06d2 \u0637\u06d2 \u0634\u062f\u06c1 \u0635\u0627\u0631\u0641 \u0645\u0627\u0688\u0644 \u0627\u0633\u062a\u0639\u0645\u0627\u0644 \u06a9\u0631\u062a\u0627:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/umang.pk\/wp-content\/uploads\/2026\/05\/1778014333_342_\u062c\u06cc\u0646\u06af\u0648-\u0631\u06cc\u0633\u0679-\u0641\u0631\u06cc\u0645-\u0648\u0631\u06a9-\u0627\u0648\u0631-\u0633\u0627\u062f\u06c1-\u062c\u06d2-\u0688\u0628\u0644\u06cc\u0648-\u0679\u06cc-\u06a9\u0627.png\" alt=\"\u062a\u0635\u0648\u06cc\u0631 Django \u0645\u06cc\u06ba \u0627\u0633\u062a\u0639\u0645\u0627\u0644 \u06c1\u0648\u0646\u06d2 \u0648\u0627\u0644\u06d2 \u0628\u0646\u06cc\u0627\u062f\u06cc \u0635\u0627\u0631\u0641 \u0645\u0627\u0688\u0644 \u06a9\u0648 \u062f\u06a9\u06be\u0627\u062a\u06cc \u06c1\u06d2\u06d4\" style=\"display:block;margin:0 auto\" width=\"600\" height=\"400\" loading=\"lazy\" title=\"\"><\/p>\n<p><strong>\u0645\u06cc\u0645\u0648:<\/strong> \u0622\u067e \u06a9\u0648 \u0627\u067e\u0646\u06cc \u067e\u06c1\u0644\u06cc \u0645\u0646\u062a\u0642\u0644\u06cc \u0686\u0644\u0627\u0646\u06d2 \u0633\u06d2 \u067e\u06c1\u0644\u06d2 \u06cc\u06c1 \u06a9\u0631\u0646\u0627 \u0686\u0627\u06c1\u06cc\u06d2\u06d4 \u0627\u06af\u0631 \u0622\u067e AUTH_USER_MODEL \u0633\u06cc\u0679 \u06a9\u0631\u0646\u06d2 \u0633\u06d2 \u067e\u06c1\u0644\u06d2 \u06c1\u062c\u0631\u062a \u0686\u0644\u0627\u062a\u06d2 \u06c1\u06cc\u06ba\u060c \u062a\u0648 Django \u067e\u06c1\u0644\u06d2 \u0633\u06d2 \u0637\u06d2 \u0634\u062f\u06c1 \u0635\u0627\u0631\u0641 \u0645\u0627\u0688\u0644 \u06a9\u06d2 \u0644\u06cc\u06d2 \u0627\u06cc\u06a9 \u0679\u06cc\u0628\u0644 \u0628\u0646\u0627\u0626\u06d2 \u06af\u0627 \u0627\u0648\u0631 \u0628\u0639\u062f \u0645\u06cc\u06ba \u0627\u0633 \u067e\u0631 \u0633\u0648\u0626\u0686 \u06a9\u0631\u0646\u0627 \u0633\u0631 \u062f\u0631\u062f \u06a9\u0627 \u0628\u0627\u0639\u062b \u06c1\u0648\u06af\u0627\u06d4<\/p>\n<h3 id=\"heading-23-how-to-run-migrations\">2.3 \u0645\u0646\u062a\u0642\u0644\u06cc \u06a9\u06cc\u0633\u06d2 \u0686\u0644\u0627\u0626\u06cc \u062c\u0627\u0626\u06d2\u06d4<\/h3>\n<p>\u0627\u0628 \u0622\u0626\u06cc\u06d2 \u0627\u0628\u062a\u062f\u0627\u0626\u06cc \u0645\u0646\u062a\u0642\u0644\u06cc \u0628\u0646\u0627\u0626\u06cc\u06ba \u0627\u0648\u0631 \u0644\u0627\u06af\u0648 \u06a9\u0631\u06cc\u06ba\u06d4<\/p>\n<pre><code class=\"language-shell\">python manage.py makemigrations\npython manage.py migrate\n<\/code><\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/umang.pk\/wp-content\/uploads\/2026\/05\/1778014335_289_\u062c\u06cc\u0646\u06af\u0648-\u0631\u06cc\u0633\u0679-\u0641\u0631\u06cc\u0645-\u0648\u0631\u06a9-\u0627\u0648\u0631-\u0633\u0627\u062f\u06c1-\u062c\u06d2-\u0688\u0628\u0644\u06cc\u0648-\u0679\u06cc-\u06a9\u0627.png\" alt=\"\u062a\u0635\u0648\u06cc\u0631 \u0645\u0646\u062f\u0631\u062c\u06c1 \u0628\u0627\u0644\u0627 \u06a9\u0645\u0627\u0646\u0688 \u06a9\u0648 \u0686\u0644\u0627\u0646\u06d2 \u06a9\u06d2 \u0628\u0639\u062f \u0622\u0624\u0679 \u067e\u0679 \u062f\u06a9\u06be\u0627\u062a\u06cc \u06c1\u06d2\u06d4\" style=\"display:block;margin:0 auto\" width=\"600\" height=\"400\" loading=\"lazy\" title=\"\"><\/p>\n<p>Django \u062a\u0645\u0627\u0645 \u0628\u0644\u0679 \u0627\u0646 Django \u0679\u06cc\u0628\u0644\u0632 \u06a9\u06d2 \u0633\u0627\u062a\u06be \u0622\u067e \u06a9\u06d2 \u062d\u0633\u0628 \u0636\u0631\u0648\u0631\u062a \u0635\u0627\u0631\u0641 \u0645\u0627\u0688\u0644 \u06a9\u06d2 \u0644\u06cc\u06d2 \u062f\u0631\u06a9\u0627\u0631 \u062c\u062f\u0648\u0644\u06cc\u06ba \u0628\u0646\u0627\u062a\u0627 \u06c1\u06d2\u06d4<\/p>\n<p>\u0622\u067e \u06c1\u0688 \u06a9\u06d2 \u0646\u06cc\u0686\u06d2 \u0627\u06cc\u06a9 \u0627\u0648\u0631 \u062c\u06be\u0627\u0646\u06a9 \u06a9\u0631 \u0627\u06cc\u0633 \u06a9\u06cc\u0648 \u0627\u06cc\u0644 \u06a9\u06d2 \u0633\u0648\u0627\u0644\u0627\u062a \u06a9\u0648 \u062f\u06cc\u06a9\u06be\u0646\u06d2 \u06a9\u06d2 \u0644\u06cc\u06d2 \u062c\u0627\u0646\u06af\u0648 \u06a9\u0648 \u062f\u06cc\u06a9\u06be \u0633\u06a9\u062a\u06d2 \u06c1\u06cc\u06ba\u060c \u062e\u0627\u0635 \u0637\u0648\u0631 \u067e\u0631 \u0679\u06cc\u0628\u0644 \u0628\u0646\u0627\u0646\u06d2 \u06a9\u06d2 \u0644\u06cc\u06d2\u06d4 <code>CustomUser<\/code> \u0645\u06cc\u0632<\/p>\n<p>\u062f\u0631\u062c \u0630\u06cc\u0644 \u06a9\u0645\u0627\u0646\u0688 \u062f\u0631\u062c \u06a9\u0631\u06cc\u06ba:<\/p>\n<pre><code class=\"language-shell\">python manage.py sqlmigrate notes 0001\n<\/code><\/pre>\n<p>\u06cc\u06c1\u0627\u06ba <code>notes<\/code> \u06cc\u06c1 \u0627\u06cc\u067e \u06a9\u0627 \u0646\u0627\u0645 \u06c1\u06d2\u06d4 <code>0001<\/code> \u0645\u0646\u062a\u0642\u0644\u06cc \u0646\u0645\u0628\u0631 \u06a9\u06cc \u0646\u0634\u0627\u0646\u062f\u06c1\u06cc \u06a9\u0631\u062a\u0627 \u06c1\u06d2\u06d4<\/p>\n<p>\u0627\u0633 \u0633\u06d2 \u062f\u0631\u062c \u0630\u06cc\u0644 \u0646\u062a\u0627\u0626\u062c \u0628\u0631\u0622\u0645\u062f \u06c1\u0648\u06ba \u06af\u06d2\u06d4<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/umang.pk\/wp-content\/uploads\/2026\/05\/1778014337_451_\u062c\u06cc\u0646\u06af\u0648-\u0631\u06cc\u0633\u0679-\u0641\u0631\u06cc\u0645-\u0648\u0631\u06a9-\u0627\u0648\u0631-\u0633\u0627\u062f\u06c1-\u062c\u06d2-\u0688\u0628\u0644\u06cc\u0648-\u0679\u06cc-\u06a9\u0627.png\" alt=\"\u0627\u06cc\u0633 \u06a9\u06cc\u0648 \u0627\u06cc\u0644 \u0645\u0627\u0626\u06cc\u06af\u0631\u06cc\u0634\u0646 \u06a9\u0645\u0627\u0646\u0688 \u0686\u0644\u0627\u0646\u06d2 \u06a9\u06d2 \u0628\u0639\u062f \u0627\u0645\u06cc\u062c \u0622\u0624\u0679 \u067e\u0679 \u062f\u06a9\u06be\u0627\u062a\u06cc \u06c1\u06d2\u06d4\" style=\"display:block;margin:0 auto\" width=\"600\" height=\"400\" loading=\"lazy\" title=\"\"><\/p>\n<p>\u0622\u0626\u06cc\u06d2 \u0627\u06cc\u06a9 \u0633\u067e\u0631 \u06cc\u0648\u0632\u0631 \u0628\u06be\u06cc \u0628\u0646\u0627\u0626\u06cc\u06ba \u062a\u0627\u06a9\u06c1 \u06c1\u0645 \u0628\u0639\u062f \u0645\u06cc\u06ba \u0688\u06cc\u0628\u06af \u06a9\u0631\u0646\u06d2 \u06a9\u06d2 \u0644\u06cc\u06d2 \u0627\u06cc\u0688\u0645\u0646 \u067e\u06cc\u0646\u0644 \u062a\u06a9 \u0631\u0633\u0627\u0626\u06cc \u062d\u0627\u0635\u0644 \u06a9\u0631 \u0633\u06a9\u06cc\u06ba\u06d4<\/p>\n<pre><code class=\"language-shell\">python manage.py createsuperuser\n<\/code><\/pre>\n<p>\u062c\u0628 \u0627\u0634\u0627\u0631\u06c1 \u06a9\u06cc\u0627 \u062c\u0627\u0626\u06d2 \u062a\u0648 \u0627\u067e\u0646\u0627 \u0635\u0627\u0631\u0641 \u0646\u0627\u0645\u060c \u0627\u06cc \u0645\u06cc\u0644 (\u0627\u062e\u062a\u06cc\u0627\u0631\u06cc) \u0627\u0648\u0631 \u067e\u0627\u0633 \u0648\u0631\u0688 \u062f\u0631\u062c \u06a9\u0631\u06cc\u06ba\u06d4<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/umang.pk\/wp-content\/uploads\/2026\/05\/1778014339_580_\u062c\u06cc\u0646\u06af\u0648-\u0631\u06cc\u0633\u0679-\u0641\u0631\u06cc\u0645-\u0648\u0631\u06a9-\u0627\u0648\u0631-\u0633\u0627\u062f\u06c1-\u062c\u06d2-\u0688\u0628\u0644\u06cc\u0648-\u0679\u06cc-\u06a9\u0627.png\" alt=\"\u062a\u0635\u0648\u06cc\u0631 \u062f\u06a9\u06be\u0627\u062a\u06cc \u06c1\u06d2 \u06a9\u06c1 \u0627\u06cc\u06a9 \u0633\u067e\u0631 \u06cc\u0648\u0632\u0631 \u0628\u0646\u0627\u06cc\u0627 \u062c\u0627 \u0631\u06c1\u0627 \u06c1\u06d2\u06d4\" style=\"display:block;margin:0 auto\" width=\"600\" height=\"400\" loading=\"lazy\" title=\"\"><\/p>\n<h2 id=\"heading-step-3-how-to-define-the-note-model\">\u0645\u0631\u062d\u0644\u06c1 3: \u0646\u0648\u0679 \u0645\u0627\u0688\u0644 \u06a9\u06cc \u0648\u0636\u0627\u062d\u062a \u06a9\u06cc\u0633\u06d2 \u06a9\u0631\u06cc\u06ba\u06d4<\/h2>\n<p>\u0627\u0628 \u0622\u0626\u06cc\u06d2 \u0627\u067e\u0646\u06cc \u0627\u06cc\u067e\u0644\u06cc\u06a9\u06cc\u0634\u0646 \u06a9\u06d2 \u0628\u0646\u06cc\u0627\u062f\u06cc \u062d\u0635\u06d2 \u06a9\u06d2 \u0644\u06cc\u06d2 \u0688\u06cc\u0679\u0627 \u0645\u0627\u0688\u0644 \u0628\u0646\u0627\u0626\u06cc\u06ba\u06d4 \u0633\u0628 \u0633\u06d2 \u067e\u06c1\u0644\u06d2\u060c \u0627\u06cc\u06a9 \u0646\u0626\u06cc \u062f\u0631\u0622\u0645\u062f \u0634\u0627\u0645\u0644 \u06a9\u0631\u06a9\u06d2 <code>settings<\/code> \u0627\u0639\u062a\u0631\u0627\u0636<\/p>\n<pre><code class=\"language-python\">from django.conf import settings\n<\/code><\/pre>\n<p>\u067e\u06be\u0631 \u0630\u06cc\u0644 \u0645\u06cc\u06ba \u062f\u0631\u062c \u0630\u06cc\u0644 \u06a9\u0648\u0688 \u0634\u0627\u0645\u0644 \u06a9\u0631\u06cc\u06ba: <code>CustomUser<\/code> \u06a9\u0644\u0627\u0633:<\/p>\n<pre><code class=\"language-python\">class Notes(models.Model):\n    owner = models.ForeignKey(\n        settings.AUTH_USER_MODEL,\n        on_delete=models.CASCADE,\n        related_name=\"notes\"\n    )\n    title = models.CharField(max_length=200)\n    body = models.TextField()\n    created_at = models.DateTimeField(auto_now_add=True)\n    def __str__(self):\n        return f\"{self.title} (by {self.owner.username})\"\n<\/code><\/pre>\n<p>\u06cc\u06c1\u0627\u06ba \u0645\u06a9\u0645\u0644 \u0627\u06cc\u06a9 \u06c1\u06d2\u06d4 <code>model.py<\/code> \u067e\u0627\u0633 \u0648\u0631\u0688:<\/p>\n<pre><code class=\"language-python\">from django.contrib.auth.models import AbstractUser\nfrom django.db import models\nfrom django.conf import settings\n\nclass CustomUser(AbstractUser):\n    pass\n\nclass Notes(models.Model):\n    owner = models.ForeignKey(\n        settings.AUTH_USER_MODEL,\n        on_delete=models.CASCADE,\n        related_name=\"notes\"\n    )\n    title = models.CharField(max_length=200)\n    body = models.TextField()\n    created_at = models.DateTimeField(auto_now_add=True)\n    def __str__(self):\n        return f\"{self.title} (by {self.owner.username})\"\n<\/code><\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/umang.pk\/wp-content\/uploads\/2026\/05\/1778014341_921_\u062c\u06cc\u0646\u06af\u0648-\u0631\u06cc\u0633\u0679-\u0641\u0631\u06cc\u0645-\u0648\u0631\u06a9-\u0627\u0648\u0631-\u0633\u0627\u062f\u06c1-\u062c\u06d2-\u0688\u0628\u0644\u06cc\u0648-\u0679\u06cc-\u06a9\u0627.png\" alt=\"\u062a\u0635\u0648\u06cc\u0631 \u067e\u0648\u0631\u06cc models.py \u0641\u0627\u0626\u0644 \u06a9\u0648 \u062f\u06a9\u06be\u0627\u062a\u06cc \u06c1\u06d2\u06d4\" style=\"display:block;margin:0 auto\" width=\"600\" height=\"400\" loading=\"lazy\" title=\"\"><\/p>\n<p>\u0622\u0626\u06cc\u06d2 \u06c1\u0631 \u0627\u06cc\u06a9 \u0641\u06cc\u0644\u0688 \u06a9\u0648 \u062f\u06cc\u06a9\u06be\u06cc\u06ba\u06d4<\/p>\n<ol>\n<li>\n<p><code>owner = models.ForeignKey(settings.AUTH_USER_MODEL, ...)<\/code>: \u06c1\u0631 \u0646\u0648\u0679 \u0627\u0648\u0631 \u0635\u0627\u0631\u0641 \u06a9\u06d2 \u062f\u0631\u0645\u06cc\u0627\u0646 \u062a\u0639\u0644\u0642 \u067e\u06cc\u062f\u0627 \u06a9\u0631\u062a\u0627 \u06c1\u06d2\u06d4 \u06a9\u06c1 <code>ForeignKey<\/code> \u0641\u06cc\u0644\u0688 \u062c\u06cc\u0646\u06af\u0648 \u06a9\u0648 \u0628\u062a\u0627\u062a\u06cc \u06c1\u06d2 \u06a9\u06c1 \u06c1\u0631 \u0646\u0648\u0679 \u0628\u0627\u0644\u06a9\u0644 \u0627\u06cc\u06a9 \u0635\u0627\u0631\u0641 \u06a9\u0627 \u06c1\u06d2\u060c \u0644\u06cc\u06a9\u0646 \u0635\u0627\u0631\u0641 \u06a9\u06d2 \u067e\u0627\u0633 \u0628\u06c1\u062a \u0633\u06d2 \u0646\u0648\u0679 \u06c1\u0648 \u0633\u06a9\u062a\u06d2 \u06c1\u06cc\u06ba\u06d4<\/p>\n<p>\u06c1\u0645 \u062c\u0648 \u0627\u0633\u062a\u0639\u0645\u0627\u0644 \u06a9\u0631\u062a\u06d2 \u06c1\u06cc\u06ba \u0627\u0633 \u067e\u0631 \u062a\u0648\u062c\u06c1 \u062f\u06cc\u06ba\u06d4 <code>settings.AUTH_USER_MODEL<\/code> \u0628\u0631\u0627\u06c1 \u0631\u0627\u0633\u062a \u062f\u0631\u0622\u0645\u062f \u06a9\u0631\u0646\u06d2 \u06a9\u06d2 \u0628\u062c\u0627\u0626\u06d2 <code>CustomUser<\/code>. \u06cc\u06c1 \u062a\u062c\u0648\u06cc\u0632 \u06a9\u0631\u062f\u06c1 \u0637\u0631\u06cc\u0642\u06c1 \u06c1\u06d2 \u06a9\u06cc\u0648\u0646\u06a9\u06c1 \u06cc\u06c1 \u0622\u067e \u06a9\u06d2 \u06a9\u0648\u0688 \u06a9\u0648 \u0644\u0686\u06a9\u062f\u0627\u0631 \u0631\u06a9\u06be\u062a\u0627 \u06c1\u06d2\u06d4 \u06cc\u06c1 \u063a\u06cc\u0631 \u0645\u0644\u06a9\u06cc \u06a9\u0644\u06cc\u062f \u062e\u0648\u062f \u0628\u062e\u0648\u062f \u0644\u0627\u06af\u0648 \u06c1\u0648 \u062c\u0627\u062a\u06cc \u06c1\u06d2 \u062c\u0628 \u0622\u067e \u0633\u06cc\u0679\u0646\u06af\u0632 \u0645\u06cc\u06ba \u0627\u067e\u0646\u06d2 \u0635\u0627\u0631\u0641 \u0645\u0627\u0688\u0644 \u06a9\u0627 \u062d\u0648\u0627\u0644\u06c1 \u062a\u0628\u062f\u06cc\u0644 \u06a9\u0631\u062a\u06d2 \u06c1\u06cc\u06ba\u06d4<\/p>\n<p>\u06a9\u06c1 <code>on_delete=models.CASCADE<\/code> \u0627\u0633 \u06a9\u0627 \u0645\u0637\u0644\u0628 \u06cc\u06c1 \u06c1\u06d2 \u06a9\u06c1 \u062c\u0628 \u0635\u0627\u0631\u0641 \u06a9\u0648 \u062d\u0630\u0641 \u06a9\u0631 \u062f\u06cc\u0627 \u062c\u0627\u062a\u0627 \u06c1\u06d2\u060c \u062a\u0648 \u0627\u0633 \u0635\u0627\u0631\u0641 \u06a9\u06d2 \u062a\u0645\u0627\u0645 \u0646\u0648\u0679\u0633 \u0628\u06be\u06cc \u062d\u0630\u0641 \u06c1\u0648 \u062c\u0627\u0626\u06cc\u06ba \u06af\u06d2\u06d4<\/p>\n<p>\u06a9\u06c1 <code>related_name=\"notes\"<\/code> \u0622\u067e \u06cc\u06c1 \u0627\u0633\u062a\u0639\u0645\u0627\u0644 \u06a9\u0631\u06a9\u06d2 \u0627\u067e\u0646\u06d2 \u0646\u0648\u0679\u0633 \u062a\u06a9 \u0631\u0633\u0627\u0626\u06cc \u062d\u0627\u0635\u0644 \u06a9\u0631\u0633\u06a9\u062a\u06d2 \u06c1\u06cc\u06ba: <code>user.notes.all()<\/code>.<\/p>\n<\/li>\n<li>\n<p><code>title = models.CharField(max_length=200)<\/code>: \u06a9\u0627\u0645 \u06a9\u06d2 \u0646\u0627\u0645 \u06a9\u06d2 \u0644\u06cc\u06d2 \u0627\u06cc\u06a9 \u0679\u06cc\u06a9\u0633\u0679 \u0641\u06cc\u0644\u0688 \u0628\u0646\u0627\u062a\u0627 \u06c1\u06d2\u060c \u0632\u06cc\u0627\u062f\u06c1 \u0633\u06d2 \u0632\u06cc\u0627\u062f\u06c1 200 \u062d\u0631\u0648\u0641 \u062a\u06a9 \u0645\u062d\u062f\u0648\u062f\u06d4<\/p>\n<\/li>\n<li>\n<p><code>body = models.TextField()<\/code>: \u0646\u0648\u0679 \u06a9\u06d2 \u0627\u0635\u0644 \u0645\u0648\u0627\u062f \u067e\u0631 \u0645\u0634\u062a\u0645\u0644 \u06c1\u06d2\u06d4 <code>TextField<\/code> \u062d\u0631\u0648\u0641 \u06a9\u06cc \u06a9\u0648\u0626\u06cc \u062d\u062f \u0646\u06c1\u06cc\u06ba \u06c1\u06d2\u060c \u0627\u0633 \u0644\u06cc\u06d2 \u0635\u0627\u0631\u0641 \u0627\u067e\u0646\u06cc \u0636\u0631\u0648\u0631\u062a \u06a9\u06d2 \u0645\u0637\u0627\u0628\u0642 \u0644\u06a9\u06be \u0633\u06a9\u062a\u06d2 \u06c1\u06cc\u06ba\u06d4<\/p>\n<\/li>\n<li>\n<p><code>created_at = models.DateTimeField(auto_now_add=True)<\/code>: \u062e\u0648\u062f \u0628\u062e\u0648\u062f \u0627\u0633 \u062a\u0627\u0631\u06cc\u062e \u0627\u0648\u0631 \u0648\u0642\u062a \u06a9\u0648 \u0631\u06cc\u06a9\u0627\u0631\u0688 \u06a9\u0631\u062a\u0627 \u06c1\u06d2 \u062c\u0628 \u0679\u0627\u0633\u06a9 \u0628\u0646\u0627\u06cc\u0627 \u06af\u06cc\u0627 \u062a\u06be\u0627\u06d4 \u0622\u067e \u06a9\u0648 \u0627\u0633\u06d2 \u062f\u0633\u062a\u06cc \u0637\u0648\u0631 \u067e\u0631 \u062a\u0631\u062a\u06cc\u0628 \u062f\u06cc\u0646\u06d2 \u06a9\u06cc \u0636\u0631\u0648\u0631\u062a \u0646\u06c1\u06cc\u06ba \u06c1\u06d2\u06d4<\/p>\n<p>\u06a9\u06c1 <code>__str__()<\/code> \u0637\u0631\u06cc\u0642\u06c1 \u06c1\u0631 \u0646\u0648\u0679 \u06a9\u06cc \u067e\u0691\u06be\u0646\u06d2 \u06a9\u06d2 \u0642\u0627\u0628\u0644 \u0646\u0645\u0627\u0626\u0646\u062f\u06af\u06cc \u0641\u0631\u0627\u06c1\u0645 \u06a9\u0631\u062a\u0627 \u06c1\u06d2\u06d4 \u0627\u06cc\u0688\u0645\u0646 \u067e\u06cc\u0646\u0644 \u0645\u06cc\u06ba \u06cc\u0627 \u0688\u06cc\u0628\u06af \u06a9\u0631\u062a\u06d2 \u0648\u0642\u062a &quot;\u0646\u0648\u0679\u0633 \u0622\u0628\u062c\u06cc\u06a9\u0679 (1)&#8221; \u062f\u06cc\u06a9\u06be\u0646\u06d2 \u06a9\u06d2 \u0628\u062c\u0627\u0626\u06d2\u060c \u0622\u067e \u06a9\u0648 &quot;\u0645\u06cc\u0679\u0646\u06af \u0646\u0648\u0679\u0633 (\u0633\u0648\u0644\u06cc\u0646\u0627 \u06a9\u06cc \u062a\u062d\u0631\u06cc\u0631 \u06a9\u0631\u062f\u06c1)&#8221; \u062c\u06cc\u0633\u0627 \u06a9\u0686\u06be \u0646\u0638\u0631 \u0622\u0626\u06d2 \u06af\u0627\u06d4<\/p>\n<\/li>\n<\/ol>\n<h3 id=\"heading-32-how-to-apply-migration\">3.2 \u06c1\u062c\u0631\u062a \u06a9\u0627 \u0627\u0637\u0644\u0627\u0642 \u06a9\u06cc\u0633\u06d2 \u06a9\u0631\u06cc\u06ba\u06d4<\/h3>\n<p>\u0646\u0648\u0679 \u0679\u06cc\u0628\u0644 \u0628\u0646\u0627\u0646\u06d2 \u06a9\u06d2 \u0644\u06cc\u06d2 \u0645\u0627\u0626\u06cc\u06af\u0631\u06cc\u0634\u0646 \u06a9\u0645\u0627\u0646\u0688 \u067e\u0631 \u0639\u0645\u0644 \u06a9\u0631\u06cc\u06ba\u06d4<\/p>\n<pre><code class=\"language-shell\">python manage.py makemigrations\npython manage.py migrate\n<\/code><\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/umang.pk\/wp-content\/uploads\/2026\/05\/1778014343_249_\u062c\u06cc\u0646\u06af\u0648-\u0631\u06cc\u0633\u0679-\u0641\u0631\u06cc\u0645-\u0648\u0631\u06a9-\u0627\u0648\u0631-\u0633\u0627\u062f\u06c1-\u062c\u06d2-\u0688\u0628\u0644\u06cc\u0648-\u0679\u06cc-\u06a9\u0627.png\" alt=\"\u062a\u0635\u0648\u06cc\u0631 \u0646\u0648\u0679\u0633 \u0645\u0627\u0688\u0644 \u06a9\u0648 \u0645\u0646\u062a\u0642\u0644 \u06a9\u0631\u0646\u06d2 \u06a9\u06d2 \u0646\u062a\u0627\u0626\u062c \u062f\u06a9\u06be\u0627\u062a\u06cc \u06c1\u06d2\u06d4\" style=\"display:block;margin:0 auto\" width=\"600\" height=\"400\" loading=\"lazy\" title=\"\"><\/p>\n<p>\u067e\u06c1\u0644\u06d2 \u06a9\u06cc \u0637\u0631\u062d\u060c \u0622\u067e \u0628\u0627\u0644\u06a9\u0644 \u0648\u06c1\u06cc SQL \u0627\u0633\u062a\u0641\u0633\u0627\u0631 \u062f\u06cc\u06a9\u06be \u0633\u06a9\u062a\u06d2 \u06c1\u06cc\u06ba \u062c\u0648 Django \u067e\u06cc\u062f\u0627 \u06a9\u0631\u0646\u06d2 \u06a9\u06d2 \u0644\u06cc\u06d2 \u0627\u0633\u062a\u0639\u0645\u0627\u0644 \u06a9\u0631\u062a\u0627 \u062a\u06be\u0627\u06d4 <code>notes<\/code> \u0645\u06cc\u0632:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/umang.pk\/wp-content\/uploads\/2026\/05\/1778014344_408_\u062c\u06cc\u0646\u06af\u0648-\u0631\u06cc\u0633\u0679-\u0641\u0631\u06cc\u0645-\u0648\u0631\u06a9-\u0627\u0648\u0631-\u0633\u0627\u062f\u06c1-\u062c\u06d2-\u0688\u0628\u0644\u06cc\u0648-\u0679\u06cc-\u06a9\u0627.png\" alt=\"\u062a\u0635\u0648\u06cc\u0631 \u0645\u06cc\u06ba \u0646\u0648\u0679\u0633 \u0679\u06cc\u0628\u0644 \u0628\u0646\u0627\u0646\u06d2 \u06a9\u06d2 \u0644\u06cc\u06d2 SQL \u0627\u0633\u062a\u0641\u0633\u0627\u0631 \u0627\u0648\u0631 \u067e\u06c1\u0644\u06d2 \u0633\u06d2 \u0628\u0646\u0627\u0626\u06d2 \u06af\u0626\u06d2 \u06a9\u0633\u0679\u0645 \u06cc\u0648\u0632\u0631 \u0679\u06cc\u0628\u0644 \u06a9\u0627 \u062d\u0648\u0627\u0644\u06c1 \u062f\u06a9\u06be\u0627\u06cc\u0627 \u06af\u06cc\u0627 \u06c1\u06d2\u06d4\" style=\"display:block;margin:0 auto\" width=\"600\" height=\"400\" loading=\"lazy\" title=\"\"><\/p>\n<h3 id=\"heading-33-how-to-register-models-in-the-admin\">3.3 \u0645\u06cc\u0646\u06cc\u062c\u0631 \u0645\u06cc\u06ba \u0645\u0627\u0688\u0644 \u06a9\u0648 \u06a9\u06cc\u0633\u06d2 \u0631\u062c\u0633\u0679\u0631 \u06a9\u0631\u06cc\u06ba\u06d4<\/h3>\n<p>\u06a9\u06be\u0644\u0627 <code>notes\/admin.py<\/code> \u062f\u0648\u0646\u0648\u06ba \u0645\u0627\u0688\u0644\u0632 \u06a9\u0648 \u0631\u062c\u0633\u0679\u0631 \u06a9\u0631\u06cc\u06ba \u062a\u0627\u06a9\u06c1 \u0622\u067e \u0627\u06cc\u0688\u0645\u0646 \u067e\u06cc\u0646\u0644 \u06a9\u06d2 \u0630\u0631\u06cc\u0639\u06d2 \u0688\u06cc\u0679\u0627 \u06a9\u0627 \u0645\u0639\u0627\u0626\u0646\u06c1 \u06a9\u0631 \u0633\u06a9\u06cc\u06ba\u06d4<\/p>\n<pre><code class=\"language-python\">from django.contrib import admin\nfrom .models import CustomUser, Notes\n\nadmin.site.register(CustomUser)\nadmin.site.register(Notes)\n<\/code><\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/umang.pk\/wp-content\/uploads\/2026\/05\/1778014346_818_\u062c\u06cc\u0646\u06af\u0648-\u0631\u06cc\u0633\u0679-\u0641\u0631\u06cc\u0645-\u0648\u0631\u06a9-\u0627\u0648\u0631-\u0633\u0627\u062f\u06c1-\u062c\u06d2-\u0688\u0628\u0644\u06cc\u0648-\u0679\u06cc-\u06a9\u0627.png\" alt=\"\u062a\u0635\u0648\u06cc\u0631 admin.py \u0645\u06cc\u06ba \u06a9\u0648\u0688 \u062f\u06a9\u06be\u0627\u062a\u06cc \u06c1\u06d2\u06d4\" style=\"display:block;margin:0 auto\" width=\"600\" height=\"400\" loading=\"lazy\" title=\"\"><\/p>\n<p>\u06cc\u06c1 \u062a\u0631\u0642\u06cc \u06a9\u06d2 \u062f\u0648\u0631\u0627\u0646 \u0645\u0641\u06cc\u062f \u06c1\u06d2 \u062c\u0628 \u0622\u067e \u0641\u0648\u0631\u06cc \u0637\u0648\u0631 \u067e\u0631 \u06cc\u06c1 \u0686\u06cc\u06a9 \u06a9\u0631\u0646\u0627 \u0686\u0627\u06c1\u062a\u06d2 \u06c1\u06cc\u06ba \u06a9\u06c1 \u0622\u067e \u06a9\u0627 \u0688\u06cc\u0679\u0627 \u0635\u062d\u06cc\u062d \u0637\u0631\u06cc\u0642\u06d2 \u0633\u06d2 \u0630\u062e\u06cc\u0631\u06c1 \u06a9\u06cc\u0627 \u062c\u0627 \u0631\u06c1\u0627 \u06c1\u06d2\u06d4<\/p>\n<h2 id=\"heading-step-4-how-to-create-the-serializer\">\u0645\u0631\u062d\u0644\u06c1 4: \u0633\u06cc\u0631\u06cc\u0644\u0627\u0626\u0632\u0631 \u06a9\u06cc\u0633\u06d2 \u0628\u0646\u0627\u0626\u06cc\u06ba<\/h2>\n<p>DRF \u0645\u06cc\u06ba\u060c \u0633\u06cc\u0631\u06cc\u0644\u0627\u0626\u0632\u0631 \u0688\u06cc\u0679\u0627 \u0628\u06cc\u0633 \u0627\u0648\u0631 \u0627\u0646\u0679\u0631\u0646\u06cc\u0679 \u06a9\u06d2 \u062f\u0631\u0645\u06cc\u0627\u0646 \u0627\u06cc\u06a9 \u067e\u0644 \u06a9\u06cc \u0637\u0631\u062d \u06c1\u06d2\u06d4<\/p>\n<p>Django \u0645\u0627\u0688\u0644\u0632 \u0688\u06cc\u0679\u0627 \u06a9\u0648 Python \u0622\u0628\u062c\u06cc\u06a9\u0679 \u06a9\u06d2 \u0637\u0648\u0631 \u067e\u0631 \u0627\u0633\u0679\u0648\u0631 \u06a9\u0631\u062a\u06d2 \u06c1\u06cc\u06ba\u06d4 \u062a\u0627\u06c1\u0645\u060c \u0627\u06af\u0631 \u0622\u067e \u0627\u0633 \u0688\u06cc\u0679\u0627 \u06a9\u0648 \u0641\u0631\u0646\u0679 \u0627\u06cc\u0646\u0688 \u0627\u06cc\u067e\u0644\u06cc \u06a9\u06cc\u0634\u0646 (\u062c\u06cc\u0633\u06d2 \u06a9\u06c1 React \u06cc\u0627 \u0645\u0648\u0628\u0627\u0626\u0644 \u0627\u06cc\u067e) \u06a9\u0648 \u0628\u06be\u06cc\u062c\u0646\u0627 \u0686\u0627\u06c1\u062a\u06d2 \u06c1\u06cc\u06ba\u060c \u062a\u0648 \u0622\u067e Python \u0622\u0628\u062c\u06cc\u06a9\u0679 \u0646\u06c1\u06cc\u06ba \u0628\u06be\u06cc\u062c \u0633\u06a9\u062a\u06d2\u06d4 \u06cc\u0642\u06cc\u0646\u06cc \u0628\u0646\u0627\u0626\u06cc\u06ba \u06a9\u06c1 \u0622\u067e \u0627\u0633\u06d2 \u0627\u06cc\u06a9 \u0639\u0627\u0645 JSON \u0641\u0627\u0631\u0645\u06cc\u0679 \u0645\u06cc\u06ba \u0628\u06be\u06cc\u062c\u062a\u06d2 \u06c1\u06cc\u06ba \u062c\u0633\u06d2 \u06c1\u0631 \u06a9\u0648\u0626\u06cc \u0633\u0645\u062c\u06be \u0633\u06a9\u062a\u0627 \u06c1\u06d2\u06d4<\/p>\n<p>\u0627\u06cc\u06a9 \u0633\u06cc\u0631\u06cc\u0644\u0627\u0626\u0632\u0631 \u062a\u06cc\u0646 \u0627\u06c1\u0645 \u06a9\u0627\u0645 \u0627\u0646\u062c\u0627\u0645 \u062f\u06cc\u062a\u0627 \u06c1\u06d2:<\/p>\n<ol>\n<li>\n<p><strong>\u0633\u06cc\u0631\u06cc\u0644\u0627\u0626\u0632\u06cc\u0634\u0646:<\/strong> \u067e\u06cc\u0686\u06cc\u062f\u06c1 Python \u0627\u0634\u06cc\u0627\u0621 (\u0645\u0627\u0688\u0644) \u06a9\u0648 Python \u0644\u063a\u0627\u062a \u0645\u06cc\u06ba \u062a\u0628\u062f\u06cc\u0644 \u06a9\u0631\u06cc\u06ba (\u062c\u0633\u06d2 \u0622\u0633\u0627\u0646\u06cc \u0633\u06d2 JSON \u06a9\u06d2 \u0637\u0648\u0631 \u067e\u0631 \u067e\u06cc\u0634 \u06a9\u06cc\u0627 \u062c\u0627 \u0633\u06a9\u062a\u0627 \u06c1\u06d2)\u06d4<\/p>\n<\/li>\n<li>\n<p><strong>\u0688\u06cc \u0633\u06cc\u0631\u06cc\u0644\u0627\u0626\u0632 \u06a9\u0631\u0646\u0627:<\/strong> \u0635\u0627\u0631\u0641 \u0633\u06d2 \u0622\u0646\u06d2 \u0648\u0627\u0644\u06d2 JSON \u0688\u06cc\u0679\u0627 \u06a9\u0648 \u0627\u06cc\u06a9 \u067e\u06cc\u0686\u06cc\u062f\u06c1 Python \u0622\u0628\u062c\u06cc\u06a9\u0679 \u0645\u06cc\u06ba \u062a\u0628\u062f\u06cc\u0644 \u06a9\u0631\u06cc\u06ba\u06d4<\/p>\n<\/li>\n<li>\n<p><strong>\u0686\u06cc\u06a9 \u06a9\u0631\u06cc\u06ba:<\/strong> \u062a\u0635\u062f\u06cc\u0642 \u06a9\u0631\u062a\u0627 \u06c1\u06d2 \u06a9\u06c1 \u0622\u0646\u06d2 \u0648\u0627\u0644\u0627 \u0688\u06cc\u0679\u0627 \u0688\u06cc\u0679\u0627 \u0628\u06cc\u0633 \u0645\u06cc\u06ba \u0645\u062d\u0641\u0648\u0638 \u06a9\u0631\u0646\u06d2 \u0633\u06d2 \u067e\u06c1\u0644\u06d2 \u062f\u0631\u0633\u062a \u06c1\u06d2\u06d4<\/p>\n<\/li>\n<\/ol>\n<p><img decoding=\"async\" src=\"https:\/\/umang.pk\/wp-content\/uploads\/2026\/05\/1778014348_510_\u062c\u06cc\u0646\u06af\u0648-\u0631\u06cc\u0633\u0679-\u0641\u0631\u06cc\u0645-\u0648\u0631\u06a9-\u0627\u0648\u0631-\u0633\u0627\u062f\u06c1-\u062c\u06d2-\u0688\u0628\u0644\u06cc\u0648-\u0679\u06cc-\u06a9\u0627.png\" alt=\"\u062a\u0635\u0648\u06cc\u0631 \u0633\u06cc\u0631\u06cc\u0644\u0627\u0626\u0632\u06cc\u0634\u0646-\u0688\u06cc \u0633\u06cc\u0631\u06cc\u0644\u0627\u0626\u0632\u06cc\u0634\u0646 \u06a9\u06d2 \u0639\u0645\u0644 \u06a9\u0648 \u062f\u06a9\u06be\u0627\u062a\u06cc \u06c1\u06d2\u06d4\" style=\"display:block;margin:0 auto\" width=\"600\" height=\"400\" loading=\"lazy\" title=\"\"><\/p>\n<h3 id=\"heading-41-how-to-create-userserializer\">4.1 \u06cc\u0648\u0632\u0631 \u0633\u06cc\u0631\u06cc\u0644\u0627\u0626\u0632\u0631 \u06a9\u06cc\u0633\u06d2 \u0628\u0646\u0627\u06cc\u0627 \u062c\u0627\u0626\u06d2\u06d4<\/h3>\n<p>\u0646\u0627\u0645\u06cc \u0627\u06cc\u06a9 \u0646\u0626\u06cc \u0641\u0627\u0626\u0644 \u0628\u0646\u0627\u0626\u06cc\u06ba <code>notes\/serializers.py<\/code> \u0627\u0648\u0631 \u062f\u0631\u062c \u0630\u06cc\u0644 \u06a9\u0648\u0688 \u0634\u0627\u0645\u0644 \u06a9\u0631\u06cc\u06ba:<\/p>\n<pre><code class=\"language-python\">from rest_framework import serializers\nfrom django.contrib.auth import get_user_model\n\nUser = get_user_model()\nclass UserSerializer(serializers.ModelSerializer):\n    password = serializers.CharField(write_only=True)\n\n    class Meta:\n        model = User\n        fields = ['id', 'username', 'email', 'password']\n\n    def create(self, validated_data):\n        user = User.objects.create_user(\n            username=validated_data['username'],\n            email=validated_data.get('email', ''),\n            password=validated_data['password']\n        )\n        return user\n<\/code><\/pre>\n<p>\u0622\u0626\u06cc\u06d2 \u0627\u0633 \u0633\u06cc\u0631\u06cc\u0644\u0627\u0626\u0632\u0631 \u06a9\u0627 \u062a\u062c\u0632\u06cc\u06c1 \u06a9\u0631\u062a\u06d2 \u06c1\u06cc\u06ba\u06d4<\/p>\n<ol>\n<li>\n<p>\u06a9\u06c1 <code>UserSerializer<\/code> \u0635\u0627\u0631\u0641 \u06a9\u06cc \u0631\u062c\u0633\u0679\u0631\u06cc\u0634\u0646 \u06a9\u0648 \u06c1\u06cc\u0646\u0688\u0644 \u06a9\u0631\u062a\u0627 \u06c1\u06d2\u06d4<\/p>\n<\/li>\n<li>\n<p><code>User = get_user_model()<\/code>    \u0622\u067e \u062c\u0648 \u0635\u0627\u0631\u0641 \u0645\u0627\u0688\u0644 \u0627\u0633\u062a\u0639\u0645\u0627\u0644 \u06a9\u0631 \u0631\u06c1\u06d2 \u06c1\u06cc\u06ba \u0627\u0633\u06d2 \u0644\u06cc\u06ba \u0627\u0648\u0631 \u0627\u0633\u06d2 \u0645\u062a\u063a\u06cc\u0631 \u0645\u06cc\u06ba \u0627\u0633\u0679\u0648\u0631 \u06a9\u0631\u06cc\u06ba\u06d4 <code>User<\/code>. \u06c1\u0645\u0627\u0631\u06d2 \u0645\u0639\u0627\u0645\u0644\u06d2 \u0645\u06cc\u06ba <code>CustomUser<\/code> \u0645\u0627\u0688\u0644<\/p>\n<\/li>\n<li>\n<p><code>class UserSerializer(serializers.ModelSerializer):<\/code>: \u06cc\u06c1\u0627\u06ba \u06c1\u0645 \u0646\u06d2 \u0627\u06cc\u06a9 UserSerializer \u06a9\u0644\u0627\u0633 \u0628\u0646\u0627\u0626\u06cc \u06c1\u06d2 \u062c\u0648 \u0648\u0631\u0627\u062b\u062a \u0645\u06cc\u06ba \u0645\u0644\u062a\u06cc \u06c1\u06d2: <code>ModelSerializer<\/code>.<\/p>\n<p>\u06a9\u0648\u0626\u06cc \u0631\u0627\u0633\u062a\u06c1 \u0646\u06c1\u06cc\u06ba <code>ModelSerializer<\/code> \u06cc\u06c1 \u0627\u06cc\u06a9 \u0634\u0627\u0631\u0679 \u06a9\u0679 \u06c1\u06d2 \u062c\u0648 \u0645\u0627\u0688\u0644 \u06a9\u0644\u0627\u0633 \u0645\u06cc\u06ba \u0641\u06cc\u0644\u0688\u0632 \u06a9\u0627 \u0627\u0633\u062a\u0639\u0645\u0627\u0644 \u06a9\u0631\u062a\u06d2 \u06c1\u0648\u0626\u06d2 \u062e\u0648\u062f \u0628\u062e\u0648\u062f \u0633\u06cc\u0631\u06cc\u0644\u0627\u0626\u0632\u0631 \u06a9\u0644\u0627\u0633 \u062a\u06cc\u0627\u0631 \u06a9\u0631\u062a\u0627 \u06c1\u06d2\u06d4<\/p>\n<p>\u06c1\u0645 <code>ModelSerializer<\/code>DRF \u0622\u067e \u06a9\u06d2 \u0645\u0627\u0688\u0644 \u06a9\u06cc \u062c\u0627\u0646\u0686 \u06a9\u0631\u062a\u0627 \u06c1\u06d2 \u0627\u0648\u0631 \u062e\u0648\u062f \u0628\u062e\u0648\u062f \u062f\u0631\u062c \u0630\u06cc\u0644 \u0627\u0639\u0645\u0627\u0644 \u0627\u0646\u062c\u0627\u0645 \u062f\u06cc\u062a\u0627 \u06c1\u06d2:<\/p>\n<p>1. \u06c1\u0645 \u0645\u0627\u0688\u0644 \u0645\u06cc\u06ba \u0641\u06cc\u0644\u0688\u0632 \u0628\u0646\u0627\u062a\u06d2 \u06c1\u06cc\u06ba\u060c \u0644\u06c1\u0630\u0627 \u0622\u067e \u06a9\u0648 \u06a9\u0686\u06be \u0627\u0648\u0631 \u06a9\u0631\u0646\u06d2 \u06a9\u06cc \u0636\u0631\u0648\u0631\u062a \u0646\u06c1\u06cc\u06ba \u06c1\u06d2\u06d4<br \/>2. \u0645\u0627\u0688\u0644 \u0645\u06cc\u06ba \u0645\u0648\u062c\u0648\u062f \u0641\u06cc\u0644\u0688 \u06a9\u06cc \u062a\u0648\u062b\u06cc\u0642 \u06a9\u0648 \u062e\u0648\u062f\u06a9\u0627\u0631 \u0637\u0648\u0631 \u067e\u0631 \u0634\u0627\u0645\u0644 \u06a9\u0631\u062a\u0627 \u06c1\u06d2\u06d4<br \/>3. \u0646\u0641\u0627\u0630 <code>create()<\/code> \u0627\u0648\u0631 <code>update()<\/code> \u0637\u0631\u06cc\u0642\u06d2 \u06a9\u0648\u0626\u06cc \u0631\u0627\u0633\u062a\u06c1 \u0646\u06c1\u06cc\u06ba <code>ModelSerializer<\/code> \u0622\u067e \u062c\u0627\u0646\u062a\u06d2 \u06c1\u06cc\u06ba \u06a9\u06c1 \u06a9\u0648\u0646 \u0633\u0627 \u0645\u0627\u0688\u0644 \u0627\u0633\u062a\u0639\u0645\u0627\u0644 \u06a9\u0631\u0646\u0627 \u06c1\u06d2 \u0627\u0648\u0631 \u0627\u0633\u06d2 \u06a9\u0633 \u0637\u0631\u062d \u0627\u067e \u0688\u06cc\u0679 \u0627\u0648\u0631 \u0628\u0646\u0627\u0646\u0627 \u06c1\u06d2\u06d4 \u0627\u0648\u0648\u0631 \u0631\u0627\u0626\u0688 \u06a9\u06cc\u0627 \u062c\u0627 \u0633\u06a9\u062a\u0627 \u06c1\u06d2\u06d4 <code>create()<\/code> \u0627\u0648\u0631 <code>update()<\/code> \u0627\u06af\u0631 \u0622\u067e \u06a9\u0648 \u062d\u0633\u0628 \u0636\u0631\u0648\u0631\u062a \u0631\u0648\u06cc\u06d2 \u06a9\u06cc \u0636\u0631\u0648\u0631\u062a \u06c1\u0648 \u062a\u0648 \u06cc\u06c1 \u06a9\u06cc\u0633\u06d2 \u06a9\u0631\u06cc\u06ba\u06d4 <strong>\u062a\u0645 \u06c1\u0648<\/strong> <code>create()<\/code> <strong>\u0645\u0630\u06a9\u0648\u0631\u06c1 \u06a9\u0648\u0688 \u0645\u06cc\u06ba \u0637\u0631\u06cc\u0642\u06c1\u06d4<\/strong><\/p>\n<\/li>\n<li>\n<p><code>password = serializers.CharField(write_only=True)<\/code>: \u06cc\u06c1 \u0644\u0627\u0626\u0646 \u0627\u06c1\u0645 \u06c1\u06d2\u06d4 \u06a9\u06c1 <code>write_only=True<\/code> \u0627\u06af\u0631\u0686\u06c1 \u062c\u06be\u0646\u0688\u0627 \u0631\u062c\u0633\u0679\u0631\u06cc\u0634\u0646 \u06a9\u06d2 \u062f\u0648\u0631\u0627\u0646 \u067e\u0627\u0633 \u0648\u0631\u0688 \u06a9\u06cc \u0627\u062c\u0627\u0632\u062a \u062f\u06cc\u062a\u0627 \u06c1\u06d2\u060c <strong>\u0645\u0637\u0644\u0642\u06cc\u062a<\/strong> \u062a\u0645\u0627\u0645 API \u062c\u0648\u0627\u0628\u0627\u062a \u0645\u06cc\u06ba \u0638\u0627\u06c1\u0631 \u06c1\u0648\u062a\u0627 \u06c1\u06d2\u06d4 \u0627\u0633 \u06a9\u06d2 \u0628\u063a\u06cc\u0631\u060c API \u06c1\u0631 \u0628\u0627\u0631 \u0635\u0627\u0631\u0641 \u06a9\u0627 \u0688\u06cc\u0679\u0627 \u0648\u0627\u067e\u0633 \u06a9\u0631\u0646\u06d2 \u067e\u0631 \u067e\u0627\u0633 \u0648\u0631\u0688 (\u0686\u0627\u06c1\u06d2 \u06c1\u06cc\u0634 \u06c1\u0648) \u0648\u0627\u067e\u0633 \u0628\u06be\u06cc\u062c \u062f\u06d2 \u06af\u0627\u06d4<\/p>\n<p>\u0644\u06c1\u0630\u0627 \u0635\u0627\u0631\u0641\u06cc\u0646 \u0627\u06a9\u0627\u0624\u0646\u0679\u0633 \u0628\u0646\u0627 \u0633\u06a9\u062a\u06d2 \u06c1\u06cc\u06ba\u060c \u0644\u06cc\u06a9\u0646 \u0627\u0646 \u06a9\u06d2 \u067e\u0627\u0633 \u0648\u0631\u0688 \u062f\u0648\u0628\u0627\u0631\u06c1 \u0638\u0627\u06c1\u0631 \u0646\u06c1\u06cc\u06ba \u06a9\u06cc\u06d2 \u062c\u0627\u0626\u06cc\u06ba \u06af\u06d2\u06d4<\/p>\n<\/li>\n<li>\n<p><code>class Meta<\/code>: \u0627\u0646\u062f\u0631\u0648\u0646\u06cc <code>Meta<\/code> \u06a9\u0644\u0627\u0633 \u0633\u06cc\u0631\u06cc\u0644\u0627\u0626\u0632\u0631 \u06a9\u0648 \u0628\u062a\u0627\u062a\u06cc \u06c1\u06d2 \u06a9\u06c1 \u06a9\u0648\u0646 \u0633\u0627 \u0645\u0627\u0688\u0644 \u0627\u0633\u062a\u0639\u0645\u0627\u0644 \u06a9\u0631\u0646\u0627 \u06c1\u06d2\u06d4 \u0627\u0633 \u0635\u0648\u0631\u062a \u0645\u06cc\u06ba \u0627\u0633\u062a\u0639\u0645\u0627\u0644 \u06a9\u0631\u0646\u06d2 \u06a9\u06d2 \u0644\u0626\u06d2 \u0645\u0627\u0688\u0644 \u06c1\u06d2 <code>User<\/code> \u0627\u0648\u0631 \u0639\u0645\u0644 \u06a9\u0631\u0646\u06d2 \u06a9\u06d2 \u0644\u06cc\u06d2 \u0641\u06cc\u0644\u0688\u0632\u06d4<\/p>\n<\/li>\n<li>\n<p>\u06a9\u06c1 <code>create()<\/code> \u06a9\u06cc\u0633\u06d2 \u06a9\u0631\u06cc\u06ba: \u06cc\u06c1 \u0633\u0628 \u0633\u06d2 \u0627\u06c1\u0645 \u062d\u0635\u06c1 \u06c1\u06d2\u06d4 \u06cc\u06c1 \u0637\u0631\u06cc\u0642\u06c1 \u0646\u06cc\u0627 \u0635\u0627\u0631\u0641 \u0628\u0646\u0627\u062a\u06d2 \u0648\u0642\u062a \u0686\u0644\u062a\u0627 \u06c1\u06d2\u06d4 \u067e\u06c1\u0644\u06d2 \u0633\u06d2 \u0637\u06d2 \u0634\u062f\u06c1 \u0627\u0633\u062a\u0639\u0645\u0627\u0644 \u06a9\u0631\u0646\u06d2 \u06a9\u06d2 \u0628\u062c\u0627\u0626\u06d2 <code>.create()<\/code> \u0622\u067e \u0646\u06d2 \u0627\u06cc\u06a9 \u0637\u0631\u06cc\u0642\u06c1 \u06a9\u0648 \u0627\u0648\u0648\u0631 \u0631\u0627\u0626\u06cc\u0688 \u06a9\u06cc\u0627\u06d4<\/p>\n<p>\u06cc\u06c1 \u0633\u0645\u062c\u06be\u0646\u0627 \u0636\u0631\u0648\u0631\u06cc \u06c1\u06d2 \u06a9\u06c1 \u06cc\u06c1 \u0637\u0631\u06cc\u0642\u06c1 \u06a9\u06cc\u0648\u06ba \u0627\u0648\u0648\u0631 \u0631\u0627\u0626\u0688 \u06a9\u06cc\u0627 \u06af\u06cc\u0627 \u062a\u06be\u0627\u06d4 \u067e\u06c1\u0644\u06d2 \u0633\u06d2 \u0637\u06d2 \u0634\u062f\u06c1 <code>create()<\/code> \u06cc\u06c1 \u0637\u0631\u06cc\u0642\u06c1 \u0635\u0627\u0631\u0641\u06cc\u0646 \u06a9\u0648 \u0645\u062d\u0641\u0648\u0638 \u0637\u0631\u06cc\u0642\u06d2 \u0633\u06d2 \u0628\u0646\u0627\u0646\u06d2 \u06a9\u06d2 \u0644\u06cc\u06d2 \u0645\u0648\u0632\u0648\u06ba \u0646\u06c1\u06cc\u06ba \u06c1\u06d2\u06d4<\/p>\n<p>\u067e\u06c1\u0644\u06d2 \u0633\u06d2 \u0637\u06d2 \u0634\u062f\u06c1 \u0637\u0648\u0631 \u067e\u0631\u060c \u06cc\u06c1 \u0637\u0631\u06cc\u0642\u06c1 \u067e\u0627\u0633 \u0648\u0631\u0688\u0632 \u06a9\u0648 \u0633\u0627\u062f\u06c1 \u0679\u06cc\u06a9\u0633\u0679 \u0641\u0627\u0631\u0645\u06cc\u0679 \u0645\u06cc\u06ba \u0627\u0633\u0679\u0648\u0631 \u06a9\u0631\u062a\u0627 \u06c1\u06d2\u06d4 \u06cc\u06c1 \u0627\u06cc\u06a9 \u0633\u0646\u06af\u06cc\u0646 \u0645\u0633\u0626\u0644\u06c1 \u06c1\u06d2 \u06a9\u06cc\u0648\u0646\u06a9\u06c1 \u067e\u0627\u0633 \u0648\u0631\u0688\u0632 \u06a9\u0648 \u062e\u0627\u0645 \u0634\u06a9\u0644 \u0645\u06cc\u06ba \u0645\u062d\u0641\u0648\u0638 \u0646\u06c1\u06cc\u06ba \u06a9\u06cc\u0627 \u062c\u0627\u0646\u0627 \u0686\u0627\u06c1\u06cc\u06d2\u06d4 \u0627\u0646\u06c1\u06cc\u06ba \u0686\u0627\u06c1\u06cc\u06d2 <strong>\u06c1\u06cc\u0634<\/strong> \u0644\u06c1\u0630\u0627 \u06cc\u06c1\u0627\u06ba \u062a\u06a9 \u06a9\u06c1 \u0627\u06af\u0631 \u0622\u067e \u06a9\u06d2 \u0688\u06cc\u0679\u0627 \u0628\u06cc\u0633 \u0633\u06d2 \u0633\u0645\u062c\u06be\u0648\u062a\u06c1 \u06a9\u06cc\u0627 \u062c\u0627\u062a\u0627 \u06c1\u06d2\u060c \u062a\u0648 \u0622\u067e \u06a9\u0627 \u067e\u0627\u0633 \u0648\u0631\u0688 \u06a9\u0628\u06be\u06cc \u0628\u06be\u06cc \u0633\u0627\u0645\u0646\u06d2 \u0646\u06c1\u06cc\u06ba \u0622\u0626\u06d2 \u06af\u0627\u06d4<\/p>\n<p>\u062c\u06cc\u0646\u06af\u0648 \u0645\u0646\u062f\u0631\u062c\u06c1 \u0630\u06cc\u0644 \u062e\u0635\u0648\u0635\u06cc \u0637\u0631\u06cc\u0642\u06d2 \u0641\u0631\u0627\u06c1\u0645 \u06a9\u0631\u062a\u0627 \u06c1\u06d2: <code>create_user()<\/code> \u0627\u0633\u06d2 \u062e\u0648\u062f \u0628\u062e\u0648\u062f \u06c1\u06cc\u0646\u0688\u0644 \u06a9\u0631\u0646\u06d2 \u06a9\u0627 \u0637\u0631\u06cc\u0642\u06c1 \u06cc\u06c1\u0627\u06ba \u06c1\u06d2: <strong>\u067e\u0627\u0633 \u0648\u0631\u0688 \u06c1\u06cc\u0634\u0646\u06af<\/strong> \u062a\u0635\u062f\u06cc\u0642 \u06a9\u06d2 \u0644\u06cc\u06d2 \u0635\u0627\u0631\u0641\u06cc\u0646 \u06a9\u0648 \u0645\u0646\u0627\u0633\u0628 \u0637\u0631\u06cc\u0642\u06d2 \u0633\u06d2 \u062a\u0631\u062a\u06cc\u0628 \u062f\u06cc\u06ba\u06d4<\/p>\n<\/li>\n<\/ol>\n<p><img decoding=\"async\" src=\"https:\/\/umang.pk\/wp-content\/uploads\/2026\/05\/1778014350_675_\u062c\u06cc\u0646\u06af\u0648-\u0631\u06cc\u0633\u0679-\u0641\u0631\u06cc\u0645-\u0648\u0631\u06a9-\u0627\u0648\u0631-\u0633\u0627\u062f\u06c1-\u062c\u06d2-\u0688\u0628\u0644\u06cc\u0648-\u0679\u06cc-\u06a9\u0627.png\" alt=\"\u062a\u0635\u0648\u06cc\u0631 \u0627\u0648\u067e\u0631 \u062f\u06cc\u06d2 \u06af\u0626\u06d2 \u06a9\u0648\u0688 \u06a9\u06cc \u062a\u0634\u0631\u06cc\u062d\u06cc \u0648\u0636\u0627\u062d\u062a \u062f\u06a9\u06be\u0627\u062a\u06cc \u06c1\u06d2\u06d4\" style=\"display:block;margin:0 auto\" width=\"600\" height=\"400\" loading=\"lazy\" title=\"\"><\/p>\n<h3 id=\"heading-42-how-to-create-noteserializer\">4.2 \u0646\u0648\u0679 \u0633\u06cc\u0631\u06cc\u0644\u0627\u0626\u0632\u0631 \u06a9\u06cc\u0633\u06d2 \u0628\u0646\u0627\u06cc\u0627 \u062c\u0627\u0626\u06d2\u06d4<\/h3>\n<p>\u062c\u0628 \u0633\u06d2 <code>UserSerializer<\/code> \u0622\u0626\u06cc\u06d2 \u0627\u06cc\u06a9 \u06a9\u0644\u0627\u0633 \u0628\u0646\u0627\u0626\u06cc\u06ba\u06d4 <code>NoteSerializer<\/code> \u06a9\u0644\u0627\u0633 \u06a9\u06c1 <code>NoteSerializer<\/code> \u0646\u0648\u0679 \u0688\u06cc\u0679\u0627 \u067e\u0631 \u06a9\u0627\u0631\u0631\u0648\u0627\u0626\u06cc \u06a9\u0631\u06cc\u06ba\u06d4<\/p>\n<p>\u0633\u0628 \u0633\u06d2 \u067e\u06c1\u0644\u06d2\u060c \u06c1\u0645\u06cc\u06ba \u0627\u06cc\u06a9 \u062f\u0631\u0622\u0645\u062f \u0634\u0627\u0645\u0644 \u06a9\u0631\u0646\u06d2 \u06a9\u06cc \u0636\u0631\u0648\u0631\u062a \u06c1\u06d2. <code>Notes<\/code> \u06a9\u0644\u0627\u0633 \u0627\u06cc\u06a9 \u0644\u0627\u0626\u0646 \u0634\u0627\u0645\u0644 \u06a9\u0631\u06cc\u06ba <code>from .models import Notes<\/code> \u062c\u0628 \u0622\u062e\u0631\u06cc \u062f\u0631\u0622\u0645\u062f \u062e\u062a\u0645 \u06c1\u0648\u062a\u06cc \u06c1\u06d2\u06d4<\/p>\n<p>\u0628\u0631\u0627\u06c1 \u06a9\u0631\u0645 \u0627\u0633 \u06a9\u0648\u0688 \u06a9\u0648 \u0646\u06cc\u0686\u06d2 \u0631\u06a9\u06be\u06cc\u06ba <code>UserSerializer<\/code> \u06a9\u0644\u0627\u0633:<\/p>\n<pre><code class=\"language-python\">class NoteSerializer(serializers.ModelSerializer):\n    owner = serializers.ReadOnlyField(source=\"owner.username\")\n    class Meta:\n        model = Notes\n        fields = ['id', 'owner', 'title', 'body', 'created_at']\n<\/code><\/pre>\n<p>\u0627\u0628 \u0627\u0633 \u06a9\u0627 \u062a\u062c\u0632\u06cc\u06c1 \u06a9\u0631\u062a\u06d2 \u06c1\u06cc\u06ba\u06d4<\/p>\n<ol>\n<li>\n<p><code>owner = serializers.ReadOnlyField(source=\"owner.username\")<\/code>: \u06cc\u06c1 \u06a9\u0648\u0688 \u0645\u06cc\u06ba \u0633\u0628 \u0633\u06d2 \u0627\u06c1\u0645 \u0644\u0627\u0626\u0646 \u06c1\u06d2\u06d4 \u06cc\u06c1 \u06c1\u06d2 <code>owner<\/code> \u0645\u06cc\u062f\u0627\u0646 <strong>\u0635\u0631\u0641 \u067e\u0691\u06be\u06cc\u06ba<\/strong>. \u0627\u0633 \u06a9\u0627 \u0645\u0637\u0644\u0628 \u06c1\u06d2 \u06a9\u06c1 API \u062f\u06a9\u06be\u0627\u0626\u06d2 \u06af\u0627 \u06a9\u06c1 \u0646\u0648\u0679 \u06a9\u0627 \u0645\u0627\u0644\u06a9 \u06a9\u0648\u0646 \u06c1\u06d2 (\u0635\u0627\u0631\u0641 \u06a9\u0627 \u0646\u0627\u0645 \u062f\u06a9\u06be\u0627 \u0631\u06c1\u0627 \u06c1\u06d2)\u060c \u0644\u06cc\u06a9\u0646 API \u06a9\u06d2 \u0630\u0631\u06cc\u0639\u06d2 \u06a9\u0648\u0626\u06cc \u0628\u06be\u06cc \u0645\u0627\u0644\u06a9 \u06a9\u0648 \u0633\u06cc\u0679 \u06cc\u0627 \u062a\u0628\u062f\u06cc\u0644 \u0646\u06c1\u06cc\u06ba \u06a9\u0631 \u0633\u06a9\u062a\u0627\u06d4<\/p>\n<p>\u0627\u0633 \u062a\u062d\u0641\u0638 \u06a9\u06d2 \u0628\u063a\u06cc\u0631\u060c \u0628\u062f\u0646\u06cc\u062a\u06cc \u067e\u0631 \u0645\u0628\u0646\u06cc \u0635\u0627\u0631\u0641 \u062f\u0631\u062c \u0630\u06cc\u0644 \u06a9\u06cc \u0637\u0631\u062d POST \u06a9\u06cc \u062f\u0631\u062e\u0648\u0627\u0633\u062a \u0628\u06be\u06cc\u062c \u0633\u06a9\u062a\u0627 \u06c1\u06d2\u06d4 <code>\"owner\": 5<\/code> \u0622\u067e \u06a9\u0633\u06cc \u0627\u0648\u0631 \u06a9\u06d2 \u0646\u0648\u0679\u0633 \u06a9\u0648 \u0627\u0646 \u06a9\u06d2 \u0627\u06a9\u0627\u0624\u0646\u0679 \u0645\u06cc\u06ba \u062a\u0641\u0648\u06cc\u0636 \u06a9\u0631\u06a9\u06d2\u060c \u06cc\u0627 \u0627\u0633 \u0633\u06d2 \u0628\u06be\u06cc \u0628\u062f\u062a\u0631\u060c \u0645\u0644\u06a9\u06cc\u062a \u06a9\u0648 \u062f\u0648\u0628\u0627\u0631\u06c1 \u062a\u0641\u0648\u06cc\u0636 \u06a9\u0631\u06a9\u06d2 \u0627\u0646 \u0645\u06cc\u06ba \u062a\u0631\u0645\u06cc\u0645 \u06a9\u0631\u0633\u06a9\u062a\u06d2 \u06c1\u06cc\u06ba\u06d4<\/p>\n<p>\u06a9\u06c1 <code>source=\"owner.username\"<\/code> \u062d\u0635\u06c1 DRF \u06a9\u0648 \u0639\u062f\u062f\u06cc ID \u06a9\u06d2 \u0628\u062c\u0627\u0626\u06d2 \u0645\u0627\u0644\u06a9 \u06a9\u0627 \u0635\u0627\u0631\u0641 \u0646\u0627\u0645 \u0638\u0627\u06c1\u0631 \u06a9\u0631\u0646\u06d2 \u06a9\u06d2 \u0644\u06cc\u06d2 \u06a9\u06c1\u06c1 \u06a9\u0631 API \u06a9\u06d2 \u062c\u0648\u0627\u0628 \u06a9\u0648 \u0645\u0632\u06cc\u062f \u067e\u0691\u06be\u0646\u06d2 \u06a9\u06d2 \u0642\u0627\u0628\u0644 \u0628\u0646\u0627\u062a\u0627 \u06c1\u06d2\u06d4<\/p>\n<\/li>\n<li>\n<p><code>class Meta:<\/code>    &#8230;: \u067e\u06c1\u0644\u06d2 \u06a9\u06cc \u0637\u0631\u062d <code>Meta<\/code> \u06a9\u0644\u0627\u0633 \u0645\u06cc\u06ba \u0648\u06c1 \u0645\u0627\u0688\u0644 \u06c1\u0648\u062a\u0627 \u06c1\u06d2 \u062c\u0633\u06d2 \u0633\u06cc\u0631\u06cc\u0644\u0627\u0626\u0632\u0631 \u0627\u0633\u062a\u0639\u0645\u0627\u0644 \u06a9\u0631\u06d2 \u06af\u0627 \u0627\u0648\u0631 \u0648\u06c1 \u0641\u06cc\u0644\u0688\u0632 \u062c\u0646\u06c1\u06cc\u06ba API \u0628\u06d2 \u0646\u0642\u0627\u0628 \u06a9\u0631\u06d2 \u06af\u0627\u06d4<\/p>\n<p>\u06cc\u06c1\u0627\u06ba \u0645\u06a9\u0645\u0644 \u06a9\u0648\u0688 \u06c1\u06d2: <code>serializers.py<\/code> \u0641\u0627\u0626\u0644<\/p>\n<\/li>\n<\/ol>\n<pre><code class=\"language-python\">from rest_framework import serializers\nfrom django.contrib.auth import get_user_model\nfrom .models import Notes\n\nUser = get_user_model()\nclass UserSerializer(serializers.ModelSerializer):\n    password = serializers.CharField(write_only=True)\n    class Meta:\n        model = User\n        fields = ['id', 'username', 'email', 'password']\n\n    def create(self, validated_data):\n        user = User.objects.create_user(\n            username=validated_data['username'],\n            email=validated_data.get('email', ''),\n            password=validated_data['password']\n        )\n        return user\n\nclass NoteSerializer(serializers.ModelSerializer):\n    owner = serializers.ReadOnlyField(source=\"owner.username\")\n    class Meta:\n        model = Notes\n        fields = ['id', 'owner', 'title', 'body', 'created_at']\n<\/code><\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/umang.pk\/wp-content\/uploads\/2026\/05\/1778014352_994_\u062c\u06cc\u0646\u06af\u0648-\u0631\u06cc\u0633\u0679-\u0641\u0631\u06cc\u0645-\u0648\u0631\u06a9-\u0627\u0648\u0631-\u0633\u0627\u062f\u06c1-\u062c\u06d2-\u0688\u0628\u0644\u06cc\u0648-\u0679\u06cc-\u06a9\u0627.png\" alt=\"\u062a\u0635\u0648\u06cc\u0631 serializers.py \u0641\u0627\u0626\u0644 \u0645\u06cc\u06ba \u0645\u06a9\u0645\u0644 \u06a9\u0648\u0688 \u062f\u06a9\u06be\u0627\u062a\u06cc \u06c1\u06d2\u06d4\" style=\"display:block;margin:0 auto\" width=\"600\" height=\"400\" loading=\"lazy\" title=\"\"><\/p>\n<h2 id=\"heading-step-5-how-to-configure-simplejwt\">\u0645\u0631\u062d\u0644\u06c1 5: SimpleJWT \u06a9\u0648 \u06a9\u0646\u0641\u06cc\u06af\u0631 \u06a9\u0631\u0646\u06d2 \u06a9\u0627 \u0637\u0631\u06cc\u0642\u06c1<\/h2>\n<p>\u0627\u0628 \u0622\u0626\u06cc\u06d2 \u062a\u0635\u062f\u06cc\u0642 \u06a9\u0627 \u0646\u0638\u0627\u0645 \u062a\u0631\u062a\u06cc\u0628 \u062f\u06cc\u06ba\u06d4 \u06cc\u06c1\u0627\u06ba \u06c1\u0645 DRF \u0633\u06d2 \u06a9\u06c1\u062a\u06d2 \u06c1\u06cc\u06ba \u06a9\u06c1 \u0633\u06cc\u0634\u0646 \u06a9\u06cc \u0628\u062c\u0627\u0626\u06d2 \u062a\u0635\u062f\u06cc\u0642 \u06a9\u06d2 \u0644\u06cc\u06d2 JWT \u0627\u0633\u062a\u0639\u0645\u0627\u0644 \u06a9\u0631\u06d2\u06d4 \u06cc\u06c1 \u0642\u062f\u0645 \u0627\u06c1\u0645 \u06c1\u06d2 \u06a9\u06cc\u0648\u0646\u06a9\u06c1 \u0627\u0633 \u06a9\u06d2 \u0628\u063a\u06cc\u0631\u060c \u0688\u06cc \u0622\u0631 \u0627\u06cc\u0641 \u0633\u06cc\u0634\u0646 \u067e\u0631 \u0645\u0628\u0646\u06cc \u062a\u0635\u062f\u06cc\u0642 \u06a9\u06d2 \u0644\u06cc\u06d2 \u0688\u06cc\u0641\u0627\u0644\u0679 \u06c1\u0648 \u062c\u0627\u062a\u0627 \u06c1\u06d2\u06d4<\/p>\n<p>SimpleJWT DRF \u06a9\u06d2 \u0644\u06cc\u06d2 JWT \u06a9\u0627 \u0645\u06a9\u0645\u0644 \u0646\u0641\u0627\u0630 \u0641\u0631\u0627\u06c1\u0645 \u06a9\u0631\u062a\u0627 \u06c1\u06d2\u060c \u0644\u06c1\u0630\u0627 \u0622\u067e \u06a9\u0648 \u0634\u0631\u0648\u0639 \u0633\u06d2 \u0679\u0648\u06a9\u0646 \u062c\u0646\u0631\u06cc\u0634\u0646\u060c \u062f\u0633\u062a\u062e\u0637 \u06a9\u0631\u0646\u06d2 \u06cc\u0627 \u062a\u0635\u062f\u06cc\u0642 \u06a9\u0631\u0646\u06d2 \u06a9\u06cc \u0636\u0631\u0648\u0631\u062a \u0646\u06c1\u06cc\u06ba \u06c1\u06d2\u06d4<\/p>\n<p>\u0631\u0633\u0627\u0626\u06cc \u0679\u0648\u06a9\u0646 \u0648\u06c1\u06cc \u06c1\u06d2 \u062c\u0648 \u06a9\u0644\u0627\u0626\u0646\u0679 \u06c1\u0631 API \u062f\u0631\u062e\u0648\u0627\u0633\u062a \u06a9\u06d2 \u0633\u0627\u062a\u06be \u0628\u06be\u06cc\u062c\u062a\u0627 \u06c1\u06d2\u06d4 \u0688\u06cc\u0632\u0627\u0626\u0646 \u06a9\u06d2 \u0644\u062d\u0627\u0638 \u0633\u06d2\u060c \u0627\u0633 \u06a9\u06cc \u0639\u0645\u0631 \u0645\u062e\u062a\u0635\u0631 \u06c1\u06d2\u06d4 \u0627\u0633\u06d2 \u0627\u067e\u0646\u06d2 \u062f\u0641\u062a\u0631 \u06a9\u06cc \u0639\u0645\u0627\u0631\u062a \u0645\u06cc\u06ba \u0648\u0632\u06cc\u0679\u0631 \u0628\u06cc\u062c \u06a9\u06cc \u0637\u0631\u062d \u0633\u0648\u0686\u06cc\u06ba\u06d4 \u0622\u067e \u062f\u0631\u0648\u0627\u0632\u06d2 \u0633\u06d2 \u06af\u0632\u0631 \u0633\u06a9\u062a\u06d2 \u06c1\u06cc\u06ba\u060c \u0644\u06cc\u06a9\u0646 \u06cc\u06c1 \u062f\u0646 \u06a9\u06d2 \u0627\u062e\u062a\u062a\u0627\u0645 \u067e\u0631 \u062e\u062a\u0645 \u06c1\u0648 \u062c\u0627\u062a\u0627 \u06c1\u06d2\u06d4 \u0627\u06af\u0631 \u06a9\u0648\u0626\u06cc \u0627\u0633\u06d2 \u0686\u0648\u0631\u06cc \u06a9\u0631\u062a\u0627 \u06c1\u06d2 \u062a\u0648 \u0646\u0642\u0635\u0627\u0646 \u0645\u062d\u062f\u0648\u062f \u06c1\u06d2 \u06a9\u06cc\u0648\u0646\u06a9\u06c1 \u06cc\u06c1 \u0641\u0648\u0631\u0627\u064b \u06a9\u0627\u0645 \u06a9\u0631\u0646\u0627 \u0628\u0646\u062f \u06a9\u0631 \u062f\u06cc\u062a\u0627 \u06c1\u06d2\u06d4<\/p>\n<p>\u0631\u06cc\u0641\u0631\u06cc\u0634 \u0679\u0648\u06a9\u0646 \u062f\u06cc\u0631\u067e\u0627 \u06c1\u0648\u062a\u06d2 \u06c1\u06cc\u06ba \u0627\u0648\u0631 \u0627\u0646 \u06a9\u0627 \u0635\u0631\u0641 \u0627\u06cc\u06a9 \u0645\u0642\u0635\u062f \u06c1\u0648\u062a\u0627 \u06c1\u06d2: \u0648\u06c1 \u06cc\u06c1 \u06c1\u06d2 \u06a9\u06c1 \u062c\u0628 \u0645\u0648\u062c\u0648\u062f\u06c1 \u0631\u0633\u0627\u0626\u06cc \u0679\u0648\u06a9\u0646 \u06a9\u06cc \u0645\u06cc\u0639\u0627\u062f \u062e\u062a\u0645 \u06c1\u0648 \u062c\u0627\u062a\u06cc \u06c1\u06d2\u060c \u0627\u06cc\u06a9 \u0646\u06cc\u0627 \u0631\u0633\u0627\u0626\u06cc \u0679\u0648\u06a9\u0646 \u062d\u0627\u0635\u0644 \u06a9\u06cc\u0627 \u062c\u0627\u062a\u0627 \u06c1\u06d2\u06d4 \u06a9\u0644\u0627\u0626\u0646\u0679 \u0627\u0633\u06d2 \u0645\u062d\u0641\u0648\u0638 \u0637\u0631\u06cc\u0642\u06d2 \u0633\u06d2 \u0627\u0633\u0679\u0648\u0631 \u06a9\u0631\u062a\u0627 \u06c1\u06d2 \u0627\u0648\u0631 \u0627\u0633\u06d2 \u0635\u0631\u0641 \u0627\u06cc\u06a9 \u0645\u062e\u0635\u0648\u0635 \u0627\u06cc\u0646\u0688 \u067e\u0648\u0627\u0626\u0646\u0679 \u067e\u0631 \u0628\u06be\u06cc\u062c\u062a\u0627 \u06c1\u06d2\u06d4 \u0622\u067e \u0627\u0633\u06d2 \u0645\u0644\u0627\u0632\u0645 \u06a9\u06d2 \u0634\u0646\u0627\u062e\u062a\u06cc \u06a9\u0627\u0631\u0688 \u06a9\u06cc \u0637\u0631\u062d \u0633\u0648\u0686 \u0633\u06a9\u062a\u06d2 \u06c1\u06cc\u06ba\u06d4 \u06c1\u0645 \u0627\u0633\u06d2 \u06c1\u0631 \u0635\u0628\u062d \u0627\u06cc\u06a9 \u0646\u06cc\u0627 \u0648\u0632\u06cc\u0679\u0631 \u0628\u06cc\u062c \u062d\u0627\u0635\u0644 \u06a9\u0631\u0646\u06d2 \u06a9\u06d2 \u0644\u06cc\u06d2 \u0627\u0633\u062a\u0639\u0645\u0627\u0644 \u06a9\u0631\u062a\u06d2 \u06c1\u06cc\u06ba\u060c \u0644\u06cc\u06a9\u0646 \u06c1\u0645 \u0627\u0633\u06d2 \u06c1\u0631 \u062f\u0631\u0648\u0627\u0632\u06d2 \u067e\u0631 \u0646\u06c1\u06cc\u06ba \u0686\u0645\u06a9\u0627\u062a\u06d2 \u06c1\u06cc\u06ba\u06d4<\/p>\n<p>\u06cc\u06c1 \u0639\u0644\u06cc\u062d\u062f\u06af\u06cc \u0633\u06cc\u06a9\u0648\u0631\u0679\u06cc \u0648\u062c\u0648\u06c1\u0627\u062a \u06a9\u06cc \u0628\u0646\u0627\u0621 \u067e\u0631 \u0645\u0648\u062c\u0648\u062f \u06c1\u06d2\u06d4 \u0627\u06af\u0631 \u0627\u06cc\u06a9 \u0642\u0644\u06cc\u0644 \u0627\u0644\u0645\u062f\u062a \u0631\u0633\u0627\u0626\u06cc \u0679\u0648\u06a9\u0646 \u0633\u06d2 \u0633\u0645\u062c\u06be\u0648\u062a\u06c1 \u06a9\u06cc\u0627 \u062c\u0627\u062a\u0627 \u06c1\u06d2 (\u062c\u0633 \u06a9\u0627 \u0632\u06cc\u0627\u062f\u06c1 \u0627\u0645\u06a9\u0627\u0646 \u06c1\u06d2 \u06a9\u06cc\u0648\u0646\u06a9\u06c1 \u0627\u0633\u06d2 \u06c1\u0631 \u062f\u0631\u062e\u0648\u0627\u0633\u062a \u06a9\u06d2 \u0633\u0627\u062a\u06be \u0628\u06be\u06cc\u062c\u0627 \u062c\u0627\u062a\u0627 \u06c1\u06d2)\u060c \u062d\u0645\u0644\u06c1 \u0622\u0648\u0631 \u06a9\u06d2 \u067e\u0627\u0633 \u0627\u0633 \u06a9\u06cc \u0645\u06cc\u0639\u0627\u062f \u062e\u062a\u0645 \u06c1\u0648\u0646\u06d2 \u0633\u06d2 \u067e\u06c1\u0644\u06d2 \u0627\u06cc\u06a9 \u0645\u062e\u062a\u0635\u0631 \u0648\u0642\u062a \u06c1\u0648\u062a\u0627 \u06c1\u06d2\u06d4 \u0631\u06cc\u0641\u0631\u06cc\u0634 \u0679\u0648\u06a9\u0646 \u062c\u0648 \u06a9\u0645 \u06a9\u062b\u0631\u062a \u0633\u06d2 \u0628\u06be\u06cc\u062c\u06d2 \u062c\u0627\u062a\u06d2 \u06c1\u06cc\u06ba \u0627\u0646 \u0645\u06cc\u06ba \u0645\u062f\u0627\u062e\u0644\u062a \u06a9\u0627 \u062e\u0637\u0631\u06c1 \u06a9\u0645 \u06c1\u0648\u062a\u0627 \u06c1\u06d2\u06d4<\/p>\n<p>\u0622\u0626\u06cc\u06d2 \u062f\u06cc\u06a9\u06be\u062a\u06d2 \u06c1\u06cc\u06ba \u06a9\u06c1 \u0631\u0633\u0627\u0626\u06cc \u0679\u0648\u06a9\u0646 \u0627\u0648\u0631 \u0631\u06cc\u0641\u0631\u06cc\u0634 \u0679\u0648\u06a9\u0646 \u06a9\u06cc\u0633\u06d2 \u0627\u06cc\u06a9 \u0633\u0627\u062a\u06be \u06a9\u0627\u0645 \u06a9\u0631\u062a\u06d2 \u06c1\u06cc\u06ba\u06d4<\/p>\n<ol>\n<li>\n<p>\u062c\u0628 \u06a9\u0648\u0626\u06cc \u0635\u0627\u0631\u0641 \u0644\u0627\u06af \u0627\u0646 \u06c1\u0648\u062a\u0627 \u06c1\u06d2\u060c \u0633\u0631\u0648\u0631 \u0627\u06cc\u06a9 \u0631\u0633\u0627\u0626\u06cc \u0679\u0648\u06a9\u0646 \u0627\u0648\u0631 \u0631\u06cc\u0641\u0631\u06cc\u0634 \u0679\u0648\u06a9\u0646 \u062f\u0648\u0646\u0648\u06ba \u0641\u0631\u0627\u06c1\u0645 \u06a9\u0631\u062a\u0627 \u06c1\u06d2\u06d4<\/p>\n<\/li>\n<li>\n<p>\u0627\u06cc\u06a9 \u0635\u0627\u0631\u0641 \u0631\u0633\u0627\u0626\u06cc \u0679\u0648\u06a9\u0646 \u06a9\u0627 \u0627\u0633\u062a\u0639\u0645\u0627\u0644 \u06a9\u0631\u062a\u06d2 \u06c1\u0648\u0626\u06d2 \u062f\u0631\u062e\u0648\u0627\u0633\u062a \u06a9\u0631\u062a\u0627 \u06c1\u06d2\u06d4<\/p>\n<\/li>\n<li>\n<p>\u0679\u0648\u06a9\u0646 \u06a9\u06cc \u0645\u06cc\u0639\u0627\u062f \u062e\u062a\u0645 \u06c1\u0648\u0646\u06d2 \u062a\u06a9 \u0631\u0633\u0627\u0626\u06cc<\/p>\n<\/li>\n<li>\n<p>\u0627\u06cc\u067e \u0633\u0631\u0648\u0631 \u06a9\u0648 \u0631\u06cc\u0641\u0631\u06cc\u0634 \u0679\u0648\u06a9\u0646 \u0628\u06be\u06cc\u062c\u062a\u06cc \u06c1\u06d2\u06d4<\/p>\n<\/li>\n<li>\n<p>\u0633\u0631\u0648\u0631 \u0627\u0633 \u06a9\u06cc \u062a\u0635\u062f\u06cc\u0642 \u06a9\u0631\u062a\u0627 \u06c1\u06d2 \u0627\u0648\u0631 \u0627\u06cc\u06a9 \u0646\u06cc\u0627 \u0631\u0633\u0627\u0626\u06cc \u0679\u0648\u06a9\u0646 \u0641\u0631\u0627\u06c1\u0645 \u06a9\u0631\u062a\u0627 \u06c1\u06d2\u06d4<\/p>\n<\/li>\n<li>\n<p>\u0635\u0627\u0631\u0641 \u06a9\u06d2 \u062f\u0648\u0628\u0627\u0631\u06c1 \u0644\u0627\u06af \u0627\u0646 \u06a9\u06cc\u06d2 \u0628\u063a\u06cc\u0631 \u062c\u0627\u0631\u06cc \u0631\u06a9\u06be\u06cc\u06ba\u06d4<\/p>\n<\/li>\n<\/ol>\n<p><img decoding=\"async\" src=\"https:\/\/umang.pk\/wp-content\/uploads\/2026\/05\/1778014354_8_\u062c\u06cc\u0646\u06af\u0648-\u0631\u06cc\u0633\u0679-\u0641\u0631\u06cc\u0645-\u0648\u0631\u06a9-\u0627\u0648\u0631-\u0633\u0627\u062f\u06c1-\u062c\u06d2-\u0688\u0628\u0644\u06cc\u0648-\u0679\u06cc-\u06a9\u0627.png\" alt=\"\u062a\u0635\u0648\u06cc\u0631 \u0631\u0633\u0627\u0626\u06cc \u0627\u0648\u0631 \u0631\u06cc\u0641\u0631\u06cc\u0634 \u0679\u0648\u06a9\u0646 \u06a9\u06d2 \u0627\u0633\u062a\u0639\u0645\u0627\u0644 \u06a9\u0648 \u0638\u0627\u06c1\u0631 \u06a9\u0631\u062a\u06cc \u06c1\u06d2\u06d4\" style=\"display:block;margin:0 auto\" width=\"600\" height=\"400\" loading=\"lazy\" title=\"\"><\/p>\n<h3 id=\"heading-51-how-to-update-rest-framework-settings\">5.1 REST \u0641\u0631\u06cc\u0645 \u0648\u0631\u06a9 \u06a9\u06cc \u062a\u0631\u062a\u06cc\u0628\u0627\u062a \u06a9\u0648 \u06a9\u06cc\u0633\u06d2 \u0627\u067e \u0688\u06cc\u0679 \u06a9\u0631\u06cc\u06ba\u06d4<\/h3>\n<p>\u06a9\u06be\u0644\u0627 <code>notes_core\/settings.py<\/code> \u0627\u0648\u0631 \u062f\u0631\u062c \u0630\u06cc\u0644 \u06a9\u0648\u0688 \u0634\u0627\u0645\u0644 \u06a9\u0631\u06cc\u06ba:<\/p>\n<pre><code class=\"language-python\">from datetime import timedelta\nREST_FRAMEWORK = {\n    'DEFAULT_AUTHENTICATION_CLASSES': (\n        'rest_framework_simplejwt.authentication.JWTAuthentication',\n    ),\n\n    'DEFAULT_PERMISSION_CLASSES': (\n        'rest_framework.permissions.IsAuthenticated',\n    ),\n}\n\nSIMPLE_JWT = {\n    'ACCESS_TOKEN_LIFETIME': timedelta(minutes=30),\n    'REFRESH_TOKEN_LIFETIME': timedelta(days=1),\n}\n<\/code><\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/umang.pk\/wp-content\/uploads\/2026\/05\/1778014356_401_\u062c\u06cc\u0646\u06af\u0648-\u0631\u06cc\u0633\u0679-\u0641\u0631\u06cc\u0645-\u0648\u0631\u06a9-\u0627\u0648\u0631-\u0633\u0627\u062f\u06c1-\u062c\u06d2-\u0688\u0628\u0644\u06cc\u0648-\u0679\u06cc-\u06a9\u0627.png\" alt=\"\u062a\u0635\u0648\u06cc\u0631 settings.py \u0641\u0627\u0626\u0644 \u0645\u06cc\u06ba \u0634\u0627\u0645\u0644 \u06a9\u0648\u0688 \u06a9\u0648 \u062f\u06a9\u06be\u0627\u062a\u06cc \u06c1\u06d2\u06d4\" style=\"display:block;margin:0 auto\" width=\"600\" height=\"400\" loading=\"lazy\" title=\"\"><\/p>\n<p>\u0622\u0626\u06cc\u06d2 \u0627\u06cc\u06a9 \u0646\u0638\u0631 \u0688\u0627\u0644\u062a\u06d2 \u06c1\u06cc\u06ba \u06a9\u06c1 \u06c1\u0631 \u0633\u06cc\u06a9\u0634\u0646 \u06a9\u06cc\u0627 \u06a9\u0631\u062a\u0627 \u06c1\u06d2\u06d4<\/p>\n<p>\u06a9\u06c1 <code>DEFAULT_AUTHENTICATION_CLASSES<\/code> \u062a\u0631\u062a\u06cc\u0628 DRF \u06a9\u0648 \u06c1\u062f\u0627\u06cc\u062a \u06a9\u0631\u062a\u06cc \u06c1\u06d2 \u06a9\u06c1 JWT \u06a9\u0648 \u062a\u0645\u0627\u0645 API \u0627\u06cc\u0646\u0688 \u067e\u0648\u0627\u0626\u0646\u0679\u0633 \u06a9\u06d2 \u0644\u06cc\u06d2 \u062a\u0635\u062f\u06cc\u0642\u06cc \u0637\u0631\u06cc\u0642\u06c1 \u06a9\u06d2 \u0637\u0648\u0631 \u067e\u0631 \u0627\u0633\u062a\u0639\u0645\u0627\u0644 \u06a9\u0631\u06d2\u06d4 \u062a\u0645\u0627\u0645 \u0622\u0646\u06d2 \u0648\u0627\u0644\u06cc \u062f\u0631\u062e\u0648\u0627\u0633\u062a\u0648\u06ba \u06a9\u0648 \u0627\u062c\u0627\u0632\u062a \u06a9\u06d2 \u06c1\u06cc\u0688\u0631 \u0645\u06cc\u06ba \u0627\u06cc\u06a9 \u062f\u0631\u0633\u062a JWT \u0679\u0648\u06a9\u0646 \u06a9\u06d2 \u0644\u06cc\u06d2 \u0686\u06cc\u06a9 \u06a9\u06cc\u0627 \u062c\u0627\u062a\u0627 \u06c1\u06d2\u06d4<\/p>\n<p>\u06a9\u06c1 <code>DEFAULT_PERMISSION_CLASSES<\/code> \u0633\u06cc\u0679 \u0633\u06cc\u0679 <code>IsAuthenticated<\/code> \u0639\u0627\u0644\u0645\u06cc \u0627\u062c\u0627\u0632\u062a\u0648\u06ba \u06a9\u06cc \u067e\u0627\u0644\u06cc\u0633\u06cc \u06a9\u06d2 \u0633\u0627\u062a\u06be\u06d4 \u0627\u0633 \u06a9\u0627 \u0645\u0637\u0644\u0628 \u06cc\u06c1 \u06c1\u06d2 \u06a9\u06c1 API \u0645\u06cc\u06ba \u062a\u0645\u0627\u0645 \u0627\u06cc\u0646\u0688 \u067e\u0648\u0627\u0626\u0646\u0679\u0633 \u0628\u0637\u0648\u0631 \u0688\u06cc\u0641\u0627\u0644\u0679 \u0628\u0646\u062f \u06c1\u06cc\u06ba\u06d4 \u0635\u0631\u0641 \u062f\u0631\u0633\u062a \u0679\u0648\u06a9\u0646 \u0648\u0627\u0644\u06d2 \u0635\u0627\u0631\u0641\u06cc\u0646 \u06c1\u06cc \u062a\u0645\u0627\u0645 \u0627\u062e\u062a\u062a\u0627\u0645\u06cc \u0645\u0642\u0627\u0645\u0627\u062a \u062a\u06a9 \u0631\u0633\u0627\u0626\u06cc \u062d\u0627\u0635\u0644 \u06a9\u0631 \u0633\u06a9\u062a\u06d2 \u06c1\u06cc\u06ba\u06d4<\/p>\n<p>\u06cc\u06c1 \u0628\u0646\u06cc\u0627\u062f\u06cc \u0637\u0648\u0631 \u067e\u0631 \u0645\u062d\u0641\u0648\u0638 \u0637\u0631\u06cc\u0642\u06c1 \u06c1\u06d2\u06d4 \u06c1\u0631 \u0646\u0642\u0637\u06c1 \u0646\u0638\u0631 \u06a9\u0648 \u0627\u0646\u0641\u0631\u0627\u062f\u06cc \u0637\u0648\u0631 \u067e\u0631 \u0645\u062d\u0641\u0648\u0638 \u06a9\u0631\u0646\u06d2 \u06a9\u06d2 \u0644\u06cc\u06d2 \u06cc\u0627\u062f \u0631\u06a9\u06be\u0646\u06d2 \u06a9\u06d2 \u0628\u062c\u0627\u0626\u06d2\u060c \u06c1\u0631 \u0686\u06cc\u0632 \u0645\u062d\u0641\u0648\u0638 \u06c1\u06d2 \u0627\u0648\u0631 \u0622\u067e \u0648\u0627\u0636\u062d \u0637\u0648\u0631 \u067e\u0631 \u0627\u0646 \u0646\u06a9\u0627\u062a \u06a9\u0648 \u06a9\u06be\u0648\u0644\u062a\u06d2 \u06c1\u06cc\u06ba \u062c\u0646 \u06a9\u0648 \u0633\u0627\u0645\u0646\u06d2 \u0644\u0627\u0646\u06d2 \u06a9\u06cc \u0636\u0631\u0648\u0631\u062a \u06c1\u06d2\u06d4 <em>(\u0645\u062b\u0644\u0627\u064b \u0631\u062c\u0633\u0679\u0631\u06cc\u0634\u0646 \u06a9\u0627 \u0627\u062e\u062a\u062a\u0627\u0645\u06cc \u0646\u0642\u0637\u06c1 \u0627\u06af\u0644\u06d2 \u0645\u0631\u062d\u0644\u06d2 \u0645\u06cc\u06ba \u0633\u0646\u0628\u06be\u0627\u0644\u0627 \u062c\u0627\u0626\u06d2 \u06af\u0627)<\/em><\/p>\n<p>\u06a9\u06c1 <code>SIMPLE_JWT<\/code> \u0644\u063a\u062a\u06cc\u06ba \u0679\u0648\u06a9\u0646 \u0631\u0648\u06cc\u06d2 \u06a9\u0648 \u06a9\u0646\u0679\u0631\u0648\u0644 \u06a9\u0631\u062a\u06cc \u06c1\u06cc\u06ba\u06d4 \u0631\u0633\u0627\u0626\u06cc \u06a9\u06d2 \u0679\u0648\u06a9\u0646 30 \u0645\u0646\u0679 \u062a\u06a9 \u0631\u06c1\u062a\u06d2 \u06c1\u06cc\u06ba\u06d4 \u06cc\u06c1 \u0627\u06cc\u06a9 \u0679\u0648\u06a9\u0646 \u06c1\u06d2 \u062c\u0633\u06d2 \u06a9\u0644\u0627\u0626\u0646\u0679 \u06c1\u0631 \u062f\u0631\u062e\u0648\u0627\u0633\u062a \u06a9\u06d2 \u0633\u0627\u062a\u06be \u0634\u0627\u0645\u0644 \u06a9\u0631\u062a\u0627 \u06c1\u06d2\u06d4 \u0627\u06af\u0631 \u06a9\u0648\u0626\u06cc \u0627\u0633\u06d2 \u0631\u0648\u06a9\u062a\u0627 \u06c1\u06d2\u060c \u062a\u0648 \u0646\u0642\u0635\u0627\u0646 30 \u0645\u0646\u0679 \u062a\u06a9 \u0645\u062d\u062f\u0648\u062f \u06c1\u06d2\u06d4 \u0631\u06cc\u0641\u0631\u06cc\u0634 \u0679\u0648\u06a9\u0646 \u0627\u06cc\u06a9 \u062f\u0646 \u062a\u06a9 \u0631\u06c1\u062a\u06d2 \u06c1\u06cc\u06ba\u06d4<\/p>\n<p>\u0627\u06cc\u06a9\u0633\u06cc\u0633 \u0679\u0648\u06a9\u0646 \u06a9\u06cc \u0645\u06cc\u0639\u0627\u062f \u062e\u062a\u0645 \u06c1\u0648\u0646\u06d2 \u067e\u0631\u060c \u0635\u0627\u0631\u0641 \u06a9\u0648 \u062f\u0648\u0628\u0627\u0631\u06c1 \u0644\u0627\u06af \u0627\u0646 \u06a9\u06cc\u06d2 \u0628\u063a\u06cc\u0631 \u0646\u06cc\u0627 \u0631\u0633\u0627\u0626\u06cc \u0679\u0648\u06a9\u0646 \u062d\u0627\u0635\u0644 \u06a9\u0631\u0646\u06d2 \u06a9\u06d2 \u0644\u06cc\u06d2 \u06a9\u0644\u0627\u0626\u0646\u0679 \u0631\u06cc\u0641\u0631\u06cc\u0634 \u0679\u0648\u06a9\u0646 \u0627\u0633\u062a\u0639\u0645\u0627\u0644 \u06a9\u0631 \u0633\u06a9\u062a\u0627 \u06c1\u06d2\u06d4 \u0631\u06cc\u0641\u0631\u06cc\u0634 \u0679\u0648\u06a9\u0646 \u06a9\u06cc \u0645\u062f\u062a 1 \u062f\u0646 \u06c1\u06d2\u06d4 \u0627\u0633 \u06a9\u0627 \u0645\u0637\u0644\u0628 \u06c1\u06d2 \u06a9\u06c1 1 \u062f\u0646 \u06a9\u06d2 \u0628\u0639\u062f\u060c \u0635\u0627\u0631\u0641 \u06a9\u0648 \u0627\u067e\u0646\u0627 \u0635\u0627\u0631\u0641 \u0646\u0627\u0645 \u0627\u0648\u0631 \u067e\u0627\u0633 \u0648\u0631\u0688 \u0627\u0633\u062a\u0639\u0645\u0627\u0644 \u06a9\u0631\u06a9\u06d2 \u062f\u0648\u0628\u0627\u0631\u06c1 \u0644\u0627\u06af \u0627\u0646 \u06a9\u0631\u0646\u0627 \u06c1\u0648\u06af\u0627\u06d4 \u062c\u0628 \u0622\u067e \u067e\u0648\u0633\u0679 \u0645\u06cc\u0646 \u06a9\u06d2 \u0633\u0627\u062a\u06be \u0628\u0639\u062f \u0645\u06cc\u06ba \u0627\u0633 \u06a9\u06cc \u062c\u0627\u0646\u0686 \u06a9\u0631\u06cc\u06ba \u06af\u06d2 \u062a\u0648 \u0622\u067e \u0628\u0627\u0644\u06a9\u0644 \u062f\u06cc\u06a9\u06be\u06cc\u06ba \u06af\u06d2 \u06a9\u06c1 \u06cc\u06c1 \u06a9\u06cc\u0633\u06d2 \u06a9\u0627\u0645 \u06a9\u0631\u062a\u0627 \u06c1\u06d2\u06d4<\/p>\n<h3 id=\"heading-52-how-to-add-token-url-endpoints\">5.2 \u0679\u0648\u06a9\u0646 \u06cc\u0648 \u0622\u0631 \u0627\u06cc\u0644 \u0627\u06cc\u0646\u0688 \u067e\u0648\u0627\u0626\u0646\u0679 \u06a9\u06cc\u0633\u06d2 \u0634\u0627\u0645\u0644 \u06a9\u0631\u06cc\u06ba\u06d4<\/h3>\n<p>SimpleJWT \u0679\u0648\u06a9\u0646\u0632 \u06a9\u0648 \u062d\u0627\u0635\u0644 \u06a9\u0631\u0646\u06d2 \u0627\u0648\u0631 \u062a\u0627\u0632\u06c1 \u06a9\u0631\u0646\u06d2 \u06a9\u06d2 \u0644\u06cc\u06d2 \u067e\u06c1\u0644\u06d2 \u0633\u06d2 \u062a\u06cc\u0627\u0631 \u06a9\u0631\u062f\u06c1 \u0646\u0638\u0627\u0631\u06d2 \u0641\u0631\u0627\u06c1\u0645 \u06a9\u0631\u062a\u0627 \u06c1\u06d2\u06d4 \u0628\u0633 \u06cc\u0648 \u0622\u0631 \u0627\u06cc\u0644 \u0633\u06d2 \u0644\u0646\u06a9 \u06a9\u0631\u06cc\u06ba\u06d4<\/p>\n<p>\u06a9\u06be\u0644\u0627 <code>notes_core\/urls.py<\/code> \u062f\u0631\u062c \u0630\u06cc\u0644 \u06a9\u0648\u0688 \u06a9\u06d2 \u0633\u0627\u062a\u06be \u0627\u067e \u0688\u06cc\u0679 \u06a9\u0631\u06cc\u06ba:<\/p>\n<pre><code class=\"language-python\">from django.contrib import admin\nfrom django.urls import path, include\nfrom rest_framework_simplejwt.views import (\n    TokenObtainPairView,\n    TokenRefreshView,\n)\n\nurlpatterns = [\n    path('admin\/', admin.site.urls),\n    path('api\/', include('notes.urls')),\n    path('api\/token\/', TokenObtainPairView.as_view(), name=\"token_obtain_pair\"),\n    path('api\/token\/refresh\/', TokenRefreshView.as_view(), name=\"token_refresh\"),\n]\n<\/code><\/pre>\n<p>\u06a9\u06c1 <code>token\/<\/code> \u0627\u062e\u062a\u062a\u0627\u0645\u06cc \u0646\u0642\u0637\u06c1 \u0635\u0627\u0631\u0641 \u0646\u0627\u0645 \u0627\u0648\u0631 \u067e\u0627\u0633 \u0648\u0631\u0688 \u06a9\u0648 \u0642\u0628\u0648\u0644 \u06a9\u0631\u062a\u0627 \u06c1\u06d2 \u0627\u0648\u0631 \u0627\u06cc\u06a9 \u0631\u0633\u0627\u0626\u06cc \u0679\u0648\u06a9\u0646 \u0627\u0648\u0631 \u0631\u06cc\u0641\u0631\u06cc\u0634 \u0679\u0648\u06a9\u0646 \u0648\u0627\u067e\u0633 \u06a9\u0631\u062a\u0627 \u06c1\u06d2\u06d4<\/p>\n<p>\u06a9\u06c1 <code>token\/refresh\/<\/code> \u0627\u06cc\u0646\u0688 \u067e\u0648\u0627\u0626\u0646\u0679 \u0631\u06cc\u0641\u0631\u06cc\u0634 \u0679\u0648\u06a9\u0646 \u06a9\u0648 \u0642\u0628\u0648\u0644 \u06a9\u0631\u062a\u0627 \u06c1\u06d2 \u0627\u0648\u0631 \u0627\u06cc\u06a9 \u0646\u06cc\u0627 \u0631\u0633\u0627\u0626\u06cc \u0679\u0648\u06a9\u0646 \u0644\u0648\u0679\u0627\u062a\u0627 \u06c1\u06d2\u06d4 \u0622\u067e \u062c\u0627\u0646\u0686 \u06a9\u06d2 \u062f\u0648\u0631\u0627\u0646 \u0627\u0646 \u062e\u0635\u0648\u0635\u06cc\u0627\u062a \u06a9\u0648 \u0639\u0645\u0644\u06cc \u0634\u06a9\u0644 \u0645\u06cc\u06ba \u062f\u06cc\u06a9\u06be \u0633\u06a9\u062a\u06d2 \u06c1\u06cc\u06ba\u06d4<\/p>\n<h2 id=\"heading-step-6-how-to-build-the-authentication-logic\">\u0645\u0631\u062d\u0644\u06c1 6: \u062a\u0648\u062b\u06cc\u0642 \u06a9\u06cc \u0645\u0646\u0637\u0642 \u06a9\u06cc\u0633\u06d2 \u0628\u0646\u0627\u0626\u06cc\u06ba<\/h2>\n<p>\u06a9\u06be\u0644\u0627 <code>notes\/views.py<\/code> \u0627\u0648\u0631 \u0634\u0627\u0645\u0644 \u06a9\u0631\u06cc\u06ba:<\/p>\n<pre><code class=\"language-python\">from rest_framework import generics, permissions\nfrom django.contrib.auth import get_user_model\nfrom .serializers import UserSerializer\n\nUser = get_user_model()\n\nclass RegisterView(generics.CreateAPIView):\n    queryset = User.objects.all()\n    serializer_class = UserSerializer\n    permission_classes = [permissions.AllowAny]\n<\/code><\/pre>\n<p>\u0627\u0628 \u0627\u0633 \u06a9\u0648\u0688 \u06a9\u0648 \u062f\u06cc\u06a9\u06be\u062a\u06d2 \u06c1\u06cc\u06ba\u06d4<\/p>\n<p>\u067e\u06c1\u0644\u0627 \u062d\u0635\u06c1 \u062f\u0631\u0622\u0645\u062f \u0627\u0648\u0631 \u0627\u0633 \u06a9\u06d2 \u0628\u0639\u062f <code>get_user_model()<\/code> \u06a9\u06cc\u0633\u06d2 \u062d\u0627\u0635\u0644 \u06a9\u0631\u0646\u0627 \u06c1\u06d2\u06d4 <code>CustomUser<\/code> \u0645\u0627\u0688\u0644<\/p>\n<p>\u0627\u0628 \u0627\u06c1\u0645 \u062d\u0635\u06c1 \u06c1\u06d2 <code>RegisterView<\/code> \u06a9\u0644\u0627\u0633 \u06a9\u0644\u0627\u0633 \u0627\u0633 \u0633\u06d2 \u0648\u0631\u0627\u062b\u062a \u0645\u06cc\u06ba \u0645\u0644\u062a\u06cc \u06c1\u06d2: <code>generics.CreateAPIView<\/code> \u06cc\u06c1 \u0627\u06cc\u06a9 \u0628\u0644\u0679 \u0627\u0646 DRF \u0648\u06cc\u0648 \u06c1\u06d2 \u062c\u0648 \u062e\u0627\u0635 \u0637\u0648\u0631 \u067e\u0631 POST \u062f\u0631\u062e\u0648\u0627\u0633\u062a\u0648\u06ba \u06a9\u0648 \u06c1\u06cc\u0646\u0688\u0644 \u06a9\u0631\u0646\u06d2 \u06a9\u06d2 \u0644\u06cc\u06d2 \u0688\u06cc\u0632\u0627\u0626\u0646 \u06a9\u06cc\u0627 \u06af\u06cc\u0627 \u06c1\u06d2 \u062c\u0648 \u0646\u0626\u06cc \u0627\u0634\u06cc\u0627\u0621 \u062a\u062e\u0644\u06cc\u0642 \u06a9\u0631\u062a\u06cc \u06c1\u06cc\u06ba\u06d4<\/p>\n<p>\u0644\u06c1\u0630\u0627 \u0622\u067e \u06a9\u0648 POST \u06a9\u06cc \u062f\u0631\u062e\u0648\u0627\u0633\u062a\u0648\u06ba \u067e\u0631 \u06a9\u0627\u0631\u0631\u0648\u0627\u0626\u06cc \u06a9\u0631\u0646\u06d2\u060c \u0688\u06cc\u0679\u0627 \u06a9\u06cc \u062a\u0648\u062b\u06cc\u0642 \u06a9\u0631\u0646\u06d2\u060c \u06cc\u0627 \u0688\u06cc\u0679\u0627 \u0628\u06cc\u0633 \u0645\u06cc\u06ba \u0645\u062d\u0641\u0648\u0638 \u06a9\u0631\u0646\u06d2 \u06a9\u06d2 \u0644\u06cc\u06d2 \u062f\u0633\u062a\u06cc \u0637\u0648\u0631 \u067e\u0631 \u0645\u0646\u0637\u0642 \u0644\u06a9\u06be\u0646\u06d2 \u06a9\u06cc \u0636\u0631\u0648\u0631\u062a \u0646\u06c1\u06cc\u06ba \u06c1\u06d2\u06d4 DRF \u067e\u0631\u062f\u06d2 \u06a9\u06d2 \u067e\u06cc\u0686\u06be\u06d2 \u0633\u0628 \u06a9\u0686\u06be \u06a9\u0631\u062a\u0627 \u06c1\u06d2\u06d4<\/p>\n<p>\u06a9\u0644\u0627\u0633 \u06a9\u06d2 \u0627\u0646\u062f\u0631\u060c <code>queryset = Users.objects.all()<\/code> \u0635\u0627\u0631\u0641 \u0627\u0634\u06cc\u0627\u0621 \u06a9\u06d2 \u0633\u06cc\u0679 \u06a9\u06cc \u0648\u0636\u0627\u062d\u062a \u06a9\u0631\u062a\u0627 \u06c1\u06d2 \u062c\u0633 \u06a9\u06d2 \u0633\u0627\u062a\u06be \u06cc\u06c1 \u0645\u0646\u0638\u0631 \u06a9\u0627\u0645 \u06a9\u0631 \u0633\u06a9\u062a\u0627 \u06c1\u06d2\u06d4<\/p>\n<p>\u06a9\u06c1 <code>serializer_class = UserSerializer<\/code> \u0645\u0646\u0638\u0631 \u06a9\u0648 \u0628\u062a\u0627\u062a\u0627 \u06c1\u06d2 \u06a9\u06c1 \u0622\u0646\u06d2 \u0648\u0627\u0644\u06d2 \u0688\u06cc\u0679\u0627 \u06a9\u06cc \u062a\u0648\u062b\u06cc\u0642 \u06a9\u0631\u0646\u06d2 \u0627\u0648\u0631 \u0635\u0627\u0631\u0641\u06cc\u0646 \u0628\u0646\u0627\u0646\u06d2 \u06a9\u06d2 \u0644\u06cc\u06d2 \u06a9\u0648\u0646 \u0633\u0627 \u0633\u06cc\u0631\u06cc\u0644\u0627\u0626\u0632\u0631 \u0627\u0633\u062a\u0639\u0645\u0627\u0644 \u06a9\u0631\u0646\u0627 \u06c1\u06d2\u06d4<\/p>\n<p>\u0622\u062e\u0631 \u0645\u06cc\u06ba <code>permission_classes = [permissions.AllowAny]<\/code> \u0639\u0627\u0644\u0645\u06cc \u0633\u0637\u062d \u067e\u0631 \u0627\u0648\u0648\u0631 \u0631\u0627\u0626\u06cc\u0688 \u06a9\u0631\u06cc\u06ba\u06d4 <code>IsAuthenticated<\/code> \u0627\u062c\u0627\u0632\u062a\u06cc\u06ba \u067e\u06c1\u0644\u06d2 \u0627\u0642\u062f\u0627\u0631 \u067e\u0631 \u0633\u06cc\u0679 \u06a9\u06cc \u06af\u0626\u06cc \u062a\u06be\u06cc\u06ba\u06d4 <code>DEFAULT_PERMISSION_CLASSES<\/code> .<\/p>\n<p>\u0627\u0633 \u06a9\u0627 \u0645\u0637\u0644\u0628 \u06c1\u06d2 \u06a9\u06c1 \u06a9\u0648\u0626\u06cc \u0628\u06be\u06cc \u0631\u062c\u0633\u0679\u0631\u06cc\u0634\u0646 \u0627\u06cc\u0646\u0688 \u067e\u0648\u0627\u0626\u0646\u0679 \u062a\u06a9 \u0631\u0633\u0627\u0626\u06cc \u062d\u0627\u0635\u0644 \u06a9\u0631 \u0633\u06a9\u062a\u0627 \u06c1\u06d2\u060c \u0686\u0627\u06c1\u06d2 \u0648\u06c1 \u0644\u0627\u06af \u0627\u0646 \u0646\u06c1 \u06c1\u0648\u06ba\u06d4<\/p>\n<p>API \u0645\u06cc\u06ba \u0645\u0648\u062c\u0648\u062f \u062f\u06cc\u06af\u0631 \u062a\u0645\u0627\u0645 \u0622\u0631\u0627\u0621 \u06a9\u0648 \u0639\u0627\u0644\u0645\u06cc IsAuthenticated \u0627\u062c\u0627\u0632\u062a \u0648\u0631\u0627\u062b\u062a \u0645\u06cc\u06ba \u0645\u0644\u062a\u06cc \u06c1\u06d2\u060c \u0627\u0633 \u0644\u06cc\u06d2 \u0635\u0631\u0641 \u06cc\u06c1 \u0631\u062c\u0633\u0679\u0631\u06cc\u0634\u0646 \u0627\u06cc\u0646\u0688 \u067e\u0648\u0627\u0626\u0646\u0679 \u06a9\u06be\u0648\u0644\u0627 \u062c\u0627\u062a\u0627 \u06c1\u06d2\u06d4<\/p>\n<h2 id=\"heading-step-7-how-to-implement-scoped-views\">\u0645\u0631\u062d\u0644\u06c1 7: \u0627\u0633\u06a9\u0648\u067e\u0688 \u0648\u06cc\u0648 \u06a9\u0648 \u06a9\u06cc\u0633\u06d2 \u0646\u0627\u0641\u0630 \u06a9\u0631\u06cc\u06ba\u06d4<\/h2>\n<p>\u06cc\u06c1 \u0633\u0628\u0642 \u06a9\u0627 \u062e\u0644\u0627\u0635\u06c1 \u06c1\u06d2\u06d4 \u0645\u06cc\u06ba \u0646\u06d2 \u062a\u0635\u062f\u06cc\u0642 \u062a\u0631\u062a\u06cc\u0628 \u062f\u06cc \u06c1\u06d2 \u062a\u0627\u06a9\u06c1 API \u06a9\u0648 \u0645\u0639\u0644\u0648\u0645 \u06c1\u0648\u06d4 <strong>\u0688\u0628\u0644\u06cc\u0648 \u0627\u06cc\u0686 \u0627\u0648<\/strong> \u0622\u067e \u0627\u06cc\u06a9 \u062f\u0631\u062e\u0648\u0627\u0633\u062a \u06a9\u0631 \u0631\u06c1\u06d2 \u06c1\u06cc\u06ba\u06d4 \u0627\u0628 \u06c1\u0645\u06cc\u06ba \u06cc\u06c1 \u06cc\u0642\u06cc\u0646\u06cc \u0628\u0646\u0627\u0646\u0627 \u06c1\u0648\u06af\u0627 \u06a9\u06c1 \u06c1\u0631 \u0635\u0627\u0631\u0641 \u0635\u0631\u0641 \u0627\u0633 \u06a9\u06d2 \u0633\u0627\u062a\u06be \u062a\u0639\u0627\u0645\u0644 \u06a9\u0631\u0633\u06a9\u062a\u0627 \u06c1\u06d2: <strong>\u0627\u0646 \u06a9\u0627<\/strong> <strong>\u0627\u067e\u0646\u06d2<\/strong> \u0645\u06cc\u0645\u0648<\/p>\n<p>\u0627\u0633 \u0637\u0631\u062d \u0633\u0648\u0686\u0648\u06d4 \u0633\u0631\u0679\u06cc\u0641\u06cc\u06a9\u06cc\u0634\u0646 \u0627\u067e\u0627\u0631\u0679\u0645\u0646\u0679 \u06a9\u06cc \u0639\u0645\u0627\u0631\u062a \u06a9\u06d2 \u0633\u0627\u0645\u0646\u06d2 \u0648\u0627\u0644\u06d2 \u062f\u0631\u0648\u0627\u0632\u06d2 \u067e\u0631 \u0644\u06af\u0627 \u06c1\u0648\u0627 \u062a\u0627\u0644\u0627 \u06c1\u06d2\u06d4 \u06cc\u06c1 \u0627\u062c\u0646\u0628\u06cc\u0648\u06ba \u06a9\u0648 \u062f\u0627\u062e\u0644 \u06c1\u0648\u0646\u06d2 \u0633\u06d2 \u0631\u0648\u06a9\u062a\u0627 \u06c1\u06d2\u06d4 \u062a\u0627\u06c1\u0645\u060c \u0627\u0633\u06a9\u0648\u067e\u0646\u06af \u06c1\u0631 \u0627\u06cc\u06a9 \u0627\u067e\u0627\u0631\u0679\u0645\u0646\u0679 \u067e\u0631 \u0627\u06cc\u06a9 \u062a\u0627\u0644\u0627 \u06c1\u06d2\u06d4 \u0639\u0645\u0627\u0631\u062a \u0645\u06cc\u06ba \u0631\u06c1\u0646\u0627 \u0622\u067e \u06a9\u0648 \u067e\u0691\u0648\u0633\u06cc \u0627\u067e\u0627\u0631\u0679\u0645\u0646\u0679\u0633 \u062a\u06a9 \u0631\u0633\u0627\u0626\u06cc \u0646\u06c1\u06cc\u06ba \u062f\u06cc\u062a\u0627 \u06c1\u06d2\u06d4<\/p>\n<p>\u0627\u0633\u06a9\u0648\u067e\u0646\u06af \u06a9\u06d2 \u0628\u063a\u06cc\u0631\u060c \u0627\u06cc\u06a9 \u062a\u0648\u062b\u06cc\u0642 \u0634\u062f\u06c1 \u0635\u0627\u0631\u0641 \u0645\u0645\u06a9\u0646\u06c1 \u0637\u0648\u0631 \u067e\u0631 \u0688\u06cc\u0679\u0627 \u0628\u06cc\u0633 \u0645\u06cc\u06ba \u0645\u0648\u062c\u0648\u062f \u062a\u0645\u0627\u0645 \u0646\u0648\u0679 \u062f\u06cc\u06a9\u06be \u0633\u06a9\u062a\u0627 \u06c1\u06d2\u060c \u06cc\u0627 \u0627\u0633 \u0633\u06d2 \u0628\u06be\u06cc \u0628\u062f\u062a\u0631\u060c \u0627\u0646 \u0646\u0648\u0679\u0648\u06ba \u0645\u06cc\u06ba \u062a\u0631\u0645\u06cc\u0645 \u06a9\u0631 \u0633\u06a9\u062a\u0627 \u06c1\u06d2 \u062c\u0648 \u06a9\u0633\u06cc \u0627\u0648\u0631 \u06a9\u06d2 \u06c1\u06cc\u06ba\u06d4 \u0622\u067e \u0648\u06cc\u0648 \u0633\u06cc\u0679 \u0645\u06cc\u06ba \u062f\u0648 \u0637\u0631\u06cc\u0642\u0648\u06ba \u06a9\u0648 \u0627\u0648\u0648\u0631 \u0631\u0627\u0626\u06cc\u0688 \u06a9\u0631 \u06a9\u06d2 \u0627\u0633 \u0633\u06d2 \u0645\u06a9\u0645\u0644 \u0637\u0648\u0631 \u067e\u0631 \u0628\u0686 \u0633\u06a9\u062a\u06d2 \u06c1\u06cc\u06ba:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/umang.pk\/wp-content\/uploads\/2026\/05\/1778014359_283_\u062c\u06cc\u0646\u06af\u0648-\u0631\u06cc\u0633\u0679-\u0641\u0631\u06cc\u0645-\u0648\u0631\u06a9-\u0627\u0648\u0631-\u0633\u0627\u062f\u06c1-\u062c\u06d2-\u0688\u0628\u0644\u06cc\u0648-\u0679\u06cc-\u06a9\u0627.png\" alt=\"\u062a\u0635\u0648\u06cc\u0631 \u0627\u0633\u06a9\u0648\u067e\u0646\u06af \u06a9\u06d2 \u0633\u0627\u062a\u06be \u0627\u0648\u0631 \u0628\u063a\u06cc\u0631 \u0631\u0633\u0627\u0626\u06cc \u06a9\u06d2 \u0648\u0633\u0627\u0626\u0644 \u0645\u06cc\u06ba \u0641\u0631\u0642 \u06a9\u0648 \u0648\u0627\u0636\u062d \u06a9\u0631\u062a\u06cc \u06c1\u06d2\u06d4\" style=\"display:block;margin:0 auto\" width=\"600\" height=\"400\" loading=\"lazy\" title=\"\"><\/p>\n<h3 id=\"heading-71-how-to-create-a-noteviewset\">7.1 \u0646\u0648\u0679 \u0648\u06cc\u0648 \u0633\u06cc\u0679 \u06a9\u06cc\u0633\u06d2 \u0628\u0646\u0627\u06cc\u0627 \u062c\u0627\u0626\u06d2\u06d4<\/h3>\n<p>\u0627\u0628 <code>NoteViewSet<\/code>. \u0633\u0628 \u0633\u06d2 \u067e\u06c1\u0644\u06d2\u060c \u0627\u0646 \u062f\u0631\u0622\u0645\u062f\u0627\u062a \u06a9\u0648 \u0641\u0627\u0626\u0644 \u06a9\u06d2 \u0627\u0648\u067e\u0631\u06cc \u062d\u0635\u06d2 \u0645\u06cc\u06ba \u0634\u0627\u0645\u0644 \u06a9\u0631\u06cc\u06ba\u06d4 \u0648\u06cc\u0648 \u0633\u06cc\u0679\u0633\u060c \u0633\u06cc\u0631\u06cc\u0644\u0627\u0626\u0632\u0631\u0632 \u0627\u0648\u0631 \u0645\u0627\u0688\u0644\u0632 \u062f\u0631\u0622\u0645\u062f \u06a9\u0631\u0646\u0627\u06d4<\/p>\n<pre><code class=\"language-python\">from .models import Note\nfrom .serializers import UserSerializer, NoteSerializer\nfrom rest_framework import generics, viewsets, permissions\n<\/code><\/pre>\n<p>\u062f\u0631\u062c \u0630\u06cc\u0644 \u0634\u0627\u0645\u0644 \u06a9\u0631\u06cc\u06ba: <code>notes\/views.py<\/code>\u0631\u062c\u0633\u0679\u0631 \u0648\u06cc\u0648 \u06a9\u06d2 \u0646\u06cc\u0686\u06d2:<\/p>\n<pre><code class=\"language-python\">class NoteViewSet(viewsets.ModelViewSet):\n    serializer_class = NoteSerializer\n\n    def get_queryset(self):\n        return Notes.objects.filter(owner=self.request.user).order_by('-created_at')\n\n    def perform_create(self, serializer):\n        serializer.save(owner=self.request.user)\n<\/code><\/pre>\n<p>\u0627\u0628 \u0645\u06cc\u06ba \u0627\u0633 \u06a9\u0648\u0688 \u06a9\u0648 \u0645\u0632\u06cc\u062f \u062a\u0641\u0635\u06cc\u0644 \u0633\u06d2 \u0628\u06cc\u0627\u0646 \u06a9\u0631\u062a\u0627 \u06c1\u0648\u06ba\u06d4<\/p>\n<p>\u0645\u06cc\u06ba \u0646\u06d2 \u0627\u06cc\u06a9 \u0646\u0626\u06cc \u06a9\u0644\u0627\u0633 \u0628\u0646\u0627\u0626\u06cc \u062c\u0633 \u06a9\u0627 \u0646\u0627\u0645 \u06c1\u06d2\u06d4 <code>NoteViewSet<\/code> DRF \u06a9\u0644\u0627\u0633 \u0633\u06d2 \u0648\u0631\u0627\u062b\u062a \u0645\u06cc\u06ba \u0645\u0644\u0627\u06d4 <code>ModelViewSet<\/code>. \u06cc\u06c1 \u0645\u06a9\u0645\u0644 CRUD \u0622\u067e\u0631\u06cc\u0634\u0646 \u0641\u0631\u0627\u06c1\u0645 \u06a9\u0631\u062a\u0627 \u06c1\u06d2\u06d4 \u0627\u0633 \u06a9\u0627 \u0645\u0637\u0644\u0628 \u06c1\u06d2 \u06a9\u06c1 \u0622\u067e \u0646\u0648\u0679\u0648\u06ba \u06a9\u06cc \u0641\u06c1\u0631\u0633\u062a \u0628\u0646\u0627 \u0633\u06a9\u062a\u06d2 \u06c1\u06cc\u06ba \u0627\u0648\u0631 \u0633\u0646\u06af\u0644 \u0646\u0648\u0679 \u062a\u0644\u0627\u0634 \u06a9\u0631 \u0633\u06a9\u062a\u06d2 \u06c1\u06cc\u06ba\u060c \u0646\u06cc\u0632 \u0646\u0648\u0679 \u0628\u0646\u0627 \u0633\u06a9\u062a\u06d2 \u06c1\u06cc\u06ba\u060c \u0627\u067e \u0688\u06cc\u0679 \u06a9\u0631 \u0633\u06a9\u062a\u06d2 \u06c1\u06cc\u06ba \u0627\u0648\u0631 \u062d\u0630\u0641 \u06a9\u0631 \u0633\u06a9\u062a\u06d2 \u06c1\u06cc\u06ba\u06d4<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/umang.pk\/wp-content\/uploads\/2026\/05\/1778014360_938_\u062c\u06cc\u0646\u06af\u0648-\u0631\u06cc\u0633\u0679-\u0641\u0631\u06cc\u0645-\u0648\u0631\u06a9-\u0627\u0648\u0631-\u0633\u0627\u062f\u06c1-\u062c\u06d2-\u0688\u0628\u0644\u06cc\u0648-\u0679\u06cc-\u06a9\u0627.png\" alt=\"\u062a\u0635\u0648\u06cc\u0631 \u062f\u0631\u0622\u0645\u062f \u06a9\u06cc\u06d2 \u062c\u0627\u0646\u06d2 \u0648\u0627\u0644\u06d2 \u0645\u0627\u0688\u0644 \u0648\u06cc\u0648\u0632 \u06a9\u0627 \u0633\u06cc\u0679 \u062f\u06a9\u06be\u0627\u062a\u06cc \u06c1\u06d2\u06d4\" style=\"display:block;margin:0 auto\" width=\"600\" height=\"400\" loading=\"lazy\" title=\"\"><\/p>\n<p>\u0627\u06af\u0644\u0627 \u062d\u0635\u06c1 <code>serializer_class = NoteSerializer<\/code> \u06c1\u0645 \u062c\u06cc\u0646\u06af\u0648 \u06a9\u0648 \u0627\u0633\u062a\u0639\u0645\u0627\u0644 \u06a9\u0631\u0646\u06d2 \u06a9\u0648 \u06a9\u06c1\u062a\u06d2 \u06c1\u06cc\u06ba: <code>NoteSerializer<\/code> \u0627\u06cc\u06a9 \u06a9\u0644\u0627\u0633 \u062c\u0648 Python \u0622\u0628\u062c\u06cc\u06a9\u0679 \u0627\u0648\u0631 JSON \u06a9\u06d2 \u062f\u0631\u0645\u06cc\u0627\u0646 \u062a\u0628\u062f\u06cc\u0644 \u06c1\u0648\u062a\u06cc \u06c1\u06d2\u06d4<\/p>\n<p>\u0644\u06cc\u06a9\u0646 \u062c\u0627\u062f\u0648 \u06a9\u06cc \u0646\u0626\u06cc \u062a\u0639\u0631\u06cc\u0641 \u06a9\u0631\u0646\u06d2 \u06a9\u06d2 \u062f\u0648 \u0637\u0631\u06cc\u0642\u06d2 \u06c1\u06cc\u06ba\u06d4 <code>get_queryset()<\/code> \u0627\u0648\u0631 <code>perform_create()<\/code>.<\/p>\n<p>\u06a9\u06c1 <code>get_queryset()<\/code> \u06cc\u06c1 \u0637\u0631\u06cc\u0642\u06c1 \u06a9\u0646\u0679\u0631\u0648\u0644 \u06a9\u0631\u062a\u0627 \u06c1\u06d2 \u06a9\u06c1 \u06a9\u0648\u0646 \u0633\u06d2 API \u06a9\u0648 \u0646\u0648\u0679 \u06a9\u0631\u062a\u0627 \u06c1\u06d2\u06d4 \u0627\u06af\u0631 \u0622\u067e \u0627\u0633 \u0637\u0631\u06cc\u0642\u06c1 \u06a9\u0648 \u0627\u0648\u0648\u0631 \u0631\u0627\u0626\u0688 \u0646\u06c1\u06cc\u06ba \u06a9\u0631\u062a\u06d2 \u06c1\u06cc\u06ba \u062a\u0648 \u06cc\u06c1 \u0648\u0627\u067e\u0633 \u0622\u062c\u0627\u0626\u06d2 \u06af\u0627: <code>Note.objects.all()<\/code> (\u062a\u0645\u0627\u0645 \u0635\u0627\u0631\u0641\u06cc\u0646 \u06a9\u0648 \u0688\u06cc\u0679\u0627 \u0628\u06cc\u0633 \u0645\u06cc\u06ba \u0645\u0648\u062c\u0648\u062f \u062a\u0645\u0627\u0645 \u0646\u0648\u0679\u0648\u06ba \u062a\u06a9 \u0631\u0633\u0627\u0626\u06cc \u0641\u0631\u0627\u06c1\u0645 \u06a9\u0631\u062a\u0627 \u06c1\u06d2)\u06d4<\/p>\n<p>\u062a\u0627\u06c1\u0645\u060c \u06cc\u06c1\u0627\u06ba \u06c1\u0645 \u0646\u06d2 \u0645\u0648\u062c\u0648\u062f\u06c1 \u0635\u0627\u0631\u0641 \u06a9\u06d2 \u0646\u0648\u0679\u0633 \u06a9\u0648 \u0641\u0644\u0679\u0631 \u06a9\u0631\u0646\u06d2 \u06a9\u06d2 \u0644\u06cc\u06d2 \u0627\u0633 \u0637\u0631\u06cc\u0642\u06d2 \u06a9\u0648 \u0627\u0648\u0648\u0631 \u0631\u0627\u0626\u0688 \u06a9\u0631 \u062f\u06cc\u0627 \u06c1\u06d2\u06d4<\/p>\n<p>\u0627\u06af\u0644\u0627 \u06c1\u06d2\u06d4 <code>perform_create()<\/code> \u06cc\u06c1 \u0637\u0631\u06cc\u0642\u06c1 \u062a\u0628 \u06a9\u06c1\u0627 \u062c\u0627\u062a\u0627 \u06c1\u06d2 \u062c\u0628 \u06a9\u0648\u0626\u06cc \u0646\u0648\u0679 \u0645\u062d\u0641\u0648\u0638 \u06a9\u06cc\u0627 \u062c\u0627\u062a\u0627 \u06c1\u06d2\u06d4 \u0645\u06cc\u06ba \u0646\u06d2 \u0641\u06cc \u0627\u0644\u062d\u0627\u0644 \u0644\u0627\u06af \u0627\u0646 \u0635\u0627\u0631\u0641 \u06a9\u06d2 \u0646\u0648\u0679\u0633 \u0645\u062d\u0641\u0648\u0638 \u06a9\u0631\u0646\u06d2 \u06a9\u06d2 \u0644\u06cc\u06d2 \u0627\u0633 \u0637\u0631\u06cc\u0642\u06c1 \u06a9\u0648 \u0627\u0648\u0648\u0631 \u0631\u0627\u0626\u06cc\u0688 \u06a9\u0631 \u062f\u06cc\u0627 \u06c1\u06d2\u06d4 \u0627\u06af\u0631 \u0622\u067e \u0627\u0633 \u0637\u0631\u06cc\u0642\u06c1 \u06a9\u0648 \u0627\u0648\u0648\u0631 \u0631\u0627\u0626\u0688 \u0646\u06c1\u06cc\u06ba \u06a9\u0631\u062a\u06d2 \u06c1\u06cc\u06ba\u060c \u062a\u0648 \u06cc\u06c1 \u0644\u0627\u06af \u0627\u0646 \u0635\u0627\u0631\u0641 \u0633\u06d2 \u0642\u0637\u0639 \u0646\u0638\u0631 \u062a\u0645\u0627\u0645 \u0646\u0648\u0679 \u0648\u0627\u067e\u0633 \u06a9\u0631 \u062f\u06d2 \u06af\u0627\u06d4<\/p>\n<p>\u06c1\u0645 \u0622\u067e \u06a9\u0648 \u0645\u0637\u0644\u0639 \u06a9\u0631\u0646\u0627 \u0686\u0627\u06c1\u062a\u06d2 \u06c1\u06cc\u06ba \u06a9\u06c1 \u0622\u067e \u0646\u06d2 \u0627\u0645\u062a\u062d\u0627\u0646 \u067e\u0627\u0633 \u06a9\u0631 \u0644\u06cc\u0627 \u06c1\u06d2\u06d4 <code>self.request.user<\/code> \u067e\u06cc\u0631\u0627\u0645\u06cc\u0679\u0631\u0632 <code>filter()<\/code> \u0641\u0646\u06a9\u0634\u0646 \u06cc\u06c1 \u06a9\u0648\u0688 \u0644\u0627\u06af \u0627\u0646 \u0635\u0627\u0631\u0641 \u06a9\u0648 \u0646\u0648\u0679 \u06a9\u06d2 \u0645\u0627\u0644\u06a9 \u06a9\u06d2 \u0637\u0648\u0631 \u067e\u0631 \u0645\u0646\u0633\u0644\u06a9 \u06a9\u0631\u062a\u0627 \u06c1\u06d2\u06d4<\/p>\n<p>\u06cc\u0627\u062f \u0631\u06a9\u06be\u06cc\u06ba \u06a9\u06c1 \u06c1\u0645 \u0646\u06d2 \u0645\u0627\u0644\u06a9 \u0641\u06cc\u0644\u0688 \u06a9\u0648 \u0633\u06cc\u0631\u06cc\u0644\u0627\u0626\u0632\u0631 \u0645\u06cc\u06ba \u0635\u0631\u0641 \u067e\u0691\u06be\u0646\u06d2 \u06a9\u06d2 \u0644\u06cc\u06d2 \u06a9\u06cc\u0633\u06d2 \u0628\u0646\u0627\u06cc\u0627\u061f \u06cc\u06c1 \u062d\u0641\u0627\u0638\u062a\u06cc \u0627\u0642\u062f\u0627\u0645\u0627\u062a \u06a9\u0627 \u062f\u0648\u0633\u0631\u0627 \u0646\u0635\u0641 \u06c1\u06d2\u06d4<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/umang.pk\/wp-content\/uploads\/2026\/05\/1778014362_147_\u062c\u06cc\u0646\u06af\u0648-\u0631\u06cc\u0633\u0679-\u0641\u0631\u06cc\u0645-\u0648\u0631\u06a9-\u0627\u0648\u0631-\u0633\u0627\u062f\u06c1-\u062c\u06d2-\u0688\u0628\u0644\u06cc\u0648-\u0679\u06cc-\u06a9\u0627.png\" alt=\"6db94c2f-673f-480a-bf20-730ed4af4bdb\" style=\"display:block;margin:0 auto\" width=\"600\" height=\"400\" loading=\"lazy\" title=\"\"><\/p>\n<p>\u0635\u0627\u0631\u0641 API \u06a9\u06cc \u062f\u0631\u062e\u0648\u0627\u0633\u062a \u06a9\u06d2 \u0630\u0631\u06cc\u0639\u06d2 \u0645\u0627\u0644\u06a9 \u06a9\u0648 \u0645\u062a\u0639\u06cc\u0646 \u0646\u06c1\u06cc\u06ba \u06a9\u0631 \u0633\u06a9\u062a\u06d2 \u06c1\u06cc\u06ba \u0627\u0648\u0631 \u0633\u0631\u0648\u0631 \u062e\u0648\u062f \u0628\u062e\u0648\u062f \u0645\u0627\u0644\u06a9 \u06a9\u0648 \u062a\u0635\u062f\u06cc\u0642 \u0634\u062f\u06c1 \u0634\u062e\u0635 \u067e\u0631 \u0633\u06cc\u0679 \u06a9\u0631 \u062f\u06cc\u062a\u0627 \u06c1\u06d2\u06d4 \u06cc\u06c1 \u062f\u0648\u0646\u0648\u06ba \u062d\u0635\u06d2 \u0627\u0633 \u0628\u0627\u062a \u06a9\u0648 \u06cc\u0642\u06cc\u0646\u06cc \u0628\u0646\u0627\u0646\u06d2 \u06a9\u06d2 \u0644\u06cc\u06d2 \u0645\u0644 \u06a9\u0631 \u06a9\u0627\u0645 \u06a9\u0631\u062a\u06d2 \u06c1\u06cc\u06ba \u06a9\u06c1 \u0645\u0644\u06a9\u06cc\u062a \u06a9\u06d2 \u0633\u0627\u062a\u06be \u0686\u06be\u06cc\u0691 \u0686\u06be\u0627\u0691 \u0646\u06c1 \u06c1\u0648\u06d4<\/p>\n<h3 id=\"heading-72-why-this-matters-preventing-id-enumeration-attacks\">7.2 \u06cc\u06c1 \u06a9\u06cc\u0648\u06ba \u0636\u0631\u0648\u0631\u06cc \u06c1\u06d2: ID \u0634\u0645\u0627\u0631\u06cc \u06a9\u06d2 \u062d\u0645\u0644\u0648\u06ba \u06a9\u0648 \u0631\u0648\u06a9\u0646\u0627<\/h3>\n<p>get_queryset \u0641\u0644\u0679\u0631\u0646\u06af \u06a9\u06d2 \u0628\u063a\u06cc\u0631\u060c API \u0627\u062c\u0627\u0632\u062a \u062f\u06d2 \u0633\u06a9\u062a\u0627 \u06c1\u06d2: \u0635\u0627\u0631\u0641 GET \u06a9\u06cc \u062f\u0631\u062e\u0648\u0627\u0633\u062a \u06a9\u0631\u062a\u0627 \u06c1\u06d2\u06d4 <code>\/api\/notes\/42\/<\/code> \u0622\u067e \u06a9\u0648 \u06a9\u0633\u06cc \u0627\u0648\u0631 \u06a9\u0627 \u0646\u0648\u0679 \u0646\u0638\u0631 \u0622\u062a\u0627 \u06c1\u06d2 \u06a9\u06cc\u0648\u0646\u06a9\u06c1 \u0622\u067e \u0646\u06d2 \u0627\u0646 \u06a9\u06cc \u0634\u0646\u0627\u062e\u062a \u06a9\u0627 \u0627\u0646\u062f\u0627\u0632\u06c1 \u0644\u06af\u0627\u06cc\u0627 \u062a\u06be\u0627\u06d4<\/p>\n<p>\u06cc\u06c1 <strong>\u0634\u0646\u0627\u062e\u062a\u06cc \u06af\u0646\u062a\u06cc \u067e\u0631 \u062d\u0645\u0644\u06c1<\/strong> \u2014 \u062d\u0645\u0644\u06c1 \u0622\u0648\u0631 \u062f\u0648\u0633\u0631\u06d2 \u0644\u0648\u06af\u0648\u06ba \u06a9\u06d2 \u0688\u06cc\u0679\u0627 \u06a9\u0648 \u062f\u0631\u06cc\u0627\u0641\u062a \u06a9\u0631\u0646\u06d2 \u0627\u0648\u0631 \u0627\u0646 \u062a\u06a9 \u0631\u0633\u0627\u0626\u06cc \u062d\u0627\u0635\u0644 \u06a9\u0631\u0646\u06d2 \u06a9\u06d2 \u0644\u06cc\u06d2 IDs (1, 2, 3, 4&#8230;) \u06a9\u06d2 \u0630\u0631\u06cc\u0639\u06d2 \u0686\u06a9\u0631 \u0644\u06af\u0627\u062a\u06d2 \u06c1\u06cc\u06ba\u06d4<\/p>\n<p>\u062f\u0627\u0626\u0631\u06c1 \u06a9\u0627\u0631 <code>get_queryset<\/code>\u06cc\u06c1\u0627\u06ba \u062a\u06a9 \u06a9\u06c1 \u0627\u06af\u0631 \u0635\u0627\u0631\u0641 B \u06a9\u0648 \u062f\u0631\u062e\u0648\u0627\u0633\u062a \u0628\u06be\u06cc\u062c\u062a\u0627 \u06c1\u06d2\u06d4 <code>\/api\/notes\/42\/<\/code> \u0646\u0648\u0679 42 \u06a9\u0627 \u062a\u0639\u0644\u0642 \u0635\u0627\u0631\u0641 A \u0633\u06d2 \u06c1\u06d2\u060c \u0644\u06c1\u0630\u0627 \u0648\u06cc\u0648 \u0633\u06cc\u0679 \u0627\u0633\u06d2 \u0635\u0627\u0631\u0641 B \u06a9\u06d2 \u0641\u0644\u0679\u0631 \u06a9\u0631\u062f\u06c1 \u0633\u0648\u0627\u0644 \u0633\u06cc\u0679 \u0645\u06cc\u06ba \u0646\u06c1\u06cc\u06ba \u0688\u06be\u0648\u0646\u0688 \u0633\u06a9\u062a\u0627\u06d4 DRF 404 \u0648\u0627\u067e\u0633 \u06a9\u0631\u062a\u0627 \u06c1\u06d2\u06d4 \u062c\u06c1\u0627\u06ba \u062a\u06a9 \u0635\u0627\u0631\u0641 B \u06a9\u0627 \u062a\u0639\u0644\u0642 \u06c1\u06d2\u060c \u0648\u06c1 \u0646\u0648\u0679 \u0645\u0648\u062c\u0648\u062f \u0646\u06c1\u06cc\u06ba \u06c1\u06d2\u06d4<\/p>\n<h2 id=\"heading-step-8-how-to-connect-a-url\">\u0645\u0631\u062d\u0644\u06c1 8: \u06cc\u0648 \u0622\u0631 \u0627\u06cc\u0644 \u06a9\u0648 \u06a9\u06cc\u0633\u06d2 \u062c\u0648\u0691\u06cc\u06ba\u06d4<\/h2>\n<p>\u0627\u0628 \u06c1\u0645\u06cc\u06ba \u0622\u0631\u0627\u0621 \u06a9\u0648 \u06cc\u0648 \u0622\u0631 \u0627\u06cc\u0644 \u067e\u0627\u062a\u06be\u0632 \u06a9\u06d2 \u0633\u0627\u062a\u06be \u062c\u0648\u0691\u0646\u06d2 \u06a9\u06cc \u0636\u0631\u0648\u0631\u062a \u06c1\u06d2 \u062a\u0627\u06a9\u06c1 API \u06a9\u0648 \u0645\u0639\u0644\u0648\u0645 \u06c1\u0648 \u06a9\u06c1 \u06c1\u0631 \u0627\u06cc\u0646\u0688 \u067e\u0648\u0627\u0626\u0646\u0679 \u06a9\u06d2 \u0644\u06cc\u06d2 \u06a9\u0648\u0646 \u0633\u0627 \u0648\u06cc\u0648 \u06a9\u0627\u0644 \u06a9\u0631\u0646\u0627 \u06c1\u06d2\u06d4<\/p>\n<h3 id=\"heading-81-how-to-create-app-level-urls\">8.1 \u0627\u06cc\u067e \u0644\u06cc\u0648\u0644 \u06cc\u0648 \u0622\u0631 \u0627\u06cc\u0644 \u06a9\u06cc\u0633\u06d2 \u0628\u0646\u0627\u0626\u06cc\u06ba<\/h3>\n<p>\u0646\u0627\u0645\u06cc \u0627\u06cc\u06a9 \u0646\u0626\u06cc \u0641\u0627\u0626\u0644 \u0628\u0646\u0627\u0626\u06cc\u06ba <code>notes\/urls.py<\/code> \u0627\u0648\u0631 \u0634\u0627\u0645\u0644 \u06a9\u0631\u06cc\u06ba:<\/p>\n<pre><code class=\"language-python\">from django.urls import path, include\nfrom rest_framework.routers import DefaultRouter\nfrom .views import RegisterView, NoteViewSet\n\nrouter = DefaultRouter()\nrouter.register(r'notes', NoteViewSet, basename=\"note\")\n\nurlpatterns = [\n    path('register\/', RegisterView.as_view(), name=\"register\"),\n    path('', include(router.urls)),\n]\n<\/code><\/pre>\n<p>\u06a9\u06c1 <code>DefaultRouter<\/code> NoteViewSet \u06a9\u06d2 \u0644\u06cc\u06d2 \u062e\u0648\u062f \u0628\u062e\u0648\u062f \u0627\u06cc\u06a9 URL \u067e\u06cc\u0679\u0631\u0646 \u062a\u06cc\u0627\u0631 \u06a9\u0631\u062a\u0627 \u06c1\u06d2\u06d4 \u06a9\u06cc\u0648\u0646\u06a9\u06c1 \u0622\u067e \u0627\u0633\u062a\u0639\u0645\u0627\u0644 \u06a9\u0631 \u0631\u06c1\u06d2 \u06c1\u06cc\u06ba\u06d4 <code>ModelViewSet<\/code>\u0631\u0648\u0679\u0631 \u062a\u0645\u0627\u0645 \u0646\u0648\u0679\u0648\u06ba \u06a9\u06cc \u0641\u06c1\u0631\u0633\u062a \u0628\u0646\u0627\u0646\u06d2\u060c \u0646\u0648\u0679 \u0628\u0646\u0627\u0646\u06d2\u060c \u0627\u06cc\u06a9 \u0646\u0648\u0679 \u06a9\u0648 \u0628\u0627\u0632\u06cc\u0627\u0641\u062a \u06a9\u0631\u0646\u06d2\u060c \u0646\u0648\u0679\u0648\u06ba \u06a9\u0648 \u0627\u067e \u0688\u06cc\u0679 \u06a9\u0631\u0646\u06d2\u060c \u0627\u0648\u0631 \u0646\u0648\u0679\u0648\u06ba \u06a9\u0648 \u062d\u0630\u0641 \u06a9\u0631\u0646\u06d2 \u06a9\u06d2 \u0644\u06cc\u06d2 \u0627\u062e\u062a\u062a\u0627\u0645\u06cc \u0646\u0642\u0637\u06d2 \u0628\u0646\u0627\u062a\u0627 \u06c1\u06d2\u06d4 <strong>\u06cc\u06c1 \u0633\u0628 \u0627\u06cc\u06a9 \u06c1\u06cc \u0631\u0627\u0624\u0679\u0631 \u0631\u062c\u0633\u0679\u0631 \u06a9\u0627\u0644 \u0645\u06cc\u06ba \u06c1\u0648\u062a\u0627 \u06c1\u06d2\u06d4<\/strong><\/p>\n<p>\u06a9\u06c1 <code>basename=\"note\"<\/code> \u06cc\u06c1\u0627\u06ba \u067e\u06cc\u0631\u0627\u0645\u06cc\u0679\u0631 \u06a9\u06cc \u0636\u0631\u0648\u0631\u062a \u06c1\u06d2 \u06a9\u06cc\u0648\u0646\u06a9\u06c1 \u0648\u06cc\u0648 \u0633\u06cc\u0679 \u0645\u06cc\u06ba \u06a9\u0644\u0627\u0633 \u067e\u0631 \u0628\u0631\u0627\u06c1 \u0631\u0627\u0633\u062a \u0628\u06cc\u0627\u0646 \u06a9\u0631\u062f\u06c1 \u0633\u0648\u0627\u0644 \u0633\u06cc\u0679 \u06a9\u06cc \u062e\u0635\u0648\u0635\u06cc\u0627\u062a \u0646\u06c1\u06cc\u06ba \u06c1\u0648\u062a\u06cc \u06c1\u06cc\u06ba\u06d4 <em>(\u0645\u06cc\u06ba \u0627\u0633 \u06a9\u06d2 \u0628\u062c\u0627\u0626\u06d2 get_queryset \u0627\u0633\u062a\u0639\u0645\u0627\u0644 \u06a9\u0631 \u0631\u06c1\u0627 \u06c1\u0648\u06ba)<\/em>. DRF \u06c1\u06d2\u06d4 <code>basename<\/code> \u06cc\u0648 \u0622\u0631 \u0627\u06cc\u0644 \u067e\u06cc\u0679\u0631\u0646 \u06a9\u0627 \u0646\u0627\u0645 \u0627\u0633 \u0637\u0631\u062d \u062a\u06cc\u0627\u0631 \u06a9\u0631\u0646\u06d2 \u06a9\u06d2 \u0644\u06cc\u06d2: <code>note-list<\/code> \u0627\u0648\u0631 <code>note-detail<\/code>.<\/p>\n<h3 id=\"heading-82-how-to-verify-the-project-level-urls\">8.2 \u067e\u0631\u0648\u062c\u06cc\u06a9\u0679 \u0644\u06cc\u0648\u0644 \u06cc\u0648 \u0622\u0631 \u0627\u06cc\u0644 \u06a9\u0648 \u06a9\u06cc\u0633\u06d2 \u0686\u06cc\u06a9 \u06a9\u0631\u06cc\u06ba\u06d4<\/h3>\n<p>\u0622\u067e \u06a9\u0627 <code>notes_core\/urls.py<\/code> \u0627\u06cc\u0633\u0627 \u0644\u06af\u062a\u0627 \u06c1\u06d2 (\u06c1\u0645 \u0646\u06d2 \u0627\u0633\u06d2 \u0645\u0631\u062d\u0644\u06c1 5 \u0645\u06cc\u06ba \u062a\u0631\u062a\u06cc\u0628 \u062f\u06cc\u0627 \u06c1\u06d2\u060c \u0644\u06cc\u06a9\u0646 \u0622\u0626\u06cc\u06d2 \u0627\u0633\u06d2 \u0686\u06cc\u06a9 \u06a9\u0631\u06cc\u06ba):<\/p>\n<pre><code class=\"language-python\">from django.contrib import admin\nfrom django.urls import path, include\nfrom rest_framework_simplejwt.views import (\n    TokenObtainPairView,\n    TokenRefreshView,\n)\n\nurlpatterns = [\n    path('admin\/', admin.site.urls),\n    path('api\/', include('notes.urls')),\n    path('api\/token\/', TokenObtainPairView.as_view(), name=\"token_obtain_pair\"),\n    path('api\/token\/refresh\/', TokenRefreshView.as_view(), name=\"token_refresh\"),\n]\n<\/code><\/pre>\n<p>API \u06a9\u06d2 URL \u0688\u06be\u0627\u0646\u0686\u06d2 \u06a9\u06cc \u0645\u06a9\u0645\u0644 \u062a\u0635\u0648\u06cc\u0631 \u06cc\u06c1 \u06c1\u06d2:<\/p>\n<table>\n<thead>\n<tr>\n<th><strong>\u0627\u062e\u062a\u062a\u0627\u0645\u06cc \u0646\u0642\u0637\u06c1<\/strong><\/th>\n<th><strong>\u0637\u0631\u06cc\u0642\u06c1<\/strong><\/th>\n<th><strong>\u0648\u0636\u0627\u062d\u062a<\/strong><\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>api\/register\/<\/code><\/td>\n<td><strong>\u0645\u06cc\u0644<\/strong><\/td>\n<td>\u0627\u06cc\u06a9 \u0646\u06cc\u0627 \u0635\u0627\u0631\u0641 \u0627\u06a9\u0627\u0624\u0646\u0679 \u0628\u0646\u0627\u0626\u06cc\u06ba<\/td>\n<\/tr>\n<tr>\n<td><code>api\/token\/<\/code><\/td>\n<td><strong>\u0645\u06cc\u0644<\/strong><\/td>\n<td>\u0631\u0633\u0627\u0626\u06cc \u062d\u0627\u0635\u0644 \u06a9\u0631\u06cc\u06ba \u0627\u0648\u0631 \u0679\u0648\u06a9\u0646 \u0631\u06cc\u0641\u0631\u06cc\u0634 \u06a9\u0631\u06cc\u06ba\u06d4<\/td>\n<\/tr>\n<tr>\n<td><code>api\/token\/refresh\/<\/code><\/td>\n<td><strong>\u0645\u06cc\u0644<\/strong><\/td>\n<td>\u0631\u06cc\u0641\u0631\u06cc\u0634 \u0679\u0648\u06a9\u0646 \u06a9\u0627 \u0627\u0633\u062a\u0639\u0645\u0627\u0644 \u06a9\u0631\u062a\u06d2 \u06c1\u0648\u0626\u06d2 \u0627\u06cc\u06a9 \u0646\u06cc\u0627 \u0631\u0633\u0627\u0626\u06cc \u0679\u0648\u06a9\u0646 \u062d\u0627\u0635\u0644 \u06a9\u0631\u06cc\u06ba\u06d4<\/td>\n<\/tr>\n<tr>\n<td><code>api\/notes\/<\/code><\/td>\n<td><strong>\u062d\u0627\u0635\u0644 \u06a9\u0631\u06cc\u06ba<\/strong><\/td>\n<td>\u0627\u06cc\u06a9 \u0645\u0633\u062a\u0646\u062f \u0635\u0627\u0631\u0641 \u06a9\u06d2 \u0644\u06cc\u06d2 \u062a\u0645\u0627\u0645 \u0646\u0648\u0679 \u062f\u0631\u062c \u06a9\u0631\u06cc\u06ba\u06d4<\/td>\n<\/tr>\n<tr>\n<td><code>api\/notes\/<\/code><\/td>\n<td><strong>\u0645\u06cc\u0644<\/strong><\/td>\n<td>\u0627\u06cc\u06a9 \u0646\u06cc\u0627 \u0646\u0648\u0679 \u0628\u0646\u0627\u0626\u06cc\u06ba<\/td>\n<\/tr>\n<tr>\n<td><code>api\/notes\/<id>\/<\/id><\/code><\/td>\n<td><strong>\u062d\u0627\u0635\u0644 \u06a9\u0631\u06cc\u06ba<\/strong><\/td>\n<td>\u0645\u062e\u0635\u0648\u0635 \u0646\u0648\u0679 \u062a\u0644\u0627\u0634 \u06a9\u0631\u06cc\u06ba\u06d4<\/td>\n<\/tr>\n<tr>\n<td><code>api\/notes\/<id>\/<\/id><\/code><\/td>\n<td><strong>\u067e\u0679\/\u067e\u06cc\u0686<\/strong><\/td>\n<td>\u0645\u062e\u0635\u0648\u0635 \u0646\u0648\u0679\u0633 \u06a9\u0648 \u0627\u067e \u0688\u06cc\u0679 \u06a9\u0631\u06cc\u06ba\u06d4<\/td>\n<\/tr>\n<tr>\n<td><code>api\/notes\/<id>\/<\/id><\/code><\/td>\n<td><strong>\u062d\u0630\u0641 \u06a9\u0631\u06cc\u06ba<\/strong><\/td>\n<td>\u0627\u06cc\u06a9 \u0645\u062e\u0635\u0648\u0635 \u0646\u0648\u0679 \u062d\u0630\u0641 \u06a9\u0631\u06cc\u06ba\u06d4<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u0688\u0648\u06cc\u0644\u067e\u0645\u0646\u0679 \u0633\u0631\u0648\u0631 \u0634\u0631\u0648\u0639 \u06a9\u0631\u06cc\u06ba \u0627\u0648\u0631 \u06cc\u0642\u06cc\u0646\u06cc \u0628\u0646\u0627\u0626\u06cc\u06ba \u06a9\u06c1 \u0633\u0628 \u06a9\u0686\u06be \u0628\u063a\u06cc\u0631 \u06a9\u0633\u06cc \u063a\u0644\u0637\u06cc \u06a9\u06d2 \u0686\u0644\u062a\u0627 \u06c1\u06d2\u06d4<\/p>\n<pre><code class=\"language-shell\">python manage.py runserver\n<\/code><\/pre>\n<p>\u0627\u06af\u0631 \u0633\u0631\u0648\u0631 \u0634\u06a9\u0627\u06cc\u062a \u06a9\u06cc\u06d2 \u0628\u063a\u06cc\u0631 \u0634\u0631\u0648\u0639 \u06c1\u0648\u062a\u0627 \u06c1\u06d2\u060c \u062a\u0648 \u0622\u067e \u06a9\u0627 \u06a9\u0648\u0688 \u0635\u062d\u06cc\u062d \u0637\u0631\u06cc\u0642\u06d2 \u0633\u06d2 \u062c\u0691\u0627 \u06c1\u0648\u0627 \u06c1\u06d2\u06d4<\/p>\n<h2 id=\"heading-step-9-how-to-test-the-apis-with-postman\">\u0645\u0631\u062d\u0644\u06c1 9: \u067e\u0648\u0633\u0679 \u0645\u06cc\u0646 \u06a9\u06d2 \u0633\u0627\u062a\u06be \u0627\u067e\u0646\u06d2 API \u06a9\u06cc \u062c\u0627\u0646\u0686 \u06a9\u06cc\u0633\u06d2 \u06a9\u0631\u06cc\u06ba\u06d4<\/h2>\n<p>API \u0628\u0646\u0627\u0646\u0627 \u0627\u06cc\u06a9 \u0686\u06cc\u0632 \u06c1\u06d2\u06d4 \u06cc\u06c1 \u062b\u0627\u0628\u062a \u06a9\u0631\u0646\u0627 \u0627\u06cc\u06a9 \u0627\u0648\u0631 \u0686\u06cc\u0632 \u06c1\u06d2 \u06a9\u06c1 \u06cc\u06c1 \u06a9\u0627\u0645 \u06a9\u0631\u062a\u0627 \u06c1\u06d2\u06d4 \u0622\u0626\u06cc\u06d2 \u067e\u0648\u0633\u0679 \u0645\u06cc\u0646 \u06a9\u0627 \u0627\u0633\u062a\u0639\u0645\u0627\u0644 \u06a9\u0631\u062a\u06d2 \u06c1\u0648\u0626\u06d2 \u0635\u0627\u0631\u0641 \u06a9\u06cc \u0631\u062c\u0633\u0679\u0631\u06cc\u0634\u0646 \u0633\u06d2 \u0644\u06d2 \u06a9\u0631 \u0627\u0633\u06a9\u0648\u067e\u0646\u06af \u06a9\u0648 \u0639\u0645\u0644\u06cc \u062c\u0627\u0645\u06c1 \u067e\u06c1\u0646\u0627\u0646\u06d2 \u062a\u06a9 \u067e\u0648\u0631\u06d2 \u0628\u06c1\u0627\u0624 \u067e\u0631 \u0686\u0644\u062a\u06d2 \u06c1\u06cc\u06ba\u06d4<\/p>\n<p>\u0627\u06af\u0631 \u0622\u067e \u0646\u06d2 \u067e\u06c1\u0644\u06d2 \u06a9\u0628\u06be\u06cc \u067e\u0648\u0633\u0679 \u0645\u06cc\u0646 \u06a9\u0627 \u0627\u0633\u062a\u0639\u0645\u0627\u0644 \u0646\u06c1\u06cc\u06ba \u06a9\u06cc\u0627 \u06c1\u06d2\u060c \u062a\u0648 \u06cc\u06c1 \u0627\u06cc\u06a9 \u0627\u06cc\u0633\u0627 \u0679\u0648\u0644 \u06c1\u06d2 \u062c\u0648 \u0622\u067e \u06a9\u0648 HTTP \u062f\u0631\u062e\u0648\u0627\u0633\u062a\u06cc\u06ba API \u06a9\u0648 \u0628\u06be\u06cc\u062c\u0646\u06d2 \u0627\u0648\u0631 \u062c\u0648\u0627\u0628 \u06a9\u0627 \u0645\u0639\u0627\u0626\u0646\u06c1 \u06a9\u0631\u0646\u06d2 \u062f\u06cc\u062a\u0627 \u06c1\u06d2\u06d4 \u0622\u067e \u0627\u0633\u06d2 postman.com\/downloads \u067e\u0631 \u0688\u0627\u0624\u0646 \u0644\u0648\u0688 \u06a9\u0631 \u0633\u06a9\u062a\u06d2 \u06c1\u06cc\u06ba\u06d4<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/umang.pk\/wp-content\/uploads\/2026\/05\/1778014364_826_\u062c\u06cc\u0646\u06af\u0648-\u0631\u06cc\u0633\u0679-\u0641\u0631\u06cc\u0645-\u0648\u0631\u06a9-\u0627\u0648\u0631-\u0633\u0627\u062f\u06c1-\u062c\u06d2-\u0688\u0628\u0644\u06cc\u0648-\u0679\u06cc-\u06a9\u0627.png\" alt=\"\u067e\u0648\u0633\u0679 \u0645\u06cc\u0646 \u0633\u0627\u0641\u0679 \u0648\u06cc\u0626\u0631 \u0688\u0627\u0624\u0646 \u0644\u0648\u0688 \u0635\u0641\u062d\u06c1\" style=\"display:block;margin:0 auto\" width=\"600\" height=\"400\" loading=\"lazy\" title=\"\"><\/p>\n<p>\u0645\u062a\u0628\u0627\u062f\u0644 \u0637\u0648\u0631 \u067e\u0631\u060c \u0622\u067e \u06a9\u0645\u0627\u0646\u0688 \u0644\u0627\u0626\u0646 \u06cc\u0627 \u06a9\u0633\u06cc \u062f\u0648\u0633\u0631\u06d2 \u0645\u0627\u0646\u0648\u0633 API \u0679\u06cc\u0633\u0679\u0646\u06af \u0679\u0648\u0644 \u0633\u06d2 curl \u0627\u0633\u062a\u0639\u0645\u0627\u0644 \u06a9\u0631 \u0633\u06a9\u062a\u06d2 \u06c1\u06cc\u06ba\u06d4<\/p>\n<p>\u062c\u0627\u0631\u06cc \u0631\u06a9\u06be\u0646\u06d2 \u0633\u06d2 \u067e\u06c1\u0644\u06d2 \u06cc\u0642\u06cc\u0646\u06cc \u0628\u0646\u0627\u0626\u06cc\u06ba \u06a9\u06c1 \u0622\u067e \u06a9\u0627 \u0688\u06cc\u0648\u0644\u067e\u0645\u0646\u0679 \u0633\u0631\u0648\u0631 \u0686\u0644 \u0631\u06c1\u0627 \u06c1\u06d2\u06d4<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/umang.pk\/wp-content\/uploads\/2026\/05\/1778014365_689_\u062c\u06cc\u0646\u06af\u0648-\u0631\u06cc\u0633\u0679-\u0641\u0631\u06cc\u0645-\u0648\u0631\u06a9-\u0627\u0648\u0631-\u0633\u0627\u062f\u06c1-\u062c\u06d2-\u0688\u0628\u0644\u06cc\u0648-\u0679\u06cc-\u06a9\u0627.png\" alt=\"Python \u0633\u0631\u0648\u0631 \u0686\u0644 \u0631\u06c1\u0627 \u06c1\u06d2\u06d4\" style=\"display:block;margin:0 auto\" width=\"600\" height=\"400\" loading=\"lazy\" title=\"\"><\/p>\n<h3 id=\"heading-91-how-to-register-a-user\">9.1 \u0635\u0627\u0631\u0641 \u06a9\u0648 \u0631\u062c\u0633\u0679\u0631 \u06a9\u0631\u0646\u06d2 \u06a9\u0627 \u0637\u0631\u06cc\u0642\u06c1<\/h3>\n<p>\u067e\u0648\u0633\u0679 \u0645\u06cc\u0646 \u06a9\u06be\u0648\u0644\u06cc\u06ba:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/umang.pk\/wp-content\/uploads\/2026\/05\/1778014367_137_\u062c\u06cc\u0646\u06af\u0648-\u0631\u06cc\u0633\u0679-\u0641\u0631\u06cc\u0645-\u0648\u0631\u06a9-\u0627\u0648\u0631-\u0633\u0627\u062f\u06c1-\u062c\u06d2-\u0688\u0628\u0644\u06cc\u0648-\u0679\u06cc-\u06a9\u0627.png\" alt=\"\u0627\u0641\u062a\u062a\u0627\u062d\u06cc \u0688\u0627\u06a9\u06cc\u06c1\" style=\"display:block;margin:0 auto\" width=\"600\" height=\"400\" loading=\"lazy\" title=\"\"><\/p>\n<p>\u0627\u06cc\u06a9 \u0646\u0626\u06cc \u062f\u0631\u062e\u0648\u0627\u0633\u062a \u0628\u0646\u0627\u0626\u06cc\u06ba\u06d4<\/p>\n<table>\n<thead>\n<tr>\n<th>\u0637\u0631\u06cc\u0642\u06c1<\/th>\n<th>\u0645\u06cc\u0644<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><strong>URL<\/strong><\/td>\n<td><code>http:\/\/127.0.0.1:8000\/api\/register\/<\/code><\/td>\n<\/tr>\n<tr>\n<td><strong>\u0628\u0627\u0688\u06cc \u0679\u06cc\u0628<\/strong><\/td>\n<td>&quot;\u0631\u0627&#8221; \u06a9\u0648 \u0645\u0646\u062a\u062e\u0628 \u06a9\u0631\u06cc\u06ba \u0627\u0648\u0631 \u0688\u0631\u0627\u067e \u0688\u0627\u0624\u0646 \u0633\u06d2 &quot;JSON&#8221; \u06a9\u0648 \u0645\u0646\u062a\u062e\u0628 \u06a9\u0631\u06cc\u06ba\u06d4<\/td>\n<\/tr>\n<tr>\n<td><strong>\u062c\u0633\u0645\u0627\u0646\u06cc \u0645\u0648\u0627\u062f<\/strong><\/td>\n<td>{ &quot;\u0635\u0627\u0631\u0641 \u06a9\u0627 \u0646\u0627\u0645&#8221;: &quot;\u067e\u0631\u06cc\u0627&#8221;\u060c &quot;\u0627\u06cc \u0645\u06cc\u0644&#8221;: &quot;priya@example.com&#8221;\u060c &quot;password&#8221;: &quot;securepassword123&#8221; }<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><img decoding=\"async\" src=\"https:\/\/umang.pk\/wp-content\/uploads\/2026\/05\/1778014369_260_\u062c\u06cc\u0646\u06af\u0648-\u0631\u06cc\u0633\u0679-\u0641\u0631\u06cc\u0645-\u0648\u0631\u06a9-\u0627\u0648\u0631-\u0633\u0627\u062f\u06c1-\u062c\u06d2-\u0688\u0628\u0644\u06cc\u0648-\u0679\u06cc-\u06a9\u0627.png\" alt=\"\u0646\u0626\u06d2 \u0635\u0627\u0631\u0641 \u06a9\u06cc \u0631\u062c\u0633\u0679\u0631\u06cc\u0634\u0646 \u06a9\u06d2 \u0644\u06cc\u06d2 \u067e\u0648\u0633\u0679 \u0645\u06cc\u0646 UI\" style=\"display:block;margin:0 auto\" width=\"600\" height=\"400\" loading=\"lazy\" title=\"\"><\/p>\n<p>\u06a9\u0644\u06a9 \u06a9\u0631\u06cc\u06ba <strong>\u062c\u0627\u0646\u06d2 \u062f\u0648<\/strong>. \u062a\u0645 \u06c1\u0648 <code>201 Created<\/code> \u0635\u0627\u0631\u0641 \u06a9\u06d2 \u0688\u06cc\u0679\u0627 \u06a9\u06d2 \u0633\u0627\u062a\u06be \u062c\u0648\u0627\u0628 \u062f\u06cc\u06ba\u06d4 <strong>(\u0628\u063a\u06cc\u0631 \u067e\u0627\u0633 \u0648\u0631\u0688 \u06a9\u06d2<\/strong>\u0634\u06a9\u0631\u06cc\u06c1 <code>write_only=True<\/code> \u0645\u06cc\u062f\u0627\u0646) <code>UserSerializer<\/code> \u06a9\u0644\u0627\u0633<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/umang.pk\/wp-content\/uploads\/2026\/05\/1778014371_831_\u062c\u06cc\u0646\u06af\u0648-\u0631\u06cc\u0633\u0679-\u0641\u0631\u06cc\u0645-\u0648\u0631\u06a9-\u0627\u0648\u0631-\u0633\u0627\u062f\u06c1-\u062c\u06d2-\u0688\u0628\u0644\u06cc\u0648-\u0679\u06cc-\u06a9\u0627.png\" alt=\"\u0635\u0627\u0631\u0641 \u06a9\u06d2 \u0627\u0646\u062f\u0631\u0627\u062c \u06a9\u0627 \u062c\u0648\u0627\u0628\" style=\"display:block;margin:0 auto\" width=\"600\" height=\"400\" loading=\"lazy\" title=\"\"><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/umang.pk\/wp-content\/uploads\/2026\/05\/1778014373_38_\u062c\u06cc\u0646\u06af\u0648-\u0631\u06cc\u0633\u0679-\u0641\u0631\u06cc\u0645-\u0648\u0631\u06a9-\u0627\u0648\u0631-\u0633\u0627\u062f\u06c1-\u062c\u06d2-\u0688\u0628\u0644\u06cc\u0648-\u0679\u06cc-\u06a9\u0627.png\" alt=\"\u062a\u0635\u0648\u06cc\u0631 \u062d\u0633\u0628 \u0636\u0631\u0648\u0631\u062a \u0633\u06cc\u0631\u06cc\u0644\u0627\u0626\u0632\u0631 \u06a9\u0644\u0627\u0633 \u06a9\u06d2 \u06a9\u0648\u0688 \u06a9\u06cc \u0648\u0636\u0627\u062d\u062a \u06a9\u0631\u062a\u06cc \u06c1\u06d2\u06d4\" style=\"display:block;margin:0 auto\" width=\"600\" height=\"400\" loading=\"lazy\" title=\"\"><\/p>\n<h3 id=\"heading-92-how-to-obtain-access-and-refresh-tokens\">9.2 \u0631\u0633\u0627\u0626\u06cc \u062d\u0627\u0635\u0644 \u06a9\u0631\u0646\u06d2 \u0627\u0648\u0631 \u0679\u0648\u06a9\u0646\u0632 \u06a9\u0648 \u0631\u06cc\u0641\u0631\u06cc\u0634 \u06a9\u0631\u0646\u06d2 \u06a9\u0627 \u0637\u0631\u06cc\u0642\u06c1<\/h3>\n<p>\u0627\u0628 \u0644\u0627\u06af \u0627\u0646 \u06a9\u0631\u06cc\u06ba \u0627\u0648\u0631 \u0627\u067e\u0646\u0627 JWT \u062d\u0627\u0635\u0644 \u06a9\u0631\u06cc\u06ba\u06d4<\/p>\n<table>\n<thead>\n<tr>\n<th>\u0637\u0631\u06cc\u0642\u06c1<\/th>\n<th>\u0645\u06cc\u0644<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><strong>URL<\/strong><\/td>\n<td><code>http:\/\/127.0.0.1:8000\/api\/token\/<\/code><\/td>\n<\/tr>\n<tr>\n<td><strong>\u062c\u0633\u0645<\/strong><\/td>\n<td>{&quot;username&#8221;: &quot;priya&#8221;, &quot;password&#8221;: &quot;securepassword123&#8221;}<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u0622\u067e \u06a9\u0648 \u0631\u0633\u0627\u0626\u06cc \u0627\u0648\u0631 \u0631\u06cc\u0641\u0631\u06cc\u0634 \u0679\u0648\u06a9\u0646\u0632 \u067e\u0631 \u0645\u0634\u062a\u0645\u0644 \u062c\u0648\u0627\u0628 \u0645\u0648\u0635\u0648\u0644 \u06c1\u0648\u06af\u0627\u06d4<\/p>\n<p><strong>\u0631\u0633\u0627\u0626\u06cc \u0679\u0648\u06a9\u0646 \u06a9\u0627\u067e\u06cc \u06a9\u0631\u06cc\u06ba\u06d4<\/strong> \u0622\u067e \u06a9\u0648 \u0645\u0633\u062a\u0642\u0628\u0644 \u06a9\u06cc \u062a\u0645\u0627\u0645 \u062f\u0631\u062e\u0648\u0627\u0633\u062a\u0648\u06ba \u06a9\u06d2 \u0644\u06cc\u06d2 \u0627\u0633 \u0645\u0639\u0644\u0648\u0645\u0627\u062a \u06a9\u06cc \u0636\u0631\u0648\u0631\u062a \u06c1\u0648\u06af\u06cc\u06d4 \u0622\u0626\u0646\u062f\u06c1 \u0627\u0633\u062a\u0639\u0645\u0627\u0644 \u06a9\u06d2 \u0644\u06cc\u06d2 \u0631\u06cc\u0641\u0631\u06cc\u0634 \u0679\u0648\u06a9\u0646 \u06a9\u0648 \u0628\u06be\u06cc \u0645\u062d\u0641\u0648\u0638 \u06a9\u0631\u06cc\u06ba\u06d4<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/umang.pk\/wp-content\/uploads\/2026\/05\/1778014374_186_\u062c\u06cc\u0646\u06af\u0648-\u0631\u06cc\u0633\u0679-\u0641\u0631\u06cc\u0645-\u0648\u0631\u06a9-\u0627\u0648\u0631-\u0633\u0627\u062f\u06c1-\u062c\u06d2-\u0688\u0628\u0644\u06cc\u0648-\u0679\u06cc-\u06a9\u0627.png\" alt=\"\u062a\u0635\u0648\u06cc\u0631 API \u06a9\u0648 \u0648\u0627\u067e\u0633 \u06a9\u0631\u0646\u06d2 \u0648\u0627\u0644\u06cc \u0631\u0633\u0627\u0626\u06cc \u0627\u0648\u0631 \u0631\u06cc\u0641\u0631\u06cc\u0634 \u0679\u0648\u06a9\u0646 \u062f\u06a9\u06be\u0627\u062a\u06cc \u06c1\u06d2\u06d4\" style=\"display:block;margin:0 auto\" width=\"600\" height=\"400\" loading=\"lazy\" title=\"\"><\/p>\n<p>JWT \u0635\u0631\u0641 \u0627\u0646\u06a9\u0648\u0688 \u0634\u062f\u06c1 \u06c1\u06d2\u060c \u0627\u0646\u06a9\u0631\u067e\u0679\u0688 \u0646\u06c1\u06cc\u06ba\u06d4 \u0627\u0646\u06a9\u0648\u0688\u0646\u06af \u0688\u06cc\u0679\u0627 \u06a9\u0648 \u0645\u062d\u0641\u0648\u0638\u060c \u0645\u0639\u06cc\u0627\u0631\u06cc \u0633\u0679\u0631\u0646\u06af \u0641\u0627\u0631\u0645\u06cc\u0679 \u0645\u06cc\u06ba \u062a\u0628\u062f\u06cc\u0644 \u06a9\u0631\u0646\u06d2 \u06a9\u0627 \u0627\u06cc\u06a9 \u0637\u0631\u06cc\u0642\u06c1 \u06c1\u06d2 \u062c\u0633\u06d2 \u0627\u0646\u0679\u0631\u0646\u06cc\u0679 \u067e\u0631 \u0622\u0633\u0627\u0646\u06cc \u0633\u06d2 \u0645\u0646\u062a\u0642\u0644 \u06a9\u06cc\u0627 \u062c\u0627 \u0633\u06a9\u062a\u0627 \u06c1\u06d2\u06d4<\/p>\n<p>\u06a9\u0648\u0626\u06cc \u0628\u06be\u06cc \u0627\u0646\u06a9\u0648\u0688\u0646\u06af \u06a9\u06d2 \u0630\u0631\u06cc\u0639\u06d2 \u0688\u06cc\u0679\u0627 \u062f\u06cc\u06a9\u06be \u0633\u06a9\u062a\u0627 \u06c1\u06d2\u06d4 \u06cc\u06c1 base64url \u0627\u0646\u06a9\u0648\u0688\u0646\u06af \u06a9\u0627 \u0627\u0633\u062a\u0639\u0645\u0627\u0644 \u06a9\u0631\u062a\u06d2 \u06c1\u0648\u0626\u06d2 \u06a9\u06cc\u0627 \u062c\u0627\u062a\u0627 \u06c1\u06d2\u06d4<\/p>\n<p>\u0622\u067e Python \u0644\u0627\u0626\u0628\u0631\u06cc\u0631\u06cc\u0627\u06ba \u0627\u0633\u062a\u0639\u0645\u0627\u0644 \u06a9\u0631 \u0633\u06a9\u062a\u06d2 \u06c1\u06cc\u06ba\u06d4 <code>pyjwt<\/code> JWT \u06a9\u0648 \u0688\u06cc \u06a9\u0648\u0688 \u06a9\u0631\u06cc\u06ba \u06cc\u0627 \u0627\u0633\u06d2 \u0688\u06cc \u06a9\u0648\u0688 \u06a9\u0631\u0646\u06d2 \u06a9\u06d2 \u0644\u06cc\u06d2 \u0622\u0646 \u0644\u0627\u0626\u0646 \u0633\u0627\u0626\u0679 \u0627\u0633\u062a\u0639\u0645\u0627\u0644 \u06a9\u0631\u06cc\u06ba\u06d4 \u06cc\u06c1 \u0646\u0648\u0679 \u06a9\u0631\u0646\u0627 \u0636\u0631\u0648\u0631\u06cc \u06c1\u06d2 \u06a9\u06c1 JWTs \u0645\u06cc\u06ba \u062d\u0633\u0627\u0633 \u0645\u0639\u0644\u0648\u0645\u0627\u062a \u06c1\u0648\u0633\u06a9\u062a\u06cc \u06c1\u06cc\u06ba \u0627\u0648\u0631 \u0622\u067e \u06a9\u0648 \u0622\u0646 \u0644\u0627\u0626\u0646 \u0633\u0627\u0626\u0679\u0633 \u06a9\u0648 \u0627\u062d\u062a\u06cc\u0627\u0637 \u06a9\u06d2 \u0633\u0627\u062a\u06be \u0627\u0633\u062a\u0639\u0645\u0627\u0644 \u06a9\u0631\u0646\u0627 \u0686\u0627\u06c1\u06cc\u06d2\u06d4<\/p>\n<p>\u06cc\u06c1 \u0688\u06cc\u0645\u0648 jwt.io \u0646\u0627\u0645\u06cc \u0633\u0627\u0626\u0679 \u0627\u0633\u062a\u0639\u0645\u0627\u0644 \u06a9\u0631\u062a\u0627 \u06c1\u06d2\u06d4<\/p>\n<p>\u0633\u0627\u0626\u0679 \u06a9\u06be\u0648\u0644\u06cc\u06ba \u0627\u0648\u0631 \u0631\u0633\u0627\u0626\u06cc \u0679\u0648\u06a9\u0646 \u06a9\u0648 \u067e\u06cc\u0633\u0679 \u06a9\u0631\u06cc\u06ba \u062c\u0648 \u0622\u067e \u0646\u06d2 \u0627\u0628\u06be\u06cc \u0628\u0646\u0627\u06cc\u0627 \u06c1\u06d2\u06d4<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/umang.pk\/wp-content\/uploads\/2026\/05\/1778014376_151_\u062c\u06cc\u0646\u06af\u0648-\u0631\u06cc\u0633\u0679-\u0641\u0631\u06cc\u0645-\u0648\u0631\u06a9-\u0627\u0648\u0631-\u0633\u0627\u062f\u06c1-\u062c\u06d2-\u0688\u0628\u0644\u06cc\u0648-\u0679\u06cc-\u06a9\u0627.png\" alt=\"\u062a\u0635\u0627\u0648\u06cc\u0631 JWT \u0679\u0648\u06a9\u0646 \u06a9\u0648 \u0688\u06cc \u06a9\u0648\u0688 \u06a9\u0631\u0646\u06d2 \u06a9\u06d2 \u0628\u0639\u062f \u0645\u062e\u062a\u0644\u0641 \u062d\u0635\u0648\u06ba \u06a9\u06cc \u0648\u0636\u0627\u062d\u062a \u06a9\u0631\u062a\u06cc \u06c1\u06cc\u06ba\u06d4\" style=\"display:block;margin:0 auto\" width=\"600\" height=\"400\" loading=\"lazy\" title=\"\"><\/p>\n<p>JWT \u062a\u06cc\u0646 \u062d\u0635\u0648\u06ba \u067e\u0631 \u0645\u0634\u062a\u0645\u0644 \u06c1\u06d2: \u06c1\u06cc\u0688\u0631\u060c \u067e\u06d2 \u0644\u0648\u0688\u060c \u0627\u0648\u0631 \u062f\u0633\u062a\u062e\u0637\u06d4<\/p>\n<p>\u06c1\u06cc\u0688\u0631\u0632 \u0633\u06cc\u06a9\u0634\u0646 \u0622\u067e \u06a9\u0648 \u0628\u062a\u0627\u062a\u0627 \u06c1\u06d2 \u06a9\u06c1 \u06c1\u06cc\u0688\u0631\u0632 \u067e\u0631 \u06a9\u06cc\u0633\u06d2 \u062f\u0633\u062a\u062e\u0637 \u06a9\u06cc\u06d2 \u062c\u0627\u062a\u06d2 \u06c1\u06cc\u06ba\u06d4 \u0627\u0633 \u0635\u0648\u0631\u062a \u0645\u06cc\u06ba \u06cc\u06c1 \u0627\u0633\u062a\u0639\u0645\u0627\u0644 \u06a9\u0631\u062a\u06d2 \u06c1\u0648\u0626\u06d2 \u062f\u0633\u062a\u062e\u0637 \u06a9\u06cc\u0627 \u062c\u0627\u062a\u0627 \u06c1\u06d2: <strong>HS256<\/strong> \u062d\u0633\u0627\u0628<\/p>\n<p>\u067e\u06d2 \u0644\u0648\u0688 \u0648\u06c1 \u062c\u06af\u06c1 \u06c1\u06d2 \u062c\u06c1\u0627\u06ba \u0627\u0635\u0644 \u0688\u06cc\u0679\u0627 \u06cc\u0627 \u062f\u0639\u0648\u06d2 \u0631\u06c1\u062a\u06d2 \u06c1\u06cc\u06ba\u06d4 \u0679\u0648\u06a9\u0646 \u06a9\u06cc \u0642\u0633\u0645\u060c \u0645\u06cc\u0639\u0627\u062f \u062e\u062a\u0645 \u06c1\u0648\u0646\u06d2 \u06a9\u0627 \u0648\u0642\u062a ( <code>exp<\/code> \u0627\u0634\u0627\u0639\u062a \u06a9\u0627 \u0648\u0642\u062a ( <code>iat<\/code> ) \u0627\u0648\u0631 \u062d\u0633\u0628 \u0636\u0631\u0648\u0631\u062a \u062f\u0639\u0648\u06d2 \u06a9\u0631\u06cc\u06ba\u06d4<\/p>\n<p>\u062f\u0633\u062a\u062e\u0637 \u0648\u0627\u0644\u06d2 \u062d\u0635\u06d2 \u06a9\u0648 \u0633\u0627\u0644\u0645\u06cc\u062a \u06a9\u06cc \u062a\u0635\u062f\u06cc\u0642 \u06a9\u06d2 \u0644\u06cc\u06d2 \u0627\u0633\u062a\u0639\u0645\u0627\u0644 \u06a9\u06cc\u0627 \u062c\u0627\u062a\u0627 \u06c1\u06d2\u06d4 \u0622\u067e <strong>\u0627\u0633\u06d2 \u0645\u0639\u0646\u06cc \u062e\u06cc\u0632 \u0688\u06cc\u0679\u0627 \u0645\u06cc\u06ba \u0688\u06cc \u06a9\u0648\u0688 \u0646\u06c1\u06cc\u06ba \u06a9\u06cc\u0627 \u062c\u0627 \u0633\u06a9\u062a\u0627\u06d4<\/strong> \u06cc\u06c1 \u0633\u06cc\u06a9\u0634\u0646 \u062a\u0635\u062f\u06cc\u0642 \u06a9\u0631\u062a\u0627 \u06c1\u06d2 \u06a9\u06c1 \u0679\u0648\u06a9\u0646 \u06a9\u06d2 \u0633\u0627\u062a\u06be \u0686\u06be\u06cc\u0691 \u0686\u06be\u0627\u0691 \u0646\u06c1\u06cc\u06ba \u06a9\u06cc \u06af\u0626\u06cc \u06c1\u06d2\u06d4<\/p>\n<h3 id=\"heading-93-how-to-create-a-note\">9.3 \u0646\u0648\u0679 \u06a9\u06cc\u0633\u06d2 \u0644\u06a9\u06be\u06cc\u06ba\u06d4<\/h3>\n<p>\u0627\u0628 \u0627\u067e\u0646\u06d2 \u0631\u0633\u0627\u0626\u06cc \u0679\u0648\u06a9\u0646 \u06a9\u0627 \u0627\u0633\u062a\u0639\u0645\u0627\u0644 \u06a9\u0631\u062a\u06d2 \u06c1\u0648\u0626\u06d2 \u0627\u06cc\u06a9 \u0646\u0648\u0679 \u0628\u0646\u0627\u0626\u06cc\u06ba\u06d4<\/p>\n<table>\n<thead>\n<tr>\n<th>\u0637\u0631\u06cc\u0642\u06c1<\/th>\n<th>\u0645\u06cc\u0644<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><strong>URL<\/strong><\/td>\n<td><code>http:\/\/127.0.0.1:8000\/api\/notes\/<\/code><\/td>\n<\/tr>\n<tr>\n<td><strong>\u06c1\u06cc\u0688\u0631 \u0679\u06cc\u0628:<\/strong><\/td>\n<td>\u0627\u06cc\u06a9 \u0646\u06cc\u0627 \u06c1\u06cc\u0688\u0631 \u0634\u0627\u0645\u0644 \u06a9\u0631\u06cc\u06ba\u06d4<\/td>\n<\/tr>\n<tr>\n<td>\u06a9\u0644\u06cc\u062f: \u0627\u062e\u062a\u06cc\u0627\u0631 \u06a9\u0631\u0646\u0627\u060c \u0642\u062f\u0631: \u0628\u0631\u062f\u0627\u0631<\/td>\n<td\/>\n<\/tr>\n<tr>\n<td><strong>\u062c\u0633\u0645<\/strong><\/td>\n<td>{&#8216;title&#8217;: &#8216;My Note&#8217;, &#8216;body&#8217;: &#8216;\u062e\u0641\u06cc\u06c1 \u0645\u0639\u0644\u0648\u0645\u0627\u062a \u067e\u0631 \u0645\u0634\u062a\u0645\u0644 \u06c1\u06d2\u06d4&#8217;}<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><img decoding=\"async\" src=\"https:\/\/umang.pk\/wp-content\/uploads\/2026\/05\/1778014378_736_\u062c\u06cc\u0646\u06af\u0648-\u0631\u06cc\u0633\u0679-\u0641\u0631\u06cc\u0645-\u0648\u0631\u06a9-\u0627\u0648\u0631-\u0633\u0627\u062f\u06c1-\u062c\u06d2-\u0688\u0628\u0644\u06cc\u0648-\u0679\u06cc-\u06a9\u0627.png\" alt=\"\u062a\u0635\u0648\u06cc\u0631 \u067e\u0648\u0633\u0679 \u0645\u06cc\u0646 \u0645\u06cc\u06ba \u0627\u06cc\u06a9 \u0646\u06cc\u0627 \u06c1\u06cc\u0688\u0631 \u0634\u0627\u0645\u0644 \u06a9\u0631\u062a\u06d2 \u06c1\u0648\u0626\u06d2 \u062f\u06a9\u06be\u0627\u062a\u06cc \u06c1\u06d2\u06d4\" style=\"display:block;margin:0 auto\" width=\"600\" height=\"400\" loading=\"lazy\" title=\"\"><\/p>\n<p>\u0645\u0627\u0644\u06a9 \u0641\u06cc\u0644\u0688 \u0634\u0627\u0645\u0644 \u0646\u06c1\u06cc\u06ba \u06c1\u06d2\u06d4 \u06cc\u06c1 Perform_create \u06a9\u06d2 \u0630\u0631\u06cc\u0639\u06d2 \u062e\u0648\u062f \u0628\u062e\u0648\u062f \u0633\u0646\u0628\u06be\u0627\u0644\u0627 \u062c\u0627\u062a\u0627 \u06c1\u06d2\u06d4 \u062a\u0645 \u06c1\u0648 <code>201 Created response<\/code>:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/umang.pk\/wp-content\/uploads\/2026\/05\/1778014380_803_\u062c\u06cc\u0646\u06af\u0648-\u0631\u06cc\u0633\u0679-\u0641\u0631\u06cc\u0645-\u0648\u0631\u06a9-\u0627\u0648\u0631-\u0633\u0627\u062f\u06c1-\u062c\u06d2-\u0688\u0628\u0644\u06cc\u0648-\u0679\u06cc-\u06a9\u0627.png\" alt=\"\u062a\u0635\u0648\u06cc\u0631 \u0646\u0648\u0679 \u0628\u0646\u0627\u0646\u06d2 \u06a9\u06d2 \u0628\u0639\u062f \u0622\u0624\u0679 \u067e\u0679 (\u062c\u0648\u0627\u0628) \u062f\u06a9\u06be\u0627\u062a\u06cc \u06c1\u06d2\u06d4\" style=\"display:block;margin:0 auto\" width=\"600\" height=\"400\" loading=\"lazy\" title=\"\"><\/p>\n<p>\u0622\u067e \u06a9\u0686\u06be \u0645\u0632\u06cc\u062f \u0646\u0648\u0679\u0633 \u0628\u0646\u0627 \u0633\u06a9\u062a\u06d2 \u06c1\u06cc\u06ba \u062a\u0627\u06a9\u06c1 \u0622\u067e \u06a9\u06d2 \u067e\u0627\u0633 \u06a9\u0627\u0645 \u06a9\u0631\u0646\u06d2 \u06a9\u06d2 \u0644\u06cc\u06d2 \u0688\u06cc\u0679\u0627 \u0645\u0648\u062c\u0648\u062f \u06c1\u0648\u06d4<\/p>\n<h3 id=\"heading-94-how-to-list-your-notes\">9.4 \u0646\u0648\u0679 \u06a9\u06cc\u0633\u06d2 \u0644\u0633\u0679 \u06a9\u0631\u06cc\u06ba\u06d4<\/h3>\n<p>\u0627\u0628\u060c \u067e\u0631\u06cc\u0627 \u06a9\u06d2 \u062a\u0645\u0627\u0645 \u0646\u0648\u0679 \u062d\u0627\u0635\u0644 \u06a9\u0631\u0646\u06d2 \u06a9\u06d2 \u0644\u06cc\u06d2\u060c \u0627\u0646 \u0645\u0631\u0627\u062d\u0644 \u067e\u0631 \u0639\u0645\u0644 \u06a9\u0631\u06cc\u06ba:<\/p>\n<table>\n<thead>\n<tr>\n<th>\u0637\u0631\u06cc\u0642\u06c1<\/th>\n<th>\u062d\u0627\u0635\u0644 \u06a9\u0631\u06cc\u06ba<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><strong>URL<\/strong><\/td>\n<td><code>http:\/\/127.0.0.1:8000\/api\/notes\/<\/code><\/td>\n<\/tr>\n<tr>\n<td><strong>\u06c1\u06cc\u0688\u0631 \u0679\u06cc\u0628:<\/strong><\/td>\n<td>\u0627\u06cc\u06a9 \u06c1\u06cc \u0627\u062c\u0627\u0632\u062a: \u0628\u06cc\u0626\u0631\u0631 \u06c1\u06cc\u0688\u0631<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u062a\u0645\u0627\u0645 \u062a\u062e\u0644\u06cc\u0642 \u06a9\u0631\u062f\u06c1 \u0646\u0648\u0679 \u062a\u0627\u0632\u06c1 \u062a\u0631\u06cc\u0646 \u0633\u06d2 \u0634\u0631\u0648\u0639 \u06a9\u0631\u06a9\u06d2 \u062a\u0631\u062a\u06cc\u0628 \u06a9\u06d2 \u0633\u0627\u062a\u06be \u062f\u06a9\u06be\u0627\u0626\u06d2 \u062c\u0627\u0626\u06cc\u06ba \u06af\u06d2\u06d4<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/umang.pk\/wp-content\/uploads\/2026\/05\/1778014382_438_\u062c\u06cc\u0646\u06af\u0648-\u0631\u06cc\u0633\u0679-\u0641\u0631\u06cc\u0645-\u0648\u0631\u06a9-\u0627\u0648\u0631-\u0633\u0627\u062f\u06c1-\u062c\u06d2-\u0688\u0628\u0644\u06cc\u0648-\u0679\u06cc-\u06a9\u0627.png\" alt=\"\u062a\u0635\u0648\u06cc\u0631 \u0646\u0648\u0679\u0633 \u06a9\u06cc \u0641\u06c1\u0631\u0633\u062a \u062d\u0627\u0635\u0644 \u06a9\u0631\u0646\u06d2 \u0648\u0627\u0644\u06d2 \u0631\u062f\u0639\u0645\u0644 \u06a9\u0648 \u062f\u06a9\u06be\u0627\u062a\u06cc \u06c1\u06d2\u06d4\" style=\"display:block;margin:0 auto\" width=\"600\" height=\"400\" loading=\"lazy\" title=\"\"><\/p>\n<h3 id=\"heading-95-how-to-demonstrate-scoping\">9.5 \u0633\u06a9\u0648\u067e\u0646\u06af \u06a9\u0627 \u0645\u0638\u0627\u06c1\u0631\u06c1 \u06a9\u06cc\u0633\u06d2 \u06a9\u0631\u06cc\u06ba\u06d4<\/h3>\n<p>\u0622\u0626\u06cc\u06d2 \u062b\u0627\u0628\u062a \u06a9\u0631\u062a\u06d2 \u06c1\u06cc\u06ba \u06a9\u06c1 \u062f\u0648\u0633\u0631\u0627 \u0635\u0627\u0631\u0641 \u067e\u06c1\u0644\u06d2 \u0635\u0627\u0631\u0641 \u06a9\u06d2 \u0646\u0648\u0679 \u0646\u06c1\u06cc\u06ba \u062f\u06cc\u06a9\u06be \u0633\u06a9\u062a\u0627\u06d4<\/p>\n<p>\u0633\u0628 \u0633\u06d2 \u067e\u06c1\u0644\u06d2\u060c \u062f\u0648\u0633\u0631\u06d2 \u0635\u0627\u0631\u0641 \u06a9\u0648 \u0631\u062c\u0633\u0679\u0631 \u06a9\u0631\u06cc\u06ba\u06d4<\/p>\n<p>\u067e\u0648\u0633\u0679 \u06a9\u06cc \u062f\u0631\u062e\u0648\u0627\u0633\u062a \u0628\u06be\u06cc\u062c\u06cc\u06ba\u06d4 <code>http:\/\/127.0.0.1\/api\/register<\/code> \u062f\u0631\u062c \u0630\u06cc\u0644 \u0688\u06cc\u0679\u0627 \u06a9\u06d2 \u0633\u0627\u062a\u06be:<\/p>\n<table>\n<thead>\n<tr>\n<th>\u0637\u0631\u06cc\u0642\u06c1<\/th>\n<th>\u0645\u06cc\u0644<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><strong>URL<\/strong><\/td>\n<td><code>http:\/\/127.0.0.1:8000\/api\/register\/<\/code><\/td>\n<\/tr>\n<tr>\n<td><strong>\u0628\u0627\u0688\u06cc \u0679\u06cc\u0628<\/strong><\/td>\n<td>&quot;\u0631\u0627&#8221; \u06a9\u0648 \u0645\u0646\u062a\u062e\u0628 \u06a9\u0631\u06cc\u06ba \u0627\u0648\u0631 \u0688\u0631\u0627\u067e \u0688\u0627\u0624\u0646 \u0633\u06d2 &quot;JSON&#8221; \u06a9\u0648 \u0645\u0646\u062a\u062e\u0628 \u06a9\u0631\u06cc\u06ba\u06d4<\/td>\n<\/tr>\n<tr>\n<td><strong>\u062c\u0633\u0645\u0627\u0646\u06cc \u0645\u0648\u0627\u062f<\/strong><\/td>\n<td>{ &quot;\u0635\u0627\u0631\u0641 \u06a9\u0627 \u0646\u0627\u0645&#8221;: &quot;sujan&#8221;\u060c &quot;email&#8221;: &quot;sujan@example.com&#8221;\u060c &quot;password&#8221;: &quot;anotherpassword123&#8221; }<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><img decoding=\"async\" src=\"https:\/\/umang.pk\/wp-content\/uploads\/2026\/05\/1778014384_658_\u062c\u06cc\u0646\u06af\u0648-\u0631\u06cc\u0633\u0679-\u0641\u0631\u06cc\u0645-\u0648\u0631\u06a9-\u0627\u0648\u0631-\u0633\u0627\u062f\u06c1-\u062c\u06d2-\u0688\u0628\u0644\u06cc\u0648-\u0679\u06cc-\u06a9\u0627.png\" alt=\"\u062a\u0635\u0648\u06cc\u0631 \u062f\u06a9\u06be\u0627\u062a\u06cc \u06c1\u06d2 \u06a9\u06c1 \u0627\u06cc\u06a9 \u0646\u06cc\u0627 \u0635\u0627\u0631\u0641 \u0628\u0646\u0627\u06cc\u0627 \u062c\u0627 \u0631\u06c1\u0627 \u06c1\u06d2\u06d4\" style=\"display:block;margin:0 auto\" width=\"600\" height=\"400\" loading=\"lazy\" title=\"\"><\/p>\n<p>\u067e\u06be\u0631 \u06c1\u0645 \u0633\u0648\u062c\u0646 \u06a9\u06d2 \u0644\u06cc\u06d2 \u0679\u0648\u06a9\u0646 \u062d\u0627\u0635\u0644 \u06a9\u0631\u0646\u06d2 \u06a9\u06d2 \u0644\u06cc\u06d2 POST \u06a9\u06cc \u062f\u0631\u062e\u0648\u0627\u0633\u062a \u0628\u06be\u06cc\u062c\u062a\u06d2 \u06c1\u06cc\u06ba\u06d4 <code>http:\/\/127.0.0.1:8000\/api\/token\/<\/code> \u0633\u0648\u062c\u0646 \u06a9\u06d2 \u0631\u0633\u0627\u0626\u06cc \u0679\u0648\u06a9\u0646 \u06a9\u0648 \u0627\u0633 \u06a9\u06cc \u0627\u0633\u0646\u0627\u062f (\u0635\u0627\u0631\u0641 \u06a9\u0627 \u0646\u0627\u0645 \u0627\u0648\u0631 \u067e\u0627\u0633 \u0648\u0631\u0688) \u0627\u0633\u062a\u0639\u0645\u0627\u0644 \u06a9\u0631\u062a\u06d2 \u06c1\u0648\u0626\u06d2 \u06a9\u0627\u067e\u06cc \u06a9\u0631\u06cc\u06ba\u06d4<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/umang.pk\/wp-content\/uploads\/2026\/05\/1778014385_902_\u062c\u06cc\u0646\u06af\u0648-\u0631\u06cc\u0633\u0679-\u0641\u0631\u06cc\u0645-\u0648\u0631\u06a9-\u0627\u0648\u0631-\u0633\u0627\u062f\u06c1-\u062c\u06d2-\u0688\u0628\u0644\u06cc\u0648-\u0679\u06cc-\u06a9\u0627.png\" alt=\"8fe22f1b-f36e-4b35-a478-1b48ea0218c3\" style=\"display:block;margin:0 auto\" width=\"600\" height=\"400\" loading=\"lazy\" title=\"\"><\/p>\n<p>\u0627\u0628 \u0627\u06cc\u06a9 GET \u062f\u0631\u062e\u0648\u0627\u0633\u062a \u0628\u06be\u06cc\u062c\u06cc\u06ba\u06d4 <code>http:\/\/127.0.0.1:8000\/api\/notes\/<\/code> \u06c1\u0645 \u0627\u062c\u0627\u0632\u062a \u06a9\u06d2 \u06c1\u06cc\u0688\u0631 \u0645\u06cc\u06ba \u0633\u0648\u062c\u0646 \u06a9\u0627 \u0679\u0648\u06a9\u0646 \u0627\u0633\u062a\u0639\u0645\u0627\u0644 \u06a9\u0631\u062a\u06d2 \u06c1\u06cc\u06ba\u06d4<\/p>\n<p>\u0627\u0633 \u0635\u0627\u0631\u0641 \u0646\u06d2 \u06a9\u0648\u0626\u06cc \u0646\u0648\u0679 \u0646\u06c1\u06cc\u06ba \u0628\u0646\u0627\u06cc\u0627\u060c \u0627\u0633 \u0644\u06cc\u06d2 \u062c\u0648\u0627\u0628 \u0627\u06cc\u06a9 \u062e\u0627\u0644\u06cc \u0641\u06c1\u0631\u0633\u062a \u06c1\u0648\u0646\u0627 \u0686\u0627\u06c1\u06cc\u06d2\u06d4<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/umang.pk\/wp-content\/uploads\/2026\/05\/1778014387_290_\u062c\u06cc\u0646\u06af\u0648-\u0631\u06cc\u0633\u0679-\u0641\u0631\u06cc\u0645-\u0648\u0631\u06a9-\u0627\u0648\u0631-\u0633\u0627\u062f\u06c1-\u062c\u06d2-\u0688\u0628\u0644\u06cc\u0648-\u0679\u06cc-\u06a9\u0627.png\" alt=\"\u062a\u0635\u0648\u06cc\u0631 \u0627\u06cc\u06a9 \u0646\u0626\u06d2 \u0635\u0627\u0631\u0641 \u06a9\u06d2 \u062d\u0627\u0635\u0644 \u0631\u0633\u0627\u0626\u06cc \u0679\u0648\u06a9\u0646 \u0627\u0633\u062a\u0641\u0633\u0627\u0631 \u06a9\u0627 \u062c\u0648\u0627\u0628 \u062f\u06a9\u06be\u0627\u062a\u06cc \u06c1\u06d2\u06d4\" style=\"display:block;margin:0 auto\" width=\"600\" height=\"400\" loading=\"lazy\" title=\"\"><\/p>\n<p>\u0627\u0633 \u0633\u06d2 \u0628\u06be\u06cc \u0627\u06c1\u0645 \u0628\u0627\u062a \u06cc\u06c1 \u06c1\u06d2 \u06a9\u06c1 \u067e\u0631\u06cc\u0627 \u06a9\u0627 \u0646\u0648\u0679 \u0627\u0633 \u06a9\u06d2 \u0644\u06cc\u06d2 \u0645\u06a9\u0645\u0644 \u0637\u0648\u0631 \u067e\u0631 \u067e\u0648\u0634\u06cc\u062f\u06c1 \u06c1\u06d2\u06d4 \u06cc\u06c1\u0627\u06ba \u062a\u06a9 \u06a9\u06c1 \u0627\u06af\u0631 \u0633\u0648\u062c\u0646 ID \u06a9\u06d2 \u0630\u0631\u06cc\u0639\u06c1 \u06a9\u0633\u06cc \u0645\u062e\u0635\u0648\u0635 \u0646\u0648\u0679 \u062a\u06a9 \u0631\u0633\u0627\u0626\u06cc \u062d\u0627\u0635\u0644 \u06a9\u0631\u0646\u06d2 \u06a9\u06cc \u06a9\u0648\u0634\u0634 \u06a9\u0631\u062a\u0627 \u06c1\u06d2 &#8211; \u062c\u06cc\u0633\u06d2 <code>http:\/\/127.0.0.1:8000\/api\/notes\/1\/<\/code> &#8211; \u0648\u06c1 \u062d\u0627\u0635\u0644 \u06a9\u0631\u06d2 \u06af\u0627 <code>404 Not Found<\/code> \u062c\u0648\u0627\u0628 \u0646\u06c1\u06cc\u06ba <code>403 Forbidden<\/code>.<\/p>\n<p>\u06cc\u06c1 \u062c\u0627\u0646 \u0628\u0648\u062c\u06be \u06a9\u0631 \u06c1\u06d2\u06d4 \u06a9\u0648\u0626\u06cc \u0631\u0627\u0633\u062a\u06c1 \u0646\u06c1\u06cc\u06ba <code>404 Not Found<\/code> \u0627\u06af\u0631\u0686\u06c1 \u06cc\u06c1 \u0638\u0627\u06c1\u0631 \u0646\u06c1\u06cc\u06ba \u06a9\u0631\u062a\u0627 \u06a9\u06c1 \u0646\u0648\u0679 \u0645\u0648\u062c\u0648\u062f \u06c1\u06d2\u06d4 <code>403 Forbidden<\/code> \u06cc\u06c1 \u0645\u0645\u06a9\u0646\u06c1 \u062d\u0645\u0644\u06c1 \u0622\u0648\u0631\u0648\u06ba \u06a9\u06d2 \u0644\u06cc\u06d2 \u0627\u0633 \u06a9\u06d2 \u0648\u062c\u0648\u062f \u06a9\u06cc \u062a\u0635\u062f\u06cc\u0642 \u06a9\u0631\u062a\u0627 \u06c1\u06d2\u06d4<\/p>\n<p>\u06a9\u0648\u0626\u06cc \u0631\u0627\u0633\u062a\u06c1 \u0646\u06c1\u06cc\u06ba <code>403 Forbidden<\/code> \u062c\u0648\u0627\u0628 \u0627\u06cc\u06a9 \u0646\u0634\u0627\u0646 \u06a9\u06d2 \u0633\u0627\u062a\u06be \u062f\u0631\u0648\u0627\u0632\u06d2 \u06a9\u06cc \u0637\u0631\u062d \u06c1\u06d2\u06d4 <em>&quot;\u0635\u0631\u0641 \u0645\u062c\u0627\u0632 \u0627\u06c1\u0644\u06a9\u0627\u0631&#8221;\u06d4<\/em> \u0627\u0628 \u0622\u067e \u062c\u0627\u0646\u062a\u06d2 \u06c1\u06cc\u06ba \u06a9\u06c1 \u0627\u0646\u062f\u0631 \u06a9\u06cc \u0686\u06cc\u0632 \u0648\u06c1\u06cc \u06c1\u06d2 \u062c\u0648 \u0634\u0645\u0627\u0631 \u06a9\u0631\u062a\u06cc \u06c1\u06d2\u06d4 \u06a9\u0648\u0626\u06cc \u0631\u0627\u0633\u062a\u06c1 \u0646\u06c1\u06cc\u06ba <code>404 Not Found<\/code> \u0631\u062f\u0639\u0645\u0644 \u0627\u06cc\u06a9 \u062e\u0627\u0644\u06cc \u062f\u06cc\u0648\u0627\u0631 \u06a9\u06cc \u0637\u0631\u062d \u06c1\u06d2. \u0622\u067e \u06a9\u0648 \u06cc\u06c1 \u0628\u06be\u06cc \u0646\u06c1\u06cc\u06ba \u0645\u0639\u0644\u0648\u0645 \u06a9\u06c1 \u06a9\u0645\u0631\u06c1 \u0645\u0648\u062c\u0648\u062f \u06c1\u06d2\u06d4<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/umang.pk\/wp-content\/uploads\/2026\/05\/1778014390_665_\u062c\u06cc\u0646\u06af\u0648-\u0631\u06cc\u0633\u0679-\u0641\u0631\u06cc\u0645-\u0648\u0631\u06a9-\u0627\u0648\u0631-\u0633\u0627\u062f\u06c1-\u062c\u06d2-\u0688\u0628\u0644\u06cc\u0648-\u0679\u06cc-\u06a9\u0627.png\" alt=\"\u062a\u0635\u0648\u06cc\u0631 403 \u0627\u0648\u0631 404 \u0631\u0633\u067e\u0627\u0646\u0633 \u06a9\u0648\u0688\u0632 \u06a9\u06d2 \u062f\u0631\u0645\u06cc\u0627\u0646 \u0641\u0631\u0642 \u06a9\u0648 \u0638\u0627\u06c1\u0631 \u06a9\u0631\u062a\u06cc \u06c1\u06d2\u06d4\" style=\"display:block;margin:0 auto\" width=\"600\" height=\"400\" loading=\"lazy\" title=\"\"><\/p>\n<p>\u0627\u0628 \u06c1\u0645 \u06a9\u06cc\u0648\u06ba <code>404<\/code> \u0627\u0633 \u06a9\u06d2 \u0628\u062c\u0627\u0626\u06d2 \u062c\u0648\u0627\u0628 \u062f\u06cc\u06ba <code>403<\/code>\u0645\u06cc\u06ba \u0622\u067e \u06a9\u0648 \u06cc\u06c1 \u062f\u06a9\u06be\u0627\u062a\u0627 \u06c1\u0648\u06ba\u06d4<\/p>\n<p>\u0633\u0628 \u0633\u06d2 \u067e\u06c1\u0644\u06d2\u060c \u0622\u0626\u06cc\u06d2 \u0627\u0633 \u06a9\u06cc \u0627\u0633\u0646\u0627\u062f \u0627\u0648\u0631 \u0631\u0633\u0627\u0626\u06cc \u0679\u0648\u06a9\u0646 \u06a9\u0627 \u0627\u0633\u062a\u0639\u0645\u0627\u0644 \u06a9\u0631\u062a\u06d2 \u06c1\u0648\u0626\u06d2 \u067e\u0631\u06cc\u0627 \u06a9\u06d2 \u0627\u0646\u0641\u0631\u0627\u062f\u06cc \u0646\u0648\u0679\u0633 \u062a\u06a9 \u0631\u0633\u0627\u0626\u06cc \u062d\u0627\u0635\u0644 \u06a9\u0631\u06cc\u06ba\u06d4<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/umang.pk\/wp-content\/uploads\/2026\/05\/1778014392_600_\u062c\u06cc\u0646\u06af\u0648-\u0631\u06cc\u0633\u0679-\u0641\u0631\u06cc\u0645-\u0648\u0631\u06a9-\u0627\u0648\u0631-\u0633\u0627\u062f\u06c1-\u062c\u06d2-\u0688\u0628\u0644\u06cc\u0648-\u0679\u06cc-\u06a9\u0627.png\" alt=\"\u06cc\u06c1 \u062a\u0635\u0648\u06cc\u0631 \u067e\u06c1\u0644\u06d2 \u0635\u0627\u0631\u0641 (\u067e\u0631\u06cc\u0627) \u06a9\u0627 \u0627\u0633\u062a\u0639\u0645\u0627\u0644 \u06a9\u0631\u062a\u06d2 \u06c1\u0648\u0626\u06d2 \u0627\u0646\u0641\u0631\u0627\u062f\u06cc \u0646\u0648\u0679\u0648\u06ba \u062a\u06a9 \u0631\u0633\u0627\u0626\u06cc \u06a9\u06d2 \u0646\u062a\u0627\u0626\u062c \u062f\u06a9\u06be\u0627\u062a\u06cc \u06c1\u06d2\u06d4\" style=\"display:block;margin:0 auto\" width=\"600\" height=\"400\" loading=\"lazy\" title=\"\"><\/p>\n<p>\u0627\u0628 \u0627\u06cc\u06a9\u0633\u06cc\u0633 \u0679\u0648\u06a9\u0646 \u06a9\u0648 \u062a\u0628\u062f\u06cc\u0644 \u06a9\u0631\u06cc\u06ba \u0627\u0648\u0631 \u0633\u0648\u062c\u0646 (\u0646\u0626\u06d2 \u0635\u0627\u0631\u0641) \u06a9\u0627 \u0627\u06cc\u06a9\u0633\u06cc\u0633 \u0679\u0648\u06a9\u0646 \u062f\u0627\u062e\u0644 \u06a9\u0631\u06cc\u06ba\u06d4<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/umang.pk\/wp-content\/uploads\/2026\/05\/1778014394_621_\u062c\u06cc\u0646\u06af\u0648-\u0631\u06cc\u0633\u0679-\u0641\u0631\u06cc\u0645-\u0648\u0631\u06a9-\u0627\u0648\u0631-\u0633\u0627\u062f\u06c1-\u062c\u06d2-\u0688\u0628\u0644\u06cc\u0648-\u0679\u06cc-\u06a9\u0627.png\" alt=\"\u062a\u0635\u0648\u06cc\u0631 \u0627\u06cc\u06a9 \u0646\u0626\u06d2 \u0635\u0627\u0631\u0641 (\u0633\u0648\u062c\u0627\u0646) \u06a9\u06cc \u0627\u0633\u0646\u0627\u062f \u06a9\u0627 \u0627\u0633\u062a\u0639\u0645\u0627\u0644 \u06a9\u0631\u062a\u06d2 \u06c1\u0648\u0626\u06d2 \u062f\u0648\u0633\u0631\u06d2 \u0646\u0648\u0679 \u062a\u06a9 \u0631\u0633\u0627\u0626\u06cc \u06a9\u06d2 \u062c\u0648\u0627\u0628 \u06a9\u0648 \u062f\u06a9\u06be\u0627\u062a\u06cc \u06c1\u06d2\u06d4\" style=\"display:block;margin:0 auto\" width=\"600\" height=\"400\" loading=\"lazy\" title=\"\"><\/p>\n<p>\u0627\u06af\u0631 \u0622\u067e \u067e\u0631\u0627\u0646\u06d2 \u0635\u0627\u0631\u0641 \u06a9\u06d2 \u0646\u0648\u0679\u0648\u06ba \u062a\u06a9 \u0631\u0633\u0627\u0626\u06cc \u06a9\u06d2 \u0644\u06cc\u06d2 \u0646\u0626\u06d2 \u0635\u0627\u0631\u0641 \u06a9\u0627 \u0679\u0648\u06a9\u0646 \u0627\u0633\u062a\u0639\u0645\u0627\u0644 \u06a9\u0631\u062a\u06d2 \u06c1\u06cc\u06ba\u060c \u062a\u0648 \u0622\u067e \u06cc\u06c1 \u06c1\u0648\u062a\u0627 \u062f\u06cc\u06a9\u06be \u0633\u06a9\u062a\u06d2 \u06c1\u06cc\u06ba: <code>404 Not Found<\/code> \u062c\u0648\u0627\u0628<\/p>\n<h2 id=\"heading-step-10-how-to-handle-token-expiration-with-refresh-tokens\">\u0645\u0631\u062d\u0644\u06c1 10: \u0631\u06cc\u0641\u0631\u06cc\u0634 \u0679\u0648\u06a9\u0646\u0632 \u06a9\u0627 \u0627\u0633\u062a\u0639\u0645\u0627\u0644 \u06a9\u0631\u062a\u06d2 \u06c1\u0648\u0626\u06d2 \u0679\u0648\u06a9\u0646 \u06a9\u06cc \u0645\u06cc\u0639\u0627\u062f \u062e\u062a\u0645 \u06c1\u0648\u0646\u06d2 \u06a9\u0648 \u06a9\u06cc\u0633\u06d2 \u06c1\u06cc\u0646\u0688\u0644 \u06a9\u0631\u06cc\u06ba\u06d4<\/h2>\n<p>\u0631\u0633\u0627\u0626\u06cc \u0679\u0648\u06a9\u0646 \u062c\u0627\u0646 \u0628\u0648\u062c\u06be \u06a9\u0631 \u0642\u0644\u06cc\u0644 \u0627\u0644\u0645\u062f\u062a\u06cc \u06c1\u06cc\u06ba (\u06c1\u0645\u0627\u0631\u06cc \u062a\u0631\u062a\u06cc\u0628 \u0645\u06cc\u06ba 30 \u0645\u0646\u0679)\u06d4 \u0627\u06af\u0631 \u0679\u0648\u06a9\u0646 \u0686\u0648\u0631\u06cc \u06c1\u0648 \u062c\u0627\u0626\u06d2 \u062a\u0648 \u06cc\u06c1 \u0646\u0642\u0635\u0627\u0646 \u06a9\u06cc \u062d\u062f \u06a9\u0648 \u0645\u062d\u062f\u0648\u062f \u06a9\u0631\u062a\u0627 \u06c1\u06d2\u06d4<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/umang.pk\/wp-content\/uploads\/2026\/05\/1778014396_926_\u062c\u06cc\u0646\u06af\u0648-\u0631\u06cc\u0633\u0679-\u0641\u0631\u06cc\u0645-\u0648\u0631\u06a9-\u0627\u0648\u0631-\u0633\u0627\u062f\u06c1-\u062c\u06d2-\u0688\u0628\u0644\u06cc\u0648-\u0679\u06cc-\u06a9\u0627.png\" alt=\"b86f4f24-b8b0-45d0-bcee-5e39e2268e21\" style=\"display:block;margin:0 auto\" width=\"600\" height=\"400\" loading=\"lazy\" title=\"\"><\/p>\n<p>\u062a\u0627\u06c1\u0645\u060c \u0622\u067e \u0646\u06c1\u06cc\u06ba \u0686\u0627\u06c1\u062a\u06d2 \u06a9\u06c1 \u0635\u0627\u0631\u0641\u06cc\u0646 \u06c1\u0631 30 \u0645\u0646\u0679 \u0645\u06cc\u06ba \u0627\u067e\u0646\u06cc \u0627\u0633\u0646\u0627\u062f \u062f\u0648\u0628\u0627\u0631\u06c1 \u062f\u0631\u062c \u06a9\u0631\u06cc\u06ba\u06d4 \u0631\u06cc\u0641\u0631\u06cc\u0634 \u0679\u0648\u06a9\u0646 \u0627\u0633 \u06a9\u06d2 \u0644\u06cc\u06d2 \u06c1\u06cc\u06ba\u06d4<\/p>\n<p>\u062c\u0628 \u067e\u0631\u06cc\u0627 \u06a9\u06d2 \u0631\u0633\u0627\u0626\u06cc \u0679\u0648\u06a9\u0646 \u06a9\u06cc \u0645\u06cc\u0639\u0627\u062f \u062e\u062a\u0645 \u06c1\u0648 \u062c\u0627\u062a\u06cc \u06c1\u06d2\u060c \u062a\u0648 \u0627\u0633 \u06a9\u06cc API \u06a9\u06cc \u062f\u0631\u062e\u0648\u0627\u0633\u062a\u06cc\u06ba \u0648\u0627\u067e\u0633 \u0622\u0646\u0627 \u0634\u0631\u0648\u0639 \u06c1\u0648 \u062c\u0627\u062a\u06cc \u06c1\u06cc\u06ba\u06d4 <code>401 Unauthorized<\/code> \u062c\u0648\u0627\u0628 \u062f\u0648\u0628\u0627\u0631\u06c1 \u0644\u0627\u06af \u0627\u0646 \u06a9\u0631\u0646\u06d2 \u06a9\u06d2 \u0628\u062c\u0627\u0626\u06d2\u060c \u06a9\u0644\u0627\u0626\u0646\u0679 \u0627\u06cc\u06a9 \u0646\u06cc\u0627 \u0631\u0633\u0627\u0626\u06cc \u0679\u0648\u06a9\u0646 \u062d\u0627\u0635\u0644 \u06a9\u0631\u0646\u06d2 \u06a9\u06d2 \u0644\u06cc\u06d2 \u0631\u06cc\u0641\u0631\u06cc\u0634 \u0679\u0648\u06a9\u0646 \u0628\u06be\u06cc\u062c\u062a\u0627 \u06c1\u06d2\u06d4<\/p>\n<table>\n<thead>\n<tr>\n<th>\u0637\u0631\u06cc\u0642\u06c1<\/th>\n<th>\u0645\u06cc\u0644<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><strong>URL<\/strong><\/td>\n<td><code>http:\/\/127.0.0.1:8000\/api\/token\/refresh\/<\/code><\/td>\n<\/tr>\n<tr>\n<td><strong>\u0628\u0627\u0688\u06cc \u0679\u06cc\u0628<\/strong><\/td>\n<td>&quot;\u0631\u0627&#8221; \u06a9\u0648 \u0645\u0646\u062a\u062e\u0628 \u06a9\u0631\u06cc\u06ba \u0627\u0648\u0631 \u0688\u0631\u0627\u067e \u0688\u0627\u0624\u0646 \u0633\u06d2 &quot;JSON&#8221; \u06a9\u0648 \u0645\u0646\u062a\u062e\u0628 \u06a9\u0631\u06cc\u06ba\u06d4<\/td>\n<\/tr>\n<tr>\n<td><strong>\u062c\u0633\u0645\u0627\u0646\u06cc \u0645\u0648\u0627\u062f<\/strong><\/td>\n<td>{ \u0631\u06cc\u0641\u0631\u06cc\u0634: < Priya's refresh token >}<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><img decoding=\"async\" src=\"https:\/\/umang.pk\/wp-content\/uploads\/2026\/05\/1778014397_6_\u062c\u06cc\u0646\u06af\u0648-\u0631\u06cc\u0633\u0679-\u0641\u0631\u06cc\u0645-\u0648\u0631\u06a9-\u0627\u0648\u0631-\u0633\u0627\u062f\u06c1-\u062c\u06d2-\u0688\u0628\u0644\u06cc\u0648-\u0679\u06cc-\u06a9\u0627.png\" alt=\"\u062a\u0635\u0648\u06cc\u0631 \u0627\u06cc\u06a9 \u0646\u06cc\u0627 \u0631\u0633\u0627\u0626\u06cc \u0679\u0648\u06a9\u0646 \u062d\u0627\u0635\u0644 \u06a9\u0631\u0646\u06d2 \u06a9\u06d2 \u0644\u06cc\u06d2 \u0631\u06cc\u0641\u0631\u06cc\u0634 \u0679\u0648\u06a9\u0646 \u06a9\u0627 \u0627\u0633\u062a\u0639\u0645\u0627\u0644 \u06a9\u0631\u062a\u06d2 \u06c1\u0648\u0626\u06d2 \u062c\u0648\u0627\u0628 \u062f\u06a9\u06be\u0627\u062a\u06cc \u06c1\u06d2\u06d4\" style=\"display:block;margin:0 auto\" width=\"600\" height=\"400\" loading=\"lazy\" title=\"\"><\/p>\n<p>\u0627\u067e\u0646\u06d2 \u067e\u0631\u0627\u0646\u06d2 \u0631\u0633\u0627\u0626\u06cc \u0679\u0648\u06a9\u0646 \u06a9\u0648 \u0627\u06cc\u06a9 \u0646\u0626\u06d2 \u0633\u06d2 \u062a\u0628\u062f\u06cc\u0644 \u06a9\u0631\u0646\u06d2 \u0633\u06d2 \u0622\u067e \u06a9\u0648 \u0645\u0632\u06cc\u062f 30 \u0645\u0646\u0679 \u06a9\u0627 \u0627\u0633\u062a\u0639\u0645\u0627\u0644 \u0645\u0644\u06d2 \u06af\u0627\u06d4 \u0631\u06cc\u0641\u0631\u06cc\u0634 \u0679\u0648\u06a9\u0646 \u0628\u0630\u0627\u062a \u062e\u0648\u062f \u0627\u06cc\u06a9 \u062f\u0646 \u062a\u06a9 \u0631\u06c1\u062a\u0627 \u06c1\u06d2\u060c \u0644\u06c1\u0630\u0627 \u0635\u0627\u0631\u0641\u06cc\u0646 \u06a9\u0648 \u06c1\u0631 24 \u06af\u06be\u0646\u0679\u06d2 \u0645\u06cc\u06ba \u0635\u0631\u0641 \u0627\u06cc\u06a9 \u0628\u0627\u0631 \u0645\u06a9\u0645\u0644 \u0637\u0648\u0631 \u067e\u0631 \u0644\u0627\u06af \u0627\u0646 \u06a9\u0631\u0646\u06d2 \u06a9\u06cc \u0636\u0631\u0648\u0631\u062a \u06c1\u0648\u062a\u06cc \u06c1\u06d2\u06d4<\/p>\n<p>\u0627\u06cc\u06a9 \u062d\u0642\u06cc\u0642\u06cc \u0627\u06cc\u067e\u0644\u06cc \u06a9\u06cc\u0634\u0646 \u0645\u06cc\u06ba\u060c \u0641\u0631\u0646\u0679 \u0627\u06cc\u0646\u0688 \u06a9\u0644\u0627\u0626\u0646\u0679 \u0627\u0633\u06d2 \u062e\u0648\u062f \u0628\u062e\u0648\u062f \u06c1\u06cc\u0646\u0688\u0644 \u06a9\u0631\u062a\u0627 \u06c1\u06d2\u06d4 API \u06a9\u0627\u0644 <code>401<\/code>\u06a9\u0644\u0627\u0626\u0646\u0679 \u0627\u0633\u06d2 \u067e\u06a9\u0691\u062a\u0627 \u06c1\u06d2\u060c \u0646\u06cc\u0627 \u0631\u0633\u0627\u0626\u06cc \u0679\u0648\u06a9\u0646 \u062d\u0627\u0635\u0644 \u06a9\u0631\u0646\u06d2 \u06a9\u06d2 \u0644\u06cc\u06d2 \u0631\u06cc\u0641\u0631\u06cc\u0634 \u0679\u0648\u06a9\u0646 \u0628\u06be\u06cc\u062c\u062a\u0627 \u06c1\u06d2\u060c \u0627\u0648\u0631 \u067e\u06be\u0631 \u0627\u0635\u0644 \u062f\u0631\u062e\u0648\u0627\u0633\u062a \u067e\u0631 \u062f\u0648\u0628\u0627\u0631\u06c1 \u06a9\u0648\u0634\u0634 \u06a9\u0631\u062a\u0627 \u06c1\u06d2\u06d4 \u06cc\u06c1 \u0633\u0628 \u06a9\u0686\u06be \u0635\u0627\u0631\u0641 \u06a9\u06d2 \u0646\u0648\u0679\u0633 \u06a9\u06cc\u06d2 \u0628\u063a\u06cc\u0631 \u06c1\u0648\u062a\u0627 \u06c1\u06d2\u06d4<\/p>\n<p>\u0633\u06cc\u0688\u0648\u06a9\u0648\u0688 \u0645\u06cc\u06ba\u060c \u0645\u062a\u0639\u0644\u0642\u06c1 \u0628\u06c1\u0627\u0624 \u0645\u0646\u062f\u0631\u062c\u06c1 \u0630\u06cc\u0644 \u06c1\u06d2:<\/p>\n<ol>\n<li>\n<p>\u06a9\u0644\u0627\u0626\u0646\u0679 \u0631\u0633\u0627\u0626\u06cc \u0679\u0648\u06a9\u0646 \u06a9\u06d2 \u0633\u0627\u062a\u06be \u0627\u06cc\u06a9 \u062f\u0631\u062e\u0648\u0627\u0633\u062a \u0628\u06be\u06cc\u062c\u062a\u0627 \u06c1\u06d2\u06d4<\/p>\n<\/li>\n<li>\n<p>\u0633\u0631\u0648\u0631 401 (\u0679\u0648\u06a9\u0646 \u06a9\u06cc \u0645\u06cc\u0639\u0627\u062f \u062e\u062a\u0645) \u06a9\u06d2 \u0633\u0627\u062a\u06be \u062c\u0648\u0627\u0628 \u062f\u06cc\u062a\u0627 \u06c1\u06d2\u06d4<\/p>\n<\/li>\n<li>\n<p>\u06a9\u0644\u0627\u0626\u0646\u0679 \/api\/token\/refresh\/ \u06a9\u0648 \u0631\u06cc\u0641\u0631\u06cc\u0634 \u0679\u0648\u06a9\u0646 \u0628\u06be\u06cc\u062c\u062a\u0627 \u06c1\u06d2\u06d4<\/p>\n<\/li>\n<li>\n<p>\u0633\u0631\u0648\u0631 \u0627\u06cc\u06a9 \u0646\u0626\u06d2 \u0631\u0633\u0627\u0626\u06cc \u0679\u0648\u06a9\u0646 \u06a9\u06d2 \u0633\u0627\u062a\u06be \u062c\u0648\u0627\u0628 \u062f\u06cc\u062a\u0627 \u06c1\u06d2\u06d4<\/p>\n<\/li>\n<li>\n<p>\u06a9\u0644\u0627\u0626\u0646\u0679 \u0646\u0626\u06d2 \u0631\u0633\u0627\u0626\u06cc \u0679\u0648\u06a9\u0646 \u06a9\u0627 \u0627\u0633\u062a\u0639\u0645\u0627\u0644 \u06a9\u0631\u062a\u06d2 \u06c1\u0648\u0626\u06d2 \u0627\u0635\u0644 \u062f\u0631\u062e\u0648\u0627\u0633\u062a \u06a9\u06cc \u062f\u0648\u0628\u0627\u0631\u06c1 \u06a9\u0648\u0634\u0634 \u06a9\u0631\u062a\u0627 \u06c1\u06d2\u06d4<\/p>\n<\/li>\n<li>\n<p>\u0633\u0631\u0648\u0631 \u0688\u06cc\u0679\u0627 \u06a9\u06d2 \u0633\u0627\u062a\u06be \u062c\u0648\u0627\u0628 \u062f\u06cc\u062a\u0627 \u06c1\u06d2\u06d4<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/umang.pk\/wp-content\/uploads\/2026\/05\/1778014400_181_\u062c\u06cc\u0646\u06af\u0648-\u0631\u06cc\u0633\u0679-\u0641\u0631\u06cc\u0645-\u0648\u0631\u06a9-\u0627\u0648\u0631-\u0633\u0627\u062f\u06c1-\u062c\u06d2-\u0688\u0628\u0644\u06cc\u0648-\u0679\u06cc-\u06a9\u0627.png\" alt=\"\u062a\u0635\u0648\u06cc\u0631 \u067e\u0631\u0627\u0646\u06d2 \u0679\u0648\u06a9\u0646 \u06a9\u06cc \u0645\u06cc\u0639\u0627\u062f \u062e\u062a\u0645 \u06c1\u0648\u0646\u06d2 \u06a9\u06d2 \u0628\u0639\u062f \u0646\u06cc\u0627 \u0679\u0648\u06a9\u0646 \u062d\u0627\u0635\u0644 \u06a9\u0631\u0646\u06d2 \u06a9\u06d2 \u0627\u0642\u062f\u0627\u0645\u0627\u062a \u062f\u06a9\u06be\u0627\u062a\u06cc \u06c1\u06d2\u06d4\" style=\"display:block;margin:0 auto\" width=\"600\" height=\"400\" loading=\"lazy\" title=\"\"><\/li>\n<\/ol>\n<p>\u0627\u06af\u0631 \u0631\u06cc\u0641\u0631\u06cc\u0634 \u0679\u0648\u06a9\u0646 \u06a9\u06cc \u0645\u06cc\u0639\u0627\u062f \u062e\u062a\u0645 \u06c1\u0648 \u06af\u0626\u06cc \u06c1\u06d2 (\u0622\u067e \u06a9\u06cc \u062a\u0631\u062a\u06cc\u0628 \u0645\u06cc\u06ba 24 \u06af\u06be\u0646\u0679\u06d2 \u06a9\u06d2 \u0628\u0639\u062f)\u060c \u067e\u06be\u0631 \u0645\u0631\u062d\u0644\u06c1 4 \u0645\u06cc\u06ba \u0628\u06be\u06cc <code>401<\/code>. \u0627\u0633 \u0645\u0642\u0627\u0645 \u067e\u0631\u060c \u0635\u0627\u0631\u0641 \u06a9\u0648 \u0627\u067e\u0646\u0627 \u0635\u0627\u0631\u0641 \u0646\u0627\u0645 \u0627\u0648\u0631 \u067e\u0627\u0633 \u0648\u0631\u0688 \u0627\u0633\u062a\u0639\u0645\u0627\u0644 \u06a9\u0631\u06a9\u06d2 \u062f\u0648\u0628\u0627\u0631\u06c1 \u0644\u0627\u06af \u0627\u0646 \u06a9\u0631\u0646\u0627 \u06c1\u0648\u06af\u0627\u06d4 \u06cc\u06c1 \u0688\u06cc\u0632\u0627\u0626\u0646 \u06a9\u06d2 \u0644\u062d\u0627\u0638 \u0633\u06d2 \u06c1\u06d2\u06d4 \u0627\u0633 \u06a9\u0627 \u0645\u0637\u0644\u0628 \u06c1\u06d2 \u06a9\u06c1 \u0686\u0648\u0631\u06cc \u0634\u062f\u06c1 \u0631\u06cc\u0641\u0631\u06cc\u0634 \u0679\u0648\u06a9\u0646 \u06a9\u06cc \u0628\u06be\u06cc \u0645\u062d\u062f\u0648\u062f \u0645\u0641\u06cc\u062f \u0632\u0646\u062f\u06af\u06cc \u06c1\u0648\u062a\u06cc \u06c1\u06d2\u06d4<\/p>\n<h2 id=\"heading-how-you-can-improve-this-project\">\u06c1\u0645 \u0627\u0633 \u0645\u0646\u0635\u0648\u0628\u06d2 \u06a9\u0648 \u06a9\u06cc\u0633\u06d2 \u0628\u06c1\u062a\u0631 \u0628\u0646\u0627 \u0633\u06a9\u062a\u06d2 \u06c1\u06cc\u06ba\u061f<\/h2>\n<p>\u06cc\u06c1 API \u0641\u0639\u0627\u0644 \u0627\u0648\u0631 \u0645\u062d\u0641\u0648\u0638 \u06c1\u06d2\u060c \u0644\u06cc\u06a9\u0646 \u0627\u0633 \u067e\u0631 \u062a\u0639\u0645\u06cc\u0631 \u06a9\u0631\u0646\u06d2 \u06a9\u06d2 \u0644\u06cc\u06d2 \u06a9\u0627\u0641\u06cc \u06af\u0646\u062c\u0627\u0626\u0634 \u06c1\u06d2\u06d4 \u06cc\u06c1\u0627\u06ba \u06a9\u0686\u06be \u0631\u06c1\u0646\u0645\u0627 \u062e\u0637\u0648\u0637 \u06c1\u06cc\u06ba \u062c\u0648 \u0622\u067e \u0644\u06d2 \u0633\u06a9\u062a\u06d2 \u06c1\u06cc\u06ba:<\/p>\n<ol>\n<li>\n<p><strong>\u062a\u0644\u0627\u0634 \u0627\u0648\u0631 \u0641\u0644\u0679\u0631\u0646\u06af \u0634\u0627\u0645\u0644 \u06a9\u0631\u06cc\u06ba\u06d4<\/strong> \u0635\u0627\u0631\u0641 \u0639\u0646\u0648\u0627\u0646 \u06cc\u0627 \u0628\u0627\u0688\u06cc \u0679\u06cc\u06a9\u0633\u0679 \u06a9\u06d2 \u0630\u0631\u06cc\u0639\u06c1 \u0646\u0648\u0679 \u062a\u0644\u0627\u0634 \u06a9\u0631\u0633\u06a9\u062a\u06d2 \u06c1\u06cc\u06ba\u06d4 DRF \u06a9\u06d2 SearchFilter \u0627\u0648\u0631 django-filter \u06a9\u0627 \u0627\u0633\u062a\u0639\u0645\u0627\u0644 \u06a9\u0631\u062a\u06d2 \u06c1\u0648\u0626\u06d2\u060c \u0622\u067e \u062f\u0631\u062c \u0630\u06cc\u0644 \u0627\u0633\u062a\u0641\u0633\u0627\u0631 \u06a9\u06d2 \u067e\u06cc\u0631\u0627\u0645\u06cc\u0679\u0631\u0632 \u06a9\u0648 \u0634\u0627\u0645\u0644 \u06a9\u0631 \u0633\u06a9\u062a\u06d2 \u06c1\u06cc\u06ba: <code>?search=meeting<\/code> \u0646\u0648\u0679 \u0644\u0633\u0679 \u0627\u06cc\u0646\u0688 \u067e\u0648\u0627\u0626\u0646\u0679 \u067e\u0631 \u062c\u0627\u0626\u06cc\u06ba\u06d4<\/p>\n<\/li>\n<li>\n<p><strong>\u0632\u0645\u0631\u06d2 \u06cc\u0627 \u0679\u06cc\u06af\u0632 \u0634\u0627\u0645\u0644 \u06a9\u0631\u06cc\u06ba\u06d4<\/strong> \u0628\u0646\u0627\u0646\u0627 <code>Category<\/code> \u0627\u06cc\u06a9 \u0645\u0627\u0688\u0644 \u0634\u0627\u0645\u0644 \u06a9\u0631\u06cc\u06ba <strong>\u063a\u06cc\u0631 \u0645\u0644\u06a9\u06cc \u06a9\u0644\u06cc\u062f<\/strong> \u06a9\u0648 <code>Note<\/code>\u0645\u062a\u0628\u0627\u062f\u0644 \u0637\u0648\u0631 \u067e\u0631\u060c \u0679\u06cc\u06af\u0632 \u0645\u06cc\u06ba \u0645\u062a\u0639\u062f\u062f \u0633\u06d2 \u06a9\u0626\u06cc \u0631\u0634\u062a\u06c1 \u0627\u0633\u062a\u0639\u0645\u0627\u0644 \u06a9\u0631\u06cc\u06ba\u06d4 \u06cc\u06c1 \u0635\u0627\u0631\u0641\u06cc\u0646 \u06a9\u0648 \u0627\u067e\u0646\u06d2 \u0646\u0648\u0679\u0648\u06ba \u06a9\u0648 \u062a\u0631\u062a\u06cc\u0628 \u062f\u06cc\u0646\u06d2 \u0627\u0648\u0631 \u0632\u0645\u0631\u06c1 \u06a9\u06d2 \u0644\u062d\u0627\u0638 \u0633\u06d2 \u0641\u0644\u0679\u0631 \u06a9\u0631\u0646\u06d2 \u06a9\u06cc \u0627\u062c\u0627\u0632\u062a \u062f\u06cc\u062a\u0627 \u06c1\u06d2\u06d4<\/p>\n<\/li>\n<li>\n<p><strong>\u0635\u0641\u062d\u06c1 \u0628\u0646\u062f\u06cc \u0634\u0627\u0645\u0644 \u06a9\u0631\u06cc\u06ba\u06d4<\/strong> \u0627\u06af\u0631 \u06a9\u0633\u06cc \u0635\u0627\u0631\u0641 \u06a9\u06d2 \u067e\u0627\u0633 \u0633\u06cc\u0646\u06a9\u0691\u0648\u06ba \u0646\u0648\u0679 \u06c1\u06cc\u06ba \u062a\u0648 \u0627\u0646 \u0633\u0628 \u06a9\u0648 \u0627\u06cc\u06a9 \u06c1\u06cc \u062c\u0648\u0627\u0628 \u0645\u06cc\u06ba \u0648\u0627\u067e\u0633 \u06a9\u0631\u0646\u0627 \u0633\u0633\u062a \u06c1\u0648 \u062c\u0627\u062a\u0627 \u06c1\u06d2\u06d4 DRF \u0645\u06cc\u06ba \u0635\u0641\u062d\u06c1 \u0628\u0646\u062f\u06cc \u06a9\u06cc \u0627\u06cc\u06a9 \u0628\u0644\u0679 \u0627\u0646 \u06a9\u0644\u0627\u0633 \u06c1\u06d2 \u062c\u0648 10 \u0635\u0641\u062d\u0627\u062a\u060c 20 \u0635\u0641\u062d\u0627\u062a \u06cc\u0627 \u062c\u0633 \u0633\u0627\u0626\u0632 \u06a9\u06d2 \u0628\u06be\u06cc \u0622\u067e \u0686\u0627\u06c1\u06cc\u06ba \u0646\u0648\u0679 \u0648\u0627\u067e\u0633 \u06a9\u0631 \u0633\u06a9\u062a\u06cc \u06c1\u06d2\u06d4<\/p>\n<\/li>\n<li>\n<p><strong>\u067e\u0631\u0648\u0688\u06a9\u0634\u0646 \u0633\u0631\u0648\u0631\u0632 \u067e\u0631 \u062a\u0639\u06cc\u0646\u0627\u062a \u06a9\u0631\u06cc\u06ba\u06d4<\/strong> API \u0641\u06cc \u0627\u0644\u062d\u0627\u0644 \u0622\u067e \u06a9\u06cc \u0645\u0642\u0627\u0645\u06cc \u0645\u0634\u06cc\u0646 \u067e\u0631 \u0686\u0644\u062a\u0627 \u06c1\u06d2\u06d4 \u06a9\u06c1\u06cc\u06ba \u0628\u06be\u06cc \u0631\u0633\u0627\u0626\u06cc \u06a9\u06d2 \u0644\u06cc\u06d2 PythonAnywhere\u060c Railway\u060c \u06cc\u0627 Render \u062c\u06cc\u0633\u06d2 \u067e\u0644\u06cc\u0679 \u0641\u0627\u0631\u0645\u0632 \u067e\u0631 \u062a\u0639\u06cc\u0646\u0627\u062a \u06a9\u0631\u06cc\u06ba\u06d4 \u0622\u067e \u06a9\u0648 \u0627\u06cc\u06a9 \u067e\u0631\u0648\u0688\u06a9\u0634\u0646 \u0688\u06cc\u0679\u0627 \u0628\u06cc\u0633 (\u0645\u062b\u0644\u0627\u064b PostgreSQL) \u062a\u0631\u062a\u06cc\u0628 \u062f\u06cc\u0646\u06d2 \u06a9\u06cc \u0636\u0631\u0648\u0631\u062a \u06c1\u06d2\u060c \u0627\u06cc\u06a9 \u0645\u062d\u0641\u0648\u0638 SECRET_KEY \u0633\u06cc\u0679 \u06a9\u0631\u06cc\u06ba\u060c \u0627\u0648\u0631 HTTPS \u06a9\u06d2 \u067e\u06cc\u0686\u06be\u06d2 \u0627\u067e\u0646\u06cc \u062f\u0631\u062e\u0648\u0627\u0633\u062a \u067e\u06cc\u0634 \u06a9\u0631\u06cc\u06ba\u06d4<\/p>\n<\/li>\n<li>\n<p><strong>\u0627\u06cc\u06a9 \u0641\u0631\u0646\u0679 \u0627\u06cc\u0646\u0688 \u0628\u0646\u0627\u0626\u06cc\u06ba\u06d4<\/strong> \u0627\u067e\u0646\u06d2 React\u060c Next.js\u060c \u06cc\u0627 Vue.js \u0641\u0631\u0646\u0679 \u0627\u06cc\u0646\u0688 \u06a9\u0648 \u0627\u0633 API \u0633\u06d2 \u0645\u0631\u0628\u0648\u0637 \u06a9\u0631\u06cc\u06ba\u06d4 JWT \u06a9\u0648 \u06a9\u0644\u0627\u0626\u0646\u0679 \u067e\u0631 \u0627\u0633\u0679\u0648\u0631 \u06a9\u0631\u06cc\u06ba \u0627\u0648\u0631 \u0635\u0627\u0631\u0641\u06cc\u0646 \u06a9\u0648 \u0628\u063a\u06cc\u0631 \u06a9\u0633\u06cc \u0631\u06a9\u0627\u0648\u0679 \u06a9\u06d2 \u0644\u0627\u06af \u0627\u0646 \u0631\u06a9\u06be\u0646\u06d2 \u06a9\u06d2 \u0644\u06cc\u06d2 \u0679\u0648\u06a9\u0646 \u0631\u06cc\u0641\u0631\u06cc\u0634 \u0641\u0644\u0648 \u0646\u0627\u0641\u0630 \u06a9\u0631\u06cc\u06ba\u06d4<\/p>\n<\/li>\n<li>\n<p><strong>\u0679\u0648\u06a9\u0646 \u0628\u0644\u06cc\u06a9 \u0644\u0633\u0679 \u0634\u0627\u0645\u0644 \u06a9\u0631\u06cc\u06ba\u06d4<\/strong> SimpleJWT \u0679\u0648\u06a9\u0646 \u0628\u0644\u06cc\u06a9 \u0644\u0633\u0679\u0646\u06af \u06a9\u06cc \u062d\u0645\u0627\u06cc\u062a \u06a9\u0631\u062a\u0627 \u06c1\u06d2\u060c \u062c\u0648 \u0635\u0627\u0631\u0641 \u06a9\u06d2 \u0644\u0627\u06af \u0622\u0624\u0679 \u06c1\u0648\u0646\u06d2 \u067e\u0631 \u0631\u06cc\u0641\u0631\u06cc\u0634 \u0679\u0648\u06a9\u0646 \u06a9\u0648 \u0628\u0627\u0637\u0644 \u06a9\u0631 \u0633\u06a9\u062a\u0627 \u06c1\u06d2\u06d4 \u0627\u0633 \u06a9\u06d2 \u0628\u063a\u06cc\u0631\u060c \u0631\u06cc\u0641\u0631\u06cc\u0634 \u0679\u0648\u06a9\u0646 \u0627\u0633 \u0648\u0642\u062a \u062a\u06a9 \u062f\u0631\u0633\u062a \u0631\u06c1\u06d2 \u06af\u0627 \u062c\u0628 \u062a\u06a9 \u06a9\u06c1 \u0627\u0633 \u06a9\u06cc \u0645\u06cc\u0639\u0627\u062f \u062e\u062a\u0645 \u0646\u06c1 \u06c1\u0648 \u062c\u0627\u0626\u06d2\u060c \u0635\u0627\u0631\u0641 \u06a9\u06d2 &quot;\u0644\u0627\u06af \u0622\u0624\u0679&#8221; \u06c1\u0648\u0646\u06d2 \u06a9\u06d2 \u0628\u0639\u062f \u0628\u06be\u06cc\u06d4<\/p>\n<\/li>\n<\/ol>\n<p>\u0627\u0646 \u0645\u06cc\u06ba \u0633\u06d2 \u06c1\u0631 \u0627\u06cc\u06a9 \u0627\u0636\u0627\u0641\u06c1 \u0627\u0646 \u0646\u0645\u0648\u0646\u0648\u06ba \u067e\u0631 \u0628\u0646\u0627\u062a\u0627 \u06c1\u06d2 \u062c\u0648 \u0622\u067e \u067e\u06c1\u0644\u06d2 \u06c1\u06cc \u0633\u06cc\u06a9\u06be \u0686\u06a9\u06d2 \u06c1\u06cc\u06ba \u0627\u0648\u0631 Django\u060c DRF\u060c \u0627\u0648\u0631 API \u0688\u06cc\u0632\u0627\u0626\u0646 \u06a9\u06d2 \u0628\u0627\u0631\u06d2 \u0645\u06cc\u06ba \u0622\u067e \u06a9\u06cc \u0633\u0645\u062c\u06be \u06a9\u0648 \u0645\u0632\u06cc\u062f \u06af\u06c1\u0631\u0627 \u06a9\u0631\u062a\u0627 \u06c1\u06d2\u06d4<\/p>\n<h2 id=\"heading-conclusion\">\u0646\u062a\u06cc\u062c\u06c1<\/h2>\n<p>\u06c1\u0645 \u0646\u06d2 Django\u060c Django REST Framework\u060c \u0627\u0648\u0631 SimpleJWT \u06a9\u0627 \u0627\u0633\u062a\u0639\u0645\u0627\u0644 \u06a9\u0631\u062a\u06d2 \u06c1\u0648\u0626\u06d2 \u0627\u06cc\u06a9 \u0645\u06a9\u0645\u0644 \u062e\u0635\u0648\u0635\u06cc\u0627\u062a \u0648\u0627\u0644\u0627\u060c \u0645\u062d\u0641\u0648\u0638 \u0646\u0648\u0679 \u0644\u06cc\u0646\u06d2 \u0648\u0627\u0644\u0627 API \u0628\u0646\u0627\u06cc\u0627 \u06c1\u06d2\u06d4 \u0631\u0627\u0633\u062a\u06d2 \u0645\u06cc\u06ba\u060c \u0645\u06cc\u06ba \u0646\u06d2 \u06a9\u0686\u06be \u0628\u0646\u06cc\u0627\u062f\u06cc \u062a\u0635\u0648\u0631\u0627\u062a \u0633\u06cc\u06a9\u06be\u06d2 \u062c\u0648 \u0645\u0633\u062a\u0642\u0628\u0644 \u0645\u06cc\u06ba \u0645\u06cc\u0631\u06d2 \u0628\u0646\u0627\u0626\u06d2 \u06c1\u0648\u0626\u06d2 \u06a9\u0633\u06cc \u0628\u06be\u06cc API \u067e\u0631 \u0644\u0627\u06af\u0648 \u06c1\u0648\u06ba \u06af\u06d2\u06d4<\/p>\n<p>\u06c1\u0645 \u0646\u06d2 \u0627\u06cc\u06a9 \u062d\u0633\u0628 \u0636\u0631\u0648\u0631\u062a \u0635\u0627\u0631\u0641 \u0645\u0627\u0688\u0644 \u06a9\u06d2 \u0633\u0627\u062a\u06be \u0622\u063a\u0627\u0632 \u06a9\u06cc\u0627\u06d4 \u0634\u0631\u0648\u0639 \u0645\u06cc\u06ba \u0686\u06be\u0648\u0679\u06d2 \u0641\u06cc\u0635\u0644\u06d2 \u0628\u0639\u062f \u0645\u06cc\u06ba \u0645\u0634\u06a9\u0644 \u06c1\u062c\u0631\u062a \u0633\u06d2 \u0628\u0686\u0646\u06d2 \u0645\u06cc\u06ba \u0622\u067e \u06a9\u06cc \u0645\u062f\u062f \u06a9\u0631 \u0633\u06a9\u062a\u06d2 \u06c1\u06cc\u06ba\u06d4 \u06c1\u0645 \u0646\u06d2 JWT \u062a\u0648\u062b\u06cc\u0642 \u06a9\u0648 \u062a\u0631\u062a\u06cc\u0628 \u062f\u06cc\u0627 \u06c1\u06d2 \u062a\u0627\u06a9\u06c1 \u06c1\u0645\u0627\u0631\u0627 API \u0627\u06cc\u06a9 \u0641\u0631\u0646\u0679 \u0627\u06cc\u0646\u0688 \u0641\u0631\u0627\u06c1\u0645 \u06a9\u0631 \u0633\u06a9\u06d2 \u062c\u0648 \u0645\u0648\u0628\u0627\u0626\u0644 \u06a9\u0644\u0627\u0626\u0646\u0679\u0633 \u0633\u06d2 \u0627\u0644\u06af \u06c1\u0648 \u062c\u0648 \u0633\u06cc\u0634\u0646 \u06a9\u0648\u06a9\u06cc\u0632 \u067e\u0631 \u0627\u0646\u062d\u0635\u0627\u0631 \u0646\u06c1\u06cc\u06ba \u06a9\u0631 \u0633\u06a9\u062a\u06d2\u06d4<\/p>\n<p>\u06c1\u0645 \u0646\u06d2 \u0627\u06cc\u06a9 \u0633\u06cc\u0631\u06cc\u0644\u0627\u0626\u0632\u0631 \u0628\u0646\u0627\u06cc\u0627 \u06c1\u06d2 \u062c\u0648 \u067e\u0627\u0633 \u0648\u0631\u0688 \u06a9\u0648 \u0635\u0631\u0641 \u0644\u06a9\u06be\u0646\u06d2 \u0627\u0648\u0631 \u0645\u0644\u06a9\u06cc\u062a \u06a9\u0648 \u0635\u0631\u0641 \u067e\u0691\u06be\u0646\u06d2 \u06a9\u06d2 \u0644\u06cc\u06d2 \u0631\u06a9\u06be \u06a9\u0631 \u062d\u0633\u0627\u0633 \u0688\u06cc\u0679\u0627 \u06a9\u06cc \u062d\u0641\u0627\u0638\u062a \u06a9\u0631\u062a\u0627 \u06c1\u06d2\u06d4 \u0633\u0628 \u0633\u06d2 \u0627\u06c1\u0645 \u0628\u0627\u062a\u060c \u06c1\u0645 \u0646\u06d2 \u062f\u0627\u0626\u0631\u06c1 \u0646\u0638\u0631 \u06a9\u0648 \u0646\u0627\u0641\u0630 \u06a9\u06cc\u0627 \u062a\u0627\u06a9\u06c1 \u06c1\u0631 \u0635\u0627\u0631\u0641 \u06a9\u0627 \u0688\u06cc\u0679\u0627 \u062f\u06cc\u06af\u0631 \u062a\u0645\u0627\u0645 \u0635\u0627\u0631\u0641\u06cc\u0646 \u06a9\u06d2 \u0688\u06cc\u0679\u0627 \u0633\u06d2 \u0645\u06a9\u0645\u0644 \u0637\u0648\u0631 \u067e\u0631 \u0627\u0644\u06af \u06c1\u0648 \u062c\u0627\u0626\u06d2\u06d4<\/p>\n<p>\u06cc\u06c1\u0627\u06ba \u067e\u0631 \u0639\u0645\u0644 \u06a9\u06cc\u06d2 \u062c\u0627\u0646\u06d2 \u0648\u0627\u0644\u06d2 \u067e\u06cc\u0679\u0631\u0646 &#8211; \u062f\u0648\u0628\u0627\u0631\u06c1 \u062a\u0639\u0631\u06cc\u0641 <code>get_queryset<\/code> \u0645\u0648\u062c\u0648\u062f\u06c1 \u0635\u0627\u0631\u0641 \u06a9\u06cc \u0628\u0646\u06cc\u0627\u062f \u067e\u0631 \u0641\u0644\u0679\u0631 \u0627\u0648\u0631 \u0627\u0648\u0648\u0631 \u0631\u0627\u0626\u0688 \u06a9\u0631\u06cc\u06ba\u06d4 <code>perform_create<\/code> \u062e\u0648\u062f \u0628\u062e\u0648\u062f \u0645\u0644\u06a9\u06cc\u062a \u062a\u0641\u0648\u06cc\u0636 \u06a9\u0631\u06cc\u06ba \u0627\u0648\u0631 <code>read-only<\/code> \u0688\u06cc\u0679\u0627 \u0679\u0645\u067e\u0631\u0646\u06af \u06a9\u0648 \u0631\u0648\u06a9\u0646\u06d2 \u06a9\u06d2 \u0644\u06cc\u06d2 \u0627\u0633\u062a\u0639\u0645\u0627\u0644 \u06a9\u06cc\u06d2 \u062c\u0627\u0646\u06d2 \u0648\u0627\u0644\u06d2 \u0641\u06cc\u0644\u0688\u0632 \u0648\u06c1\u06cc \u067e\u06cc\u0679\u0631\u0646 \u06c1\u06cc\u06ba \u062c\u0648 \u067e\u0631\u0648\u0688\u06a9\u0634\u0646 APIs \u0645\u06cc\u06ba \u0627\u0633\u062a\u0639\u0645\u0627\u0644 \u06c1\u0648\u062a\u06d2 \u06c1\u06cc\u06ba \u062c\u0648 \u062d\u0642\u06cc\u0642\u06cc \u0635\u0627\u0631\u0641 \u06a9\u06d2 \u0688\u06cc\u0679\u0627 \u067e\u0631 \u06a9\u0627\u0631\u0631\u0648\u0627\u0626\u06cc \u06a9\u0631\u062a\u06d2 \u06c1\u06cc\u06ba\u06d4<\/p>\n<p>\u062c\u0648 \u06a9\u0686\u06be \u0622\u067e \u0646\u06d2 \u0633\u06cc\u06a9\u06be\u0627 \u06c1\u06d2 \u0627\u0633\u06d2 \u0645\u0636\u0628\u0648\u0637 \u06a9\u0631\u0646\u06d2 \u06a9\u0627 \u0628\u06c1\u062a\u0631\u06cc\u0646 \u0637\u0631\u06cc\u0642\u06c1 \u06cc\u06c1 \u06c1\u06d2 \u06a9\u06c1 \u0627\u0633 \u067e\u0631 \u062a\u0639\u0645\u06cc\u0631 \u06a9\u0631\u062a\u06d2 \u0631\u06c1\u06cc\u06ba\u06d4 \u062a\u0644\u0627\u0634 \u0627\u0648\u0631 \u0641\u0644\u0679\u0631\u0646\u06af \u06a9\u0648 \u0634\u0627\u0645\u0644 \u06a9\u0631\u0646\u06d2 \u06a9\u06cc \u06a9\u0648\u0634\u0634 \u06a9\u0631\u06cc\u06ba\u060c \u0627\u06cc\u06a9 React \u0641\u0631\u0646\u0679 \u0627\u06cc\u0646\u0688 \u0628\u0646\u0627\u0626\u06cc\u06ba \u062c\u0648 \u0627\u0633 API \u06a9\u0648 \u0627\u0633\u062a\u0639\u0645\u0627\u0644 \u06a9\u0631\u06d2\u060c \u06cc\u0627 \u0645\u06a9\u0645\u0644 \u0637\u0648\u0631 \u067e\u0631 \u0646\u06cc\u0627 \u067e\u0631\u0648\u062c\u06cc\u06a9\u0679 \u0634\u0631\u0648\u0639 \u06a9\u0631\u06cc\u06ba\u060c \u062c\u06cc\u0633\u06d2 \u06a9\u06c1 \u0679\u0627\u0633\u06a9 \u0645\u06cc\u0646\u06cc\u062c\u0631\u060c \u062c\u0631\u0646\u0644 \u0627\u06cc\u067e\u060c \u06cc\u0627 \u0628\u06a9 \u0645\u0627\u0631\u06a9 API \u062c\u0648 \u0627\u06cc\u06a9 \u062c\u06cc\u0633\u06d2 JWT \u0627\u0648\u0631 \u0627\u0633\u06a9\u0648\u067e\u0646\u06af \u067e\u06cc\u0679\u0631\u0646 \u06a9\u0627 \u0627\u0633\u062a\u0639\u0645\u0627\u0644 \u06a9\u0631\u062a\u0627 \u06c1\u06d2\u06d4 \u0628\u0646\u06cc\u0627\u062f\u06cc \u0648\u0631\u06a9 \u0641\u0644\u0648 \u0648\u06c1\u06cc \u0631\u06c1\u062a\u0627 \u06c1\u06d2\u06d4 \u0635\u0631\u0641 \u0645\u0627\u0688\u0644 \u0627\u0648\u0631 \u06a9\u0627\u0631\u0648\u0628\u0627\u0631\u06cc \u0645\u0646\u0637\u0642 \u0628\u062f\u0644\u062a\u06d2 \u06c1\u06cc\u06ba\u06d4<\/p>\n<\/p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u0627\u06af\u0631 \u0622\u067e \u0646\u06d2 \u0627\u06cc\u06a9 Django API \u0628\u0646\u0627\u06cc\u0627 \u06c1\u06d2 \u0627\u0648\u0631 \u06cc\u06c1 \u0633\u0648\u0686 \u0631\u06c1\u06d2 \u06c1\u06cc\u06ba \u06a9\u06c1 \u062a\u0635\u062f\u06cc\u0642 \u06a9\u06cc\u0633\u06d2 \u0634\u0627\u0645\u0644 \u06a9\u06cc \u062c\u0627\u0626\u06d2 \u062a\u0627\u06a9\u06c1 \u06cc\u06c1 \u06cc\u0642\u06cc\u0646\u06cc \u0628\u0646\u0627\u06cc\u0627 \u062c\u0627 \u0633\u06a9\u06d2 \u06a9\u06c1 \u06c1\u0631 \u0635\u0627\u0631\u0641 \u0635\u0631\u0641 \u0627\u067e\u0646\u06d2 \u0688\u06cc\u0679\u0627 \u062a\u06a9 \u0631\u0633\u0627\u0626\u06cc \u062d\u0627\u0635\u0644 \u06a9\u0631 \u0633\u06a9\u062a\u0627 \u06c1\u06d2\u060c \u0622\u067e \u0635\u062d\u06cc\u062d \u062c\u06af\u06c1 \u067e\u0631 \u067e\u06c1\u0646\u0686\u06d2 \u06c1\u06cc\u06ba\u06d4 \u0632\u06cc\u0627\u062f\u06c1 \u062a\u0631 \u062c\u06cc\u0627\u0646\u06af\u0648 \u0679\u06cc\u0648\u0679\u0648\u0631\u06cc\u0644\u0632 \u0633\u06cc\u0634\u0646 \u067e\u0631 \u0645\u0628\u0646\u06cc \u062a\u0648\u062b\u06cc\u0642 \u0633\u06a9\u06be\u0627\u062a\u06d2 \u06c1\u06cc\u06ba\u06d4 \u062c\u0628 \u0641\u0631\u0646\u0679 [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":23535,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[1],"tags":[],"class_list":["post-23534","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog"],"_links":{"self":[{"href":"https:\/\/umang.pk\/en_us\/wp-json\/wp\/v2\/posts\/23534","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/umang.pk\/en_us\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/umang.pk\/en_us\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/umang.pk\/en_us\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/umang.pk\/en_us\/wp-json\/wp\/v2\/comments?post=23534"}],"version-history":[{"count":1,"href":"https:\/\/umang.pk\/en_us\/wp-json\/wp\/v2\/posts\/23534\/revisions"}],"predecessor-version":[{"id":23536,"href":"https:\/\/umang.pk\/en_us\/wp-json\/wp\/v2\/posts\/23534\/revisions\/23536"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/umang.pk\/en_us\/wp-json\/wp\/v2\/media\/23535"}],"wp:attachment":[{"href":"https:\/\/umang.pk\/en_us\/wp-json\/wp\/v2\/media?parent=23534"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/umang.pk\/en_us\/wp-json\/wp\/v2\/categories?post=23534"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/umang.pk\/en_us\/wp-json\/wp\/v2\/tags?post=23534"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}