Simple planner
Clone the project
git clone https://github.com/staszczuk/django-planner.git
Go to the django-planner
directory
cd django-planner
Create virtual environment
python -m venv venv
Activate the virtual environment
source ./venv/bin/activate
Install dependencies
python -m pip install -r requirements.txt
Create Django project
django-admin startproject project project
Open the project/project/settings.py
in text editor
Insert 'planner.apps.PlannerConfig'
into the INSTALLED_APPS
INSTALLED_APPS = [
'planner.apps.PlannerConfig',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
]
Open the project/project/urls.py
in text editor
Import the django.urls.include
from django.urls import path, include
Insert path('planner/', include('planner.urls'))
into the urlpatterns
urlpatterns = [
path('planner/', include('planner.urls')),
path('admin/', admin.site.urls),
]
Go to the project
directory
cd project
Setup the database
python manage.py migrate
Start the server
python manage.py runserver