-
I have a text editor installed in my computer (e.g. Notepad++, Sublime).
-
I have Python installed in my computer
-
python -
pip -
virtualenvironment
-
-
I'm familiar with the basics concepts of Python.
This course will help you create your own Pet Portfolio while exploring Django. By the end of this course, you should be able to create and deploy your Django web app.
- Free and open source web application framework, written in Python.
- Django makes it easier to build better Web apps more quickly and with less code.
You may learn more about Django here <https://tutorial.djangogirls.org/en/
- Instagram 📷
- Spotify
- Youtube
- The Washington Post
- Dropbox
- Eventbrite
- Mozilla
- and many moreeeee!
First things first! Check your machine if:
- It has Python installed
- Your terminal now has the 'pip' command
- You already have a virtual environment -- Virtual Env
virtualenv <env_name> --python=python3.5 - You have your code editor
-
Create Project
(venv) ~/mydjangoproject$ django-admin startproject mysite . -
Create Database
python manage.py makemigrations/migrate -
Start Server
python manage.py runserver -
Create module
-
Create URL
-
Install Django Rest Framework
pip3 install djangorestframework -
Use the following methods:
- Create
- Read
- Update
- Delete
-
Create and styling
-
Django ORM :D
References:
https://tutorial.djangogirls.org/en/
https://www.netguru.com/blog/top-10-django-apps-and-why-companies-are-betting-on-this-framework
https://wwcodemanila.github.io/WWCodeManila-Python/#/flask/discussions/01_introduction