fix: fixed app name and settings

This commit is contained in:
Rushil Umaretiya 2022-10-13 22:21:15 -04:00
parent ad9a18ff50
commit 2ed5f23b0b
6 changed files with 8 additions and 9 deletions

View File

@ -3,4 +3,4 @@ from django.apps import AppConfig
class BaseConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'base'
name = 'global.apps.base'

View File

@ -1,9 +1,5 @@
from django.contrib.auth.views import LogoutView
from django.urls import path
from . import views
urlpatterns = [

View File

@ -2,4 +2,4 @@ from django.shortcuts import render
# Create your views here.
def under_construction(request):
return render("base/under_construction.html")
return render(request, "base/under_construction.html")

View File

@ -56,7 +56,7 @@ ROOT_URLCONF = 'global.urls'
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [],
'DIRS': [BASE_DIR / 'templates'],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [

View File

@ -6,6 +6,9 @@
<title>Global Studies 2022</title>
<style type="text/css">
@import url("https://fonts.googleapis.com/css?family=Ubuntu");
* {
overflow: hidden
}
#outerCraneContainer {
position: absolute;
width: 100%;

View File

@ -14,9 +14,9 @@ Including another URLconf
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path
from django.urls import path, include
urlpatterns = ([
urlpatterns = [
path('admin/', admin.site.urls),
path('', include('global.apps.base.urls'))
]