- Install python
- Upgrade pip by using command
python -m pip install -U pip
- Install django
py -m pip install Django
orpip install Django
- Create new project
django-admin startproject crm
&cd crm
- Run the server
python manage.py runserver
- Show in browser http://127.0.0.1:8000
- Creating an app
python manage.py startapp accounts
- Make a folder with name of templates inside an app
- Overriding templates templating tutorial
- Extending an overridden template
- Built in tags and filter
- Make sure that django.contrib.staticfiles is included in your INSTALLED_APPS.
- In your settings file, define STATIC_URL, for example:
STATIC_URL = '/static/'
- Migrating database
python manage.py migrate
- For SqLite
python manage.py makemigrations
python manage.py migrate
python manage.py createsuperuser