Last active
March 4, 2021 04:42
-
-
Save MbuguaCaleb/cd3e06309d4aa7df25c4b04590f7864f to your computer and use it in GitHub Desktop.
django_set_up
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(a)pip install virtual env | |
(b)virtualenv myenv | |
(c)source myenv/bin/activate | |
Pylint setup | |
{ | |
"python.pythonPath": "myenv/bin/python", | |
"editor.tabSize": 4, | |
"python.linting.enabled": true, | |
"python.linting.pylintEnabled": true, | |
"python.linting.flake8Enabled": false | |
} | |
Once in the Environment | |
(a)pip install django | |
(b)django-admin startproject backend | |
Start the main app app .These is where all the configurations and settings are stored. | |
(c)jango-admin startapp sampeapp | |
Django Admin User | |
python manage.py createsuperuser | |
DjangoRestFramewotk | |
pip install djangorestframework | |
Creating Migrations | |
python manage.py makemigrations | |
Running Migrations | |
python manage.py migrate | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment