Skip to content

zumrudu-anka/django-blog-project

Repository files navigation

📰 Blog Project With Django

Installation

  • Clone the repo to your local machine git clone https://github.com/zumrudu-anka/django-blog-project.git
  • Go to the project folder
  • run python -m venv myvenv for create virtual environment which name is myvenv
  • run pip install -r requirements
  • Secret Key:

For Windows:

  • create env.bat file in the project directory
  • write set SECRET_KEY=yoursecretkey to this file
  • run env.bat

For Linux:

  • create .env file in the project directory
  • write SECRET_KEY=yoursecretkey to this file
  • run source .env

You can create new secret key:

  • run python manage.py shell and write this lines
  • from django.core.management.utils import get_random_secret_key
  • print(get_random_secret_key()) # copy the result and write to your env file.
  • exit() # to exit the shell.
  • run python manage.py makemigrations
  • run python manage.py migrate

Usage

  • run python manage.py runserver

Source

Mustafa Murat Coşkun - Sıfırdan İleri Seviyeye Python Kursu

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy