Commit ff3de460 authored by Dmitry Shelepnev's avatar Dmitry Shelepnev
Browse files

Add config for postrgesql

parent 6793ab3e
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -91,6 +91,17 @@ WSGI_APPLICATION = 'sopds.wsgi.application'
#    }             
#}

#DATABASES = {
#    'default': {
#    'ENGINE': 'django.db.backends.postgresql_psycopg2',
#    'NAME': 'sopds',
#    'USER': 'sopds',
#    'PASSWORD': 'sopds',
#    'HOST': '', # Set to empty string for localhost.
#    'PORT': '', # Set to empty string for default.
#    }
#}

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.sqlite3',
+1 −0
Original line number Diff line number Diff line
from random import randint
import urllib

from django.shortcuts import render, redirect
from django.template.context_processors import csrf