forked from data.coop/membersystem
Compare commits
6 commits
2c30d7b8b2
...
1add5f3e35
Author | SHA1 | Date | |
---|---|---|---|
Benjamin Bach | 1add5f3e35 | ||
decibyte | 37973c352c | ||
Mikkel Munch Mortensen | 57f9d342da | ||
Mikkel Munch Mortensen | 9ea4b827f4 | ||
Mikkel Munch Mortensen | bd04b00c6d | ||
Mikkel Munch Mortensen | e6d67c51a0 |
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,3 +1,5 @@
|
|||
__pycache__/
|
||||
*.pyc
|
||||
*.sw*
|
||||
db.sqlite3
|
||||
membersystem/settings/local.py
|
||||
|
|
10
membersystem/settings/__init__.py
Normal file
10
membersystem/settings/__init__.py
Normal file
|
@ -0,0 +1,10 @@
|
|||
import warnings
|
||||
|
||||
from .base import *
|
||||
|
||||
try:
|
||||
from .local import *
|
||||
except ImportError:
|
||||
warnings.warn("No settings.local, using a default SECRET_KEY 'hest'")
|
||||
SECRET_KEY = "hest"
|
||||
pass
|
|
@ -19,9 +19,6 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
|||
# Quick-start development settings - unsuitable for production
|
||||
# See https://docs.djangoproject.com/en/2.0/howto/deployment/checklist/
|
||||
|
||||
# SECURITY WARNING: keep the secret key used in production secret!
|
||||
SECRET_KEY = '=z5+m4xt$)a#l-*d50vta1vnnho250h3up9o+$c@)ztf8ahw3q'
|
||||
|
||||
# SECURITY WARNING: don't run with debug turned on in production!
|
||||
DEBUG = True
|
||||
|
||||
|
@ -129,3 +126,7 @@ USE_TZ = True
|
|||
# https://docs.djangoproject.com/en/2.0/howto/static-files/
|
||||
|
||||
STATIC_URL = '/static/'
|
||||
|
||||
SITE_ID = 1
|
||||
|
||||
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
|
|
@ -1,21 +1,10 @@
|
|||
"""membersystem URL Configuration
|
||||
"""URLs for the membersystem"""
|
||||
|
||||
The `urlpatterns` list routes URLs to views. For more information please see:
|
||||
https://docs.djangoproject.com/en/2.0/topics/http/urls/
|
||||
Examples:
|
||||
Function views
|
||||
1. Add an import: from my_app import views
|
||||
2. Add a URL to urlpatterns: path('', views.home, name='home')
|
||||
Class-based views
|
||||
1. Add an import: from other_app.views import Home
|
||||
2. Add a URL to urlpatterns: path('', Home.as_view(), name='home')
|
||||
Including another URLconf
|
||||
1. Import the include() function: from django.urls import include, path
|
||||
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
|
||||
"""
|
||||
from django.contrib import admin
|
||||
from django.urls import path
|
||||
from django.conf.urls import url
|
||||
from django.urls import include, path
|
||||
|
||||
urlpatterns = [
|
||||
url(r'^accounts/', include('allauth.urls')),
|
||||
path('admin/', admin.site.urls),
|
||||
]
|
||||
|
|
|
@ -2,4 +2,4 @@ from django.db import models
|
|||
|
||||
|
||||
class Profile(models.Model):
|
||||
user = models.OneToOneField('auth.User')
|
||||
user = models.OneToOneField('auth.User', on_delete=models.CASCADE)
|
||||
|
|
Loading…
Reference in a new issue