fixed a lotta shit
This commit is contained in:
0
houtmarkt/__init__.py
Normal file → Executable file
0
houtmarkt/__init__.py
Normal file → Executable file
0
houtmarkt/__pycache__/__init__.cpython-36.pyc
Normal file → Executable file
0
houtmarkt/__pycache__/__init__.cpython-36.pyc
Normal file → Executable file
0
houtmarkt/__pycache__/__init__.cpython-38.pyc
Normal file → Executable file
0
houtmarkt/__pycache__/__init__.cpython-38.pyc
Normal file → Executable file
Binary file not shown.
0
houtmarkt/__pycache__/settings.cpython-38.pyc
Normal file → Executable file
0
houtmarkt/__pycache__/settings.cpython-38.pyc
Normal file → Executable file
Binary file not shown.
0
houtmarkt/__pycache__/urls.cpython-38.pyc
Normal file → Executable file
0
houtmarkt/__pycache__/urls.cpython-38.pyc
Normal file → Executable file
0
houtmarkt/__pycache__/wsgi.cpython-36.pyc
Normal file → Executable file
0
houtmarkt/__pycache__/wsgi.cpython-36.pyc
Normal file → Executable file
0
houtmarkt/__pycache__/wsgi.cpython-38.pyc
Normal file → Executable file
0
houtmarkt/__pycache__/wsgi.cpython-38.pyc
Normal file → Executable file
0
houtmarkt/asgi.py
Normal file → Executable file
0
houtmarkt/asgi.py
Normal file → Executable file
6
houtmarkt/settings.py
Normal file → Executable file
6
houtmarkt/settings.py
Normal file → Executable file
@ -25,7 +25,7 @@ SECRET_KEY = 'n2h_6t5qnp8zvke(%a%ph)xj4h8w+kgg46pld0r2^ndcme3el6'
|
||||
# SECURITY WARNING: don't run with debug turned on in production!
|
||||
DEBUG = False
|
||||
|
||||
ALLOWED_HOSTS = ["10.10.0.217", "localhost"]
|
||||
ALLOWED_HOSTS = ["10.10.0.217", "localhost", "10.10.0.203","houtmarkt.phi.aperturect.com"]
|
||||
|
||||
|
||||
# Application definition
|
||||
@ -118,6 +118,6 @@ USE_TZ = True
|
||||
# Static files (CSS, JavaScript, Images)
|
||||
# https://docs.djangoproject.com/en/3.0/howto/static-files/
|
||||
|
||||
STATIC_URL = '/static/'
|
||||
STATIC_ROOT = "/static/"
|
||||
STATIC_URL = '/static'
|
||||
STATIC_ROOT = "/usr/share/nginx/html/"
|
||||
|
||||
|
6
houtmarkt/urls.py
Normal file → Executable file
6
houtmarkt/urls.py
Normal file → Executable file
@ -21,17 +21,17 @@ from django.urls import include
|
||||
|
||||
urlpatterns = [
|
||||
path('markt/', include('markt.urls')),
|
||||
path('admin/', admin.site.urls),
|
||||
path('houtmarkt/admin/', admin.site.urls),
|
||||
] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
|
||||
|
||||
|
||||
from django.views.generic import RedirectView
|
||||
urlpatterns += [
|
||||
path('', RedirectView.as_view(url='markt/', permanent=True)),
|
||||
path('', RedirectView.as_view(url='/houtmarkt/admin/', permanent=True)),
|
||||
]
|
||||
|
||||
# Use static() to add url mapping to serve static files during development (only)
|
||||
from django.conf import settings
|
||||
from django.conf.urls.static import static
|
||||
|
||||
urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
|
||||
urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
|
||||
|
0
houtmarkt/wsgi.py
Normal file → Executable file
0
houtmarkt/wsgi.py
Normal file → Executable file
Reference in New Issue
Block a user