forked from sclorg/django-ex
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Merge pull request sclorg#150 from frenzymadness/update"
- Loading branch information
1 parent
bd5e352
commit 100bd17
Showing
7 changed files
with
35 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,10 @@ | ||
#!/usr/bin/env python | ||
"""Django's command-line utility for administrative tasks.""" | ||
import os | ||
import sys | ||
|
||
if __name__ == "__main__": | ||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "project.settings") | ||
|
||
def main(): | ||
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'project.settings') | ||
try: | ||
from django.core.management import execute_from_command_line | ||
except ImportError as exc: | ||
raise ImportError( | ||
"Couldn't import Django. Are you sure it's installed and " | ||
"available on your PYTHONPATH environment variable? Did you " | ||
"forget to activate a virtual environment?" | ||
) from exc | ||
execute_from_command_line(sys.argv) | ||
|
||
from django.core.management import execute_from_command_line | ||
|
||
if __name__ == '__main__': | ||
main() | ||
execute_from_command_line(sys.argv) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,21 @@ | ||
"""project URL Configuration | ||
The `urlpatterns` list routes URLs to views. For more information please see: | ||
https://docs.djangoproject.com/en/2.2/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.conf import settings | ||
from django.conf.urls import include, url | ||
from django.contrib import admin | ||
from django.urls import include, path | ||
|
||
from welcome.views import index, health | ||
|
||
urlpatterns = [ | ||
path('', index, name='home'), | ||
path('health/', health), | ||
path('admin/', admin.site.urls), | ||
# Examples: | ||
# url(r'^$', 'project.views.home', name='home'), | ||
# url(r'^blog/', include('blog.urls')), | ||
|
||
url(r'^$', index), | ||
url(r'^health$', health), | ||
url(r'^admin/', include(admin.site.urls)), | ||
] | ||
|
||
if settings.DEBUG: | ||
import debug_toolbar | ||
urlpatterns = [ | ||
path('__debug__/', include(debug_toolbar.urls)), | ||
url(r'^__debug__/', include(debug_toolbar.urls)), | ||
] + urlpatterns |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
Django>=2.2.12,<3.0 | ||
django-debug-toolbar==2.2 | ||
gunicorn==20.0.4 | ||
django>=1.11,<1.12 | ||
django-debug-toolbar==1.8 | ||
gunicorn==19.5.0 | ||
psycopg2==2.8.5 | ||
pytz==2020.1 | ||
sqlparse==0.3.1 | ||
whitenoise==5.1.0 | ||
whitenoise==3.3.1 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
""" | ||
WSGI config for this project. | ||
WSGI config for project project. | ||
It exposes the WSGI callable as a module-level variable named ``application``. | ||
For more information on this file, see | ||
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/ | ||
https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/ | ||
""" | ||
|
||
import os | ||
|
||
from django.core.wsgi import get_wsgi_application | ||
|
||
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'project.settings') | ||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "project.settings") | ||
|
||
application = get_wsgi_application() |