mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 14:52:15 +00:00
Sync with local modifications
This commit is contained in:
@@ -9,10 +9,10 @@ ADMINS = (
|
||||
|
||||
MANAGERS = ADMINS
|
||||
|
||||
DATABASE_ENGINE = 'sqlite3' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
|
||||
DATABASE_NAME = '/home/dreddit/www/login.dredd.it/login.db3' # Or path to database file if using sqlite3.
|
||||
DATABASE_USER = '' # Not used with sqlite3.
|
||||
DATABASE_PASSWORD = '' # Not used with sqlite3.
|
||||
DATABASE_ENGINE = 'mysql' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
|
||||
DATABASE_NAME = 'dreddit_sso' # Or path to database file if using sqlite3.
|
||||
DATABASE_USER = 'dreddit_sso' # Not used with sqlite3.
|
||||
DATABASE_PASSWORD = 'bf6431670c657b9b62f08353d61047c4552ed3d4' # Not used with sqlite3.
|
||||
DATABASE_HOST = '' # Set to empty string for localhost. Not used with sqlite3.
|
||||
DATABASE_PORT = '' # Set to empty string for default. Not used with sqlite3.
|
||||
|
||||
@@ -72,6 +72,7 @@ TEMPLATE_DIRS = (
|
||||
)
|
||||
|
||||
INSTALLED_APPS = (
|
||||
'django.contrib.admin',
|
||||
'django.contrib.auth',
|
||||
'django.contrib.contenttypes',
|
||||
'django.contrib.sessions',
|
||||
|
||||
@@ -1,18 +1,14 @@
|
||||
from django.db import models
|
||||
from django.contrib.auth.models import User
|
||||
from eve_api.models.api_player import EVEAccount
|
||||
|
||||
class UserProfile(User):
|
||||
eveaccount = models.ForeignKey(EVEAccount)
|
||||
|
||||
class Site(models.Model):
|
||||
class Service(models.Model):
|
||||
url = models.CharField(max_length=200)
|
||||
active = models.BooleanField()
|
||||
api = models.CharField(max_length=200)
|
||||
|
||||
class SiteAccount(models.Model):
|
||||
user = models.ForeignKey(UserProfile)
|
||||
site = models.ForeignKey(Site)
|
||||
class ServiceAccount(models.Model):
|
||||
user = models.ForeignKey(User)
|
||||
service = models.ForeignKey(Service)
|
||||
username = models.CharField(max_length=200)
|
||||
active = models.BooleanField()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user