Giter Site home page Giter Site logo

django-template's Introduction

django-template

.vscode 資料夾

說明

主要統一一些設定,包含使用哪個自動排版的工具。

建立開發環境

Windows

py -3.10 -m venv .venv # django

Linux

python3.10 -m venv .venv

安裝套件

pip install -U pip # 更新 pip 版本
pip install -r requirements.txt # 下載套件

建立虛擬環境檔案

.env.example 複製成 .env,並更改內容。

本地端開發

跟 manage.py 檔案同一個位置

可以參考 .env.example` 檔案,再複製成 .env。

為什麼 DATABASE_URL 可以使用這種方式進行連線呢 ? 這是 django-environ 管理環境參數套件的其中一個使用方式。

你可以參考 https://django-environ.readthedocs.io/en/latest/types.html#environ-env-db-url 官方敘述的使用方式。

你也可以不使用 django-environ 的做法,你也可以直接至 backend/settings.pydefault 預設連線的資料庫連線資訊手動進行修改。

django-template's People

Contributors

chunyenc avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.