Giter VIP home page Giter VIP logo

django's Introduction

django

setup pip in IDE

pip install django

django-admin startproject mysite : TO CREATE NEW PROJECT

python manage.py runserver : TO RUN SERVER or LOCALHOST

python manage.py migrate

python manage.py startapp pages : TO create small module / app

Database connectivity https://www.youtube.com/channel/UC4sG9NWzpLX3rvYE9g3aAQw

  1. RUN xampp
  2. create database
  3. sudo pip insatll mysqlclient (if Environment error sudo apt install default-libmysqlclient-dev)

if we have issues with pip

These steps worked for me.

1- Uninstall the pip update from python.

2- Uninstall pip package from your Ubuntu.

3- Check that pip binary is not longer in your system.

python -m pip uninstall pip

apt remove python-pip

whereis pip

4- Download and install pip. (credits for VanDragt.com)

wget https://bootstrap.pypa.io/get-pip.py -O /tmp/get-pip.py

sudo python3 /tmp/get-pip.py

pip install --user pipenv

pip3 install --user pipenv

echo "PATH=$HOME/.local/bin:$PATH" >> ~/.profile

source ~/.profile

whereis pip

  1. python3 manage.py makemigrations
  2. python3 manage.py migrate

In Windows

pip install virtualenvwrapper-win

mkvirtualenv myproject

workon myproject

pip install django

Important URLS

Database connectivity https://www.youtube.com/channel/UC4sG9NWzpLX3rvYE9g3aAQw

tutorials https://data-flair.training/blogs/django-views/

Code : https://djangopackages.org

Best practices: two scoops of django

https://www.fullstackpython.com/django.html

https://www.pythoncheatsheet.org

Hosting: pythonanywhere.com

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.