Spaces:
Runtime error
Runtime error
swapped
Browse files- Dockerfile +1 -1
- requirements.txt +0 -1
- db.sqlite3 β testView/db.sqlite3 +0 -0
- manage.py β testView/manage.py +0 -0
- __init__.py β testView/myapp/__init__.py +0 -0
- {myapp β testView/myapp}/__pycache__/__init__.cpython-39.pyc +0 -0
- {myapp β testView/myapp}/__pycache__/admin.cpython-39.pyc +0 -0
- {myapp β testView/myapp}/__pycache__/models.cpython-39.pyc +0 -0
- {myapp β testView/myapp}/__pycache__/urls.cpython-39.pyc +0 -0
- {myapp β testView/myapp}/__pycache__/views.cpython-39.pyc +0 -0
- {myapp β testView/myapp}/admin.py +0 -0
- {myapp β testView/myapp}/apps.py +0 -0
- {myapp β testView/myapp/migrations}/__init__.py +0 -0
- {myapp β testView/myapp}/migrations/__pycache__/__init__.cpython-39.pyc +0 -0
- {myapp β testView/myapp}/models.py +0 -0
- {myapp β testView/myapp}/tests.py +0 -0
- {myapp β testView/myapp}/urls.py +1 -1
- {myapp β testView/myapp}/views.py +0 -0
- {myapp/migrations β testView/testView}/__init__.py +0 -0
- {__pycache__ β testView/testView/__pycache__}/__init__.cpython-39.pyc +0 -0
- {__pycache__ β testView/testView/__pycache__}/settings.cpython-39.pyc +0 -0
- {__pycache__ β testView/testView/__pycache__}/urls.cpython-39.pyc +0 -0
- {__pycache__ β testView/testView/__pycache__}/wsgi.cpython-39.pyc +0 -0
- settings.py β testView/testView/settings.py +3 -3
- urls.py β testView/testView/urls.py +1 -1
- wsgi.py β testView/testView/wsgi.py +0 -0
Dockerfile
CHANGED
@@ -26,4 +26,4 @@ EXPOSE 7860
|
|
26 |
|
27 |
# Set the entrypoint for the container
|
28 |
# ENTRYPOINT ["/bin/sh", "-c", "$HOME/scripts/entrypoint.sh"]
|
29 |
-
CMD ["python", "manage.py", "runserver","0.0.0.0:7860","--noreload"]
|
|
|
26 |
|
27 |
# Set the entrypoint for the container
|
28 |
# ENTRYPOINT ["/bin/sh", "-c", "$HOME/scripts/entrypoint.sh"]
|
29 |
+
CMD ["python", "testView/manage.py", "runserver","0.0.0.0:7860","--noreload"]
|
requirements.txt
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
django
|
|
|
|
db.sqlite3 β testView/db.sqlite3
RENAMED
Binary files a/db.sqlite3 and b/testView/db.sqlite3 differ
|
|
manage.py β testView/manage.py
RENAMED
File without changes
|
__init__.py β testView/myapp/__init__.py
RENAMED
File without changes
|
{myapp β testView/myapp}/__pycache__/__init__.cpython-39.pyc
RENAMED
Binary files a/myapp/__pycache__/__init__.cpython-39.pyc and b/testView/myapp/__pycache__/__init__.cpython-39.pyc differ
|
|
{myapp β testView/myapp}/__pycache__/admin.cpython-39.pyc
RENAMED
Binary files a/myapp/__pycache__/admin.cpython-39.pyc and b/testView/myapp/__pycache__/admin.cpython-39.pyc differ
|
|
{myapp β testView/myapp}/__pycache__/models.cpython-39.pyc
RENAMED
Binary files a/myapp/__pycache__/models.cpython-39.pyc and b/testView/myapp/__pycache__/models.cpython-39.pyc differ
|
|
{myapp β testView/myapp}/__pycache__/urls.cpython-39.pyc
RENAMED
Binary files a/myapp/__pycache__/urls.cpython-39.pyc and b/testView/myapp/__pycache__/urls.cpython-39.pyc differ
|
|
{myapp β testView/myapp}/__pycache__/views.cpython-39.pyc
RENAMED
Binary files a/myapp/__pycache__/views.cpython-39.pyc and b/testView/myapp/__pycache__/views.cpython-39.pyc differ
|
|
{myapp β testView/myapp}/admin.py
RENAMED
File without changes
|
{myapp β testView/myapp}/apps.py
RENAMED
File without changes
|
{myapp β testView/myapp/migrations}/__init__.py
RENAMED
File without changes
|
{myapp β testView/myapp}/migrations/__pycache__/__init__.cpython-39.pyc
RENAMED
Binary files a/myapp/migrations/__pycache__/__init__.cpython-39.pyc and b/testView/myapp/migrations/__pycache__/__init__.cpython-39.pyc differ
|
|
{myapp β testView/myapp}/models.py
RENAMED
File without changes
|
{myapp β testView/myapp}/tests.py
RENAMED
File without changes
|
{myapp β testView/myapp}/urls.py
RENAMED
@@ -2,5 +2,5 @@ from django.urls import path
|
|
2 |
from . import views
|
3 |
|
4 |
urlpatterns = [
|
5 |
-
path(
|
6 |
]
|
|
|
2 |
from . import views
|
3 |
|
4 |
urlpatterns = [
|
5 |
+
path('', views.home, name='home')
|
6 |
]
|
{myapp β testView/myapp}/views.py
RENAMED
File without changes
|
{myapp/migrations β testView/testView}/__init__.py
RENAMED
File without changes
|
{__pycache__ β testView/testView/__pycache__}/__init__.cpython-39.pyc
RENAMED
Binary files a/__pycache__/__init__.cpython-39.pyc and b/testView/testView/__pycache__/__init__.cpython-39.pyc differ
|
|
{__pycache__ β testView/testView/__pycache__}/settings.cpython-39.pyc
RENAMED
Binary files a/__pycache__/settings.cpython-39.pyc and b/testView/testView/__pycache__/settings.cpython-39.pyc differ
|
|
{__pycache__ β testView/testView/__pycache__}/urls.cpython-39.pyc
RENAMED
Binary files a/__pycache__/urls.cpython-39.pyc and b/testView/testView/__pycache__/urls.cpython-39.pyc differ
|
|
{__pycache__ β testView/testView/__pycache__}/wsgi.cpython-39.pyc
RENAMED
Binary files a/__pycache__/wsgi.cpython-39.pyc and b/testView/testView/__pycache__/wsgi.cpython-39.pyc differ
|
|
settings.py β testView/testView/settings.py
RENAMED
@@ -20,12 +20,12 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
|
20 |
# See https://docs.djangoproject.com/en/2.2/howto/deployment/checklist/
|
21 |
|
22 |
# SECURITY WARNING: keep the secret key used in production secret!
|
23 |
-
SECRET_KEY = '
|
24 |
|
25 |
# SECURITY WARNING: don't run with debug turned on in production!
|
26 |
DEBUG = True
|
27 |
|
28 |
-
ALLOWED_HOSTS = []
|
29 |
|
30 |
|
31 |
# Application definition
|
@@ -37,7 +37,7 @@ INSTALLED_APPS = [
|
|
37 |
'django.contrib.sessions',
|
38 |
'django.contrib.messages',
|
39 |
'django.contrib.staticfiles',
|
40 |
-
|
41 |
]
|
42 |
|
43 |
MIDDLEWARE = [
|
|
|
20 |
# See https://docs.djangoproject.com/en/2.2/howto/deployment/checklist/
|
21 |
|
22 |
# SECURITY WARNING: keep the secret key used in production secret!
|
23 |
+
SECRET_KEY = '0k^xa_l6enw@%^brs^sa+2e(o7#sa7pas!&=bfz&wqomz)839v'
|
24 |
|
25 |
# SECURITY WARNING: don't run with debug turned on in production!
|
26 |
DEBUG = True
|
27 |
|
28 |
+
ALLOWED_HOSTS = ['*']
|
29 |
|
30 |
|
31 |
# Application definition
|
|
|
37 |
'django.contrib.sessions',
|
38 |
'django.contrib.messages',
|
39 |
'django.contrib.staticfiles',
|
40 |
+
'myapp'
|
41 |
]
|
42 |
|
43 |
MIDDLEWARE = [
|
urls.py β testView/testView/urls.py
RENAMED
@@ -18,5 +18,5 @@ from django.urls import path, include
|
|
18 |
|
19 |
urlpatterns = [
|
20 |
path('admin/', admin.site.urls),
|
21 |
-
path(
|
22 |
]
|
|
|
18 |
|
19 |
urlpatterns = [
|
20 |
path('admin/', admin.site.urls),
|
21 |
+
path('', include("myapp.urls"))
|
22 |
]
|
wsgi.py β testView/testView/wsgi.py
RENAMED
File without changes
|