Skip to main content

Django start_up - Ready To Go


Meet Django 💖

Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design. Built by experienced developers, it takes care of much of the hassle of Web development, so you can focus on writing your app without needing to reinvent the wheel. It’s free and open source

Python is lovable by everyone.So django is the best choice for learning a new framework.And it is very easy to use.

Ready To Go 😀

-------------------------------------------------------------------------------------------------------------------------------
1) First have to create virtual environment ,By pip install virtualenv

Here pip is a de facto standard package-management system used to install and manage software packages written in Python.

In Bash terminal or cmd or powershell -
$ virtualenv .
$ source bin/activate


currently django version is 3.0.6


👊 confirmation.........................
make a src folder for input all file there .

start-project

$ django-admin.py startproject project_name .
N:B- (.) dot means current directory .
Make migrations
--------------------------------
we will talk about migrations in future
make sure by $ls command mange.py file  in this folder
$ python manage.py makemigrations
$ python manage.py migrate
$ python manage.py createsuperuser

Done✌
$ python manage.py runserver

If you have any problem fell free to email me -
sium.hossain@yahoo.com




Comments

Popular posts from this blog

Connect POSTgreSQL with Django

  First install all necessary step  $ sudo apt-get install python-pip python-dev libpq-dev postgresql postgresql-contrib Second $ sudo su - postgres $ psql Create User name with password  $ CREATE USER user_name WITH PASSWORD ' password ';   Create New Database $ CREATE DATABASE database_name WITH OWNER user_name ; Give permission  $ GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO user_name ; Update settings.py  DATABASES = { ' default ' : { ' ENGINE ' : ' django.db.backends.postgresql_psycopg2 ' , ' NAME ' : 'database_name ' , ' USER ' : ' user_name ' , ' PASSWORD ' : ' password' , ' HOST ' : ' localhost ' , ' PORT ' : ' 5432 ' , } }  Then, python3 manage.py migrate and finally create super user python3 man age.py createsuperuser