Code Monkey home page Code Monkey logo

django_template's Introduction

Django Installation Process:

Installing pip using python3

sudo apt-get install python3-pip

Creating an virtual env using pip

sudo pip3 install virtualenv virtualenv venv source venv/bin/activate deactivate

Installing Django dependecies

pip install Django django-admin --version

Creating Django Project

django-admin startproject python manage.py runserver

Uninstall Django from separate environment

  • Go to current environment and activate it

pip uninstall django

  • Now uninstall virtual environment which is currently active after deactivating it deactivate

sudo rm -rf venv

To save installed version in rquirements.txt file

pip freeze > requirements.txt

To install required version present in requirements.txt file

pip install -r requirements.txt

How to Start/Create a new application

python manage.py startapp

How to Install Application in our Project after creating it

  • Creating application is not enough we have also to install application in our project
  • We install application in our project settings.py file, this is cumpulsory otherwise Application won't be recongnized by Django In Settings.py file : @code INSTALLED_APPS = [ django.contrib.admin,...., '<applicationName 1>' '<applicationName 2> ]

Migrations

python manage.py makemigrations

Migrate

python manage.py migrate

List down all migrations status

python manage.py showmigrations

create super user

python manage.py createsuperuser

django_template's People

Contributors

ajjaiswal-capri 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.