Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions 2 .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
__pycache__/
db.sqlite3
File renamed without changes.
12 changes: 9 additions & 3 deletions 12 pythonph/settings.py → config/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

# Application definition

INSTALLED_APPS = [
DJANGO_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
Expand All @@ -39,6 +39,12 @@
'django.contrib.staticfiles',
]

THIRD_PARTY_APPS = []

LOCAL_APPS = []

INSTALLED_APPS = DJANGO_APPS + THIRD_PARTY_APPS + LOCAL_APPS

MIDDLEWARE = [
'django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
Expand All @@ -49,7 +55,7 @@
'django.middleware.clickjacking.XFrameOptionsMiddleware',
]

ROOT_URLCONF = 'pythonph.urls'
ROOT_URLCONF = 'config.urls'

TEMPLATES = [
{
Expand All @@ -67,7 +73,7 @@
},
]

WSGI_APPLICATION = 'pythonph.wsgi.application'
WSGI_APPLICATION = 'config.wsgi.application'


# Database
Expand Down
3 changes: 3 additions & 0 deletions 3 config/settings/development.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from .base import *

ALLOWED_HOSTS = ['*']
File renamed without changes.
2 changes: 1 addition & 1 deletion 2 pythonph/wsgi.py → config/wsgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@

from django.core.wsgi import get_wsgi_application

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "pythonph.settings")
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings.development")

application = get_wsgi_application()
2 changes: 1 addition & 1 deletion 2 manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import sys

if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "pythonph.settings")
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings.development")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
Expand Down
Empty file added 0 pythonph/empty
Empty file.
1 change: 1 addition & 0 deletions 1 requirements/base.pip
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Django==2.0
1 change: 1 addition & 0 deletions 1 requirements/development.pip
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
-r base.pip
Morty Proxy This is a proxified and sanitized view of the page, visit original site.