Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
hardik-kapadia committed Feb 12, 2024
1 parent 0352fb3 commit 59d2890
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 6 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
djvirtual
.vscode/*
*.pyc
*.pyc

assets/
13 changes: 10 additions & 3 deletions stonks/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
SECRET_KEY = '06ui(cp1ml%))$r9ay=_n6yuq+or^jmp0mqcit^a^-53#+d=wm'

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = False
DEBUG = True

ALLOWED_HOSTS = ['*']

Expand Down Expand Up @@ -125,7 +125,14 @@
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/3.1/howto/static-files/

STATIC_URL = '/static/'
import mimetypes
mimetypes.add_type("text/css", ".css", True)

STATICFILES_DIRS = [os.path.join(BASE_DIR, "static")]

STATIC_ROOT = os.path.join(BASE_DIR, "assets")
print(f'Static files: {STATICFILES_DIRS}')

STATIC_ROOT = os.path.join(BASE_DIR, "assets")
STATIC_URL = '/static/'

print(f'Looking for {STATIC_URL} in {STATIC_ROOT}')
2 changes: 1 addition & 1 deletion templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<br>
<br>
<div class="search-box" data-aos="fade-up">
<form action='search' id='searcher' method='post' class = 'former'>
<form action="search" id="searcher" method="post" class = "former">

{% csrf_token %}

Expand Down
2 changes: 1 addition & 1 deletion templates/navbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

<!-- Latest compiled and minified CSS -->

<link rel="stylesheet" href="{%static 'css/style.css' %}">
<link type = "text/css" rel="stylesheet" href="{%static 'css/style.css' %}">


<!-- jQuery library -->
Expand Down

0 comments on commit 59d2890

Please sign in to comment.