Skip to content

dlyapun/django_skeleton

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django 2.0 Skeleton

How to run project

  1. Clone repo: git clone https://github.com/dlyapun/django_skeleton.git
  2. Enter to repo: cd django_skeleton
  3. Create virtual environment: virtualenv -p python3 venv.
  4. Activate virtual environment: source venv/bin/activate.
  5. Install requirements: pip3 install -r requirements.txt.
  6. Run migrations: python3 manage.py migrate.
  7. Run server: python3 manage.py runserver.

Local settings

import os

BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.sqlite3',
        'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
    }
}

DEBUG = True

EMAIL_BACKEND = 'django.core.mail.backends.filebased.EmailBackend'
EMAIL_FILE_PATH = 'tmp/email-messages/'

About

Classwork project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published