Skip to content

Instantly share code, notes, and snippets.

@MbuguaCaleb
Last active March 4, 2021 04:42
Show Gist options
  • Save MbuguaCaleb/cd3e06309d4aa7df25c4b04590f7864f to your computer and use it in GitHub Desktop.
Save MbuguaCaleb/cd3e06309d4aa7df25c4b04590f7864f to your computer and use it in GitHub Desktop.
django_set_up
(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