Skip to content

Latest commit

 

History

History
92 lines (64 loc) · 1.33 KB

readme.md

File metadata and controls

92 lines (64 loc) · 1.33 KB

django-planner

Simple planner

Run

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