joeni

Initial commit for Joeni

And we are off! This commit contains all files generated after running "django-admin startproject joeni", which are all the necessary files to get started.

Author
Maarten 'Vngngdn' Vangeneugden
Date
Oct. 30, 2017, 1:53 p.m.
Hash
f07afb4216a73a0e74d40e40ef2c270d3acbb945
Parents
Modified files
joeni/__init__.py
joeni/settings.py
joeni/urls.py
joeni/wsgi.py
manage.py

joeni/__init__.py

0 additions and 0 deletions.

View changes Hide changes

joeni/settings.py

120 additions and 0 deletions.

View changes Hide changes
+
1
Django settings for joeni project.
+
2
+
3
Generated by 'django-admin startproject' using Django 2.0b1.
+
4
+
5
For more information on this file, see
+
6
https://docs.djangoproject.com/en/dev/topics/settings/
+
7
+
8
For the full list of settings and their values, see
+
9
https://docs.djangoproject.com/en/dev/ref/settings/
+
10
"""
+
11
+
12
import os
+
13
+
14
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
+
15
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
+
16
+
17
+
18
# Quick-start development settings - unsuitable for production
+
19
# See https://docs.djangoproject.com/en/dev/howto/deployment/checklist/
+
20
+
21
# SECURITY WARNING: keep the secret key used in production secret!
+
22
SECRET_KEY = '!2634qc=b*lp0=helzcmvb3+1_wcl!6z@mhzi%p(vg7odq&gfz'
+
23
+
24
# SECURITY WARNING: don't run with debug turned on in production!
+
25
DEBUG = True
+
26
+
27
ALLOWED_HOSTS = []
+
28
+
29
+
30
# Application definition
+
31
+
32
INSTALLED_APPS = [
+
33
    'django.contrib.admin',
+
34
    'django.contrib.auth',
+
35
    'django.contrib.contenttypes',
+
36
    'django.contrib.sessions',
+
37
    'django.contrib.messages',
+
38
    'django.contrib.staticfiles',
+
39
]
+
40
+
41
MIDDLEWARE = [
+
42
    'django.middleware.security.SecurityMiddleware',
+
43
    'django.contrib.sessions.middleware.SessionMiddleware',
+
44
    'django.middleware.common.CommonMiddleware',
+
45
    'django.middleware.csrf.CsrfViewMiddleware',
+
46
    'django.contrib.auth.middleware.AuthenticationMiddleware',
+
47
    'django.contrib.messages.middleware.MessageMiddleware',
+
48
    'django.middleware.clickjacking.XFrameOptionsMiddleware',
+
49
]
+
50
+
51
ROOT_URLCONF = 'joeni.urls'
+
52
+
53
TEMPLATES = [
+
54
    {
+
55
        'BACKEND': 'django.template.backends.django.DjangoTemplates',
+
56
        'DIRS': [],
+
57
        'APP_DIRS': True,
+
58
        'OPTIONS': {
+
59
            'context_processors': [
+
60
                'django.template.context_processors.debug',
+
61
                'django.template.context_processors.request',
+
62
                'django.contrib.auth.context_processors.auth',
+
63
                'django.contrib.messages.context_processors.messages',
+
64
            ],
+
65
        },
+
66
    },
+
67
]
+
68
+
69
WSGI_APPLICATION = 'joeni.wsgi.application'
+
70
+
71
+
72
# Database
+
73
# https://docs.djangoproject.com/en/dev/ref/settings/#databases
+
74
+
75
DATABASES = {
+
76
    'default': {
+
77
        'ENGINE': 'django.db.backends.sqlite3',
+
78
        'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
+
79
    }
+
80
}
+
81
+
82
+
83
# Password validation
+
84
# https://docs.djangoproject.com/en/dev/ref/settings/#auth-password-validators
+
85
+
86
AUTH_PASSWORD_VALIDATORS = [
+
87
    {
+
88
        'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
+
89
    },
+
90
    {
+
91
        'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
+
92
    },
+
93
    {
+
94
        'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
+
95
    },
+
96
    {
+
97
        'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
+
98
    },
+
99
]
+
100
+
101
+
102
# Internationalization
+
103
# https://docs.djangoproject.com/en/dev/topics/i18n/
+
104
+
105
LANGUAGE_CODE = 'en-us'
+
106
+
107
TIME_ZONE = 'UTC'
+
108
+
109
USE_I18N = True
+
110
+
111
USE_L10N = True
+
112
+
113
USE_TZ = True
+
114
+
115
+
116
# Static files (CSS, JavaScript, Images)
+
117
# https://docs.djangoproject.com/en/dev/howto/static-files/
+
118
+
119
STATIC_URL = '/static/'
+
120

joeni/urls.py

21 additions and 0 deletions.

View changes Hide changes
+
1
+
2
The `urlpatterns` list routes URLs to views. For more information please see:
+
3
    https://docs.djangoproject.com/en/dev/topics/http/urls/
+
4
Examples:
+
5
Function views
+
6
    1. Add an import:  from my_app import views
+
7
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
+
8
Class-based views
+
9
    1. Add an import:  from other_app.views import Home
+
10
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
+
11
Including another URLconf
+
12
    1. Import the include() function: from django.urls import include, path
+
13
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
+
14
"""
+
15
from django.contrib import admin
+
16
from django.urls import path
+
17
+
18
urlpatterns = [
+
19
    path('admin/', admin.site.urls),
+
20
]
+
21

joeni/wsgi.py

16 additions and 0 deletions.

View changes Hide changes
+
1
WSGI config for joeni project.
+
2
+
3
It exposes the WSGI callable as a module-level variable named ``application``.
+
4
+
5
For more information on this file, see
+
6
https://docs.djangoproject.com/en/dev/howto/deployment/wsgi/
+
7
"""
+
8
+
9
import os
+
10
+
11
from django.core.wsgi import get_wsgi_application
+
12
+
13
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "joeni.settings")
+
14
+
15
application = get_wsgi_application()
+
16

manage.py

15 additions and 0 deletions.

View changes Hide changes
+
1
import os
+
2
import sys
+
3
+
4
if __name__ == "__main__":
+
5
    os.environ.setdefault("DJANGO_SETTINGS_MODULE", "joeni.settings")
+
6
    try:
+
7
        from django.core.management import execute_from_command_line
+
8
    except ImportError as exc:
+
9
        raise ImportError(
+
10
            "Couldn't import Django. Are you sure it's installed and "
+
11
            "available on your PYTHONPATH environment variable? Did you "
+
12
            "forget to activate a virtual environment?"
+
13
        ) from exc
+
14
    execute_from_command_line(sys.argv)
+
15