Skip to content

Katta loyihalar uchun .env ishlatgan holatda tayyor shablon Django_Jazzmin & Sqlite3 & Postgres & Static % Media barcha boshlangich sozlamalari bilan birga ++ server uchun ham o'zgarishlar mavjud

Notifications You must be signed in to change notification settings

foydamiztegsin/Django_Shablon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django Shablon

Installation(O'rnatish)

  • 1 - Loyihani klonlang (clone repo)
git clone https://github.com/foydamiztegsin/Django_Shablon
  • 2 - Virtual muhit yaratish va faollashtirish (create a virtual environment and activate)
python -m venv venv
venv\Scripts\activate  (windows uchun) yoki  source venv/bin/activate(unix-ga asoslangan tizimlar)
  • 3 - Loyiha papkasiga kiring (cd into project)
cd Django_Shablon
  • 4 - Bog'liqlarni o'rnating (Install dependencies)
pip3 install -r requirements.txt 
yoki
pip install -r requirements.txt
  • 5 - Atrof-muhit o'zgaruvchilarini o'rnating (Set your environment variables)
copy .env.exam .env       (windows uchun) yoki
.env.exam .env            (unix-ga asoslangan tizimlar)

.env o'zgaruvchilari:

SECRET_KEY      ==> Yangi loyiha yarating Djangoda settings.py filedan SECRET_KEY ni oling va shu yerga joylang
DEBUG=True      ==> Default
ALLOWED_HOSTS=* ==> Default
PostgreSQL database yarating unga user hamda passwordlarni ham joylashtiring
  • 6 - Ishga tushirish (Run)
python manage.py collectstatic
python manage.py migrate
python manage.py runserver
  • 7 - Loyihaga mustaqil davom etish: loyihaga ko'ra app yaratish
python manage.py startapp your_app_name

Mehnatimiz sizga foyda berayotgan bolsa GITHUB profilimizga obuna bo'ling va telegram kanalimizda reaksiyalarni qoldiring 👍

E'tiboringiz uchun rahmat Savollaringiz bo'lsa Telegram

About

Katta loyihalar uchun .env ishlatgan holatda tayyor shablon Django_Jazzmin & Sqlite3 & Postgres & Static % Media barcha boshlangich sozlamalari bilan birga ++ server uchun ham o'zgarishlar mavjud

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages