Django is a Python framework to build Web-Applications. You can use it for small to large projects.
Here you can find some companies which are using django.
Reasons to use django:
Create somewhere a folder, in my case "tut-django".
Open your shell. Go inside this folder, init git and create a requirements.txt
mkdir tut-django
cd tut-django
git init
touch requirements.txt
Install via pip "virtualenv", create a virtualenv and activated it. Why you should use virtualenv?
pip install virtualenv
virtualenv ENV
source ENV/bin/activate
Add the following requirements to the requirements.txt.
django
djangorestframework
markdown
And install it and start your first django project
pip install -r requirements.txt
django-admin startproject tutorial
My project is called "tutorial". Inside you can find a lot of files. Don麓t panic. In the next part I will explain what the files and folders means.
Inside the folder tutorial/tutorial you can find a file settings.py. Add the following:
....
INSTALLED_APPS = [
....
'rest_framework',
]
.....
At the end we will try to run the service to check if everything is fine.
cd tutorial
python manage.py runserver
If you can see a line like this everything is fine.
....
Starting development server at http://127.0.0.1:8000/
Quit the server with CTRL-BREAK.
Try to enter http://127.0.0.1:8000/ . You will find a nice landingpage.
Congratulation! You made it through the first part.