Skip to content

Commit c96f123

Browse files
committed
setup basic
s
1 parent e6c1dcd commit c96f123

File tree

22 files changed

+58
-30
lines changed

22 files changed

+58
-30
lines changed

.DS_Store

0 Bytes
Binary file not shown.

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"python.pythonPath": "env/bin/python3.7"
3+
}

HelloWorld/settings.py

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,5 @@
1-
"""
2-
Django settings for HelloWorld project.
3-
4-
Generated by 'django-admin startproject' using Django 2.1.2.
5-
6-
For more information on this file, see
7-
https://docs.djangoproject.com/en/2.1/topics/settings/
8-
9-
For the full list of settings and their values, see
10-
https://docs.djangoproject.com/en/2.1/ref/settings/
11-
"""
12-
131
import os
2+
from decouple import config
143

154
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
165
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
@@ -20,7 +9,7 @@
209
# See https://docs.djangoproject.com/en/2.1/howto/deployment/checklist/
2110

2211
# SECURITY WARNING: keep the secret key used in production secret!
23-
SECRET_KEY = 'g21)nre3=re0=1%fg=g(o7b=^-e=*$s(x0jtf714sxx(b=6#ja'
12+
SECRET_KEY = config('SECRET_KEY', default = "some secret")
2413

2514
# SECURITY WARNING: don't run with debug turned on in production!
2615
DEBUG = True
@@ -54,7 +43,9 @@
5443
TEMPLATES = [
5544
{
5645
'BACKEND': 'django.template.backends.django.DjangoTemplates',
57-
'DIRS': [],
46+
'DIRS': [
47+
os.path.join(BASE_DIR, 'templates')
48+
],
5849
'APP_DIRS': True,
5950
'OPTIONS': {
6051
'context_processors': [

HelloWorld/urls.py

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,9 @@
1-
"""HelloWorld URL Configuration
2-
3-
The `urlpatterns` list routes URLs to views. For more information please see:
4-
https://docs.djangoproject.com/en/2.1/topics/http/urls/
5-
Examples:
6-
Function views
7-
1. Add an import: from my_app import views
8-
2. Add a URL to urlpatterns: path('', views.home, name='home')
9-
Class-based views
10-
1. Add an import: from other_app.views import Home
11-
2. Add a URL to urlpatterns: path('', Home.as_view(), name='home')
12-
Including another URLconf
13-
1. Import the include() function: from django.urls import include, path
14-
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
15-
"""
161
from django.contrib import admin
17-
from django.urls import path
2+
from django.urls import path, include
183

194
urlpatterns = [
205
path('admin/', admin.site.urls),
6+
7+
# Route group
8+
path('', include('static.urls'))
219
]

auth/__init__.py

Whitespace-only changes.

auth/admin.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from django.contrib import admin
2+
3+
# Register your models here.

auth/apps.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
from django.apps import AppConfig
2+
3+
4+
class AuthConfig(AppConfig):
5+
name = 'auth'

auth/migrations/__init__.py

Whitespace-only changes.

auth/models.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from django.db import models
2+
3+
# Create your models here.

auth/tests.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from django.test import TestCase
2+
3+
# Create your tests here.

0 commit comments

Comments
 (0)