postgres
This commit is contained in:
parent
8c9bc213b0
commit
bfc2950a1d
6
.gitignore
vendored
6
.gitignore
vendored
@ -1,6 +1,7 @@
|
|||||||
# Byte-compiled / optimized / DLL files
|
# Byte-compiled / optimized / DLL files
|
||||||
__pycache__/
|
__pycache__/
|
||||||
*.py[cod]
|
*.py[cod]
|
||||||
|
*.pyc
|
||||||
|
|
||||||
# C extensions
|
# C extensions
|
||||||
*.so
|
*.so
|
||||||
@ -51,3 +52,8 @@ docs/_build/
|
|||||||
|
|
||||||
*__pycache__/*
|
*__pycache__/*
|
||||||
*.pyc
|
*.pyc
|
||||||
|
|
||||||
|
run.sh
|
||||||
|
venv/
|
||||||
|
*.bak
|
||||||
|
scratch*
|
||||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -82,8 +82,12 @@ WSGI_APPLICATION = 'korabo.wsgi.application'
|
|||||||
|
|
||||||
DATABASES = {
|
DATABASES = {
|
||||||
'default': {
|
'default': {
|
||||||
'ENGINE': 'django.db.backends.sqlite3',
|
'ENGINE': 'django.db.backends.postgresql',
|
||||||
'NAME': BASE_DIR / 'db.sqlite3',
|
'NAME': os.getenv('DB_NAME'),
|
||||||
|
'USER': os.getenv('DB_USER'),
|
||||||
|
'PASSWORD': os.getenv('DB_PASS'),
|
||||||
|
'HOST': os.getenv('DB_HOST'),
|
||||||
|
'PORT': os.getenv('DB_PORT'),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
18
web/migrations/0005_event_cover_image.py
Normal file
18
web/migrations/0005_event_cover_image.py
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
# Generated by Django 4.2.16 on 2025-04-06 01:54
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('web', '0004_remove_event_participants_alter_eventcomment_event_and_more'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='event',
|
||||||
|
name='cover_image',
|
||||||
|
field=models.ImageField(blank=True, default=None, null=True, upload_to='event_cover_images/'),
|
||||||
|
),
|
||||||
|
]
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,37 +1,36 @@
|
|||||||
{% extends 'base.html' %}
|
{% extends 'base.html' %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
<table class="table">
|
||||||
<table class="table">
|
<thead>
|
||||||
<thead>
|
<tr>
|
||||||
<tr>
|
<td>Event Name</td>
|
||||||
<td>Event Name</td>
|
<td>Already Responded</td>
|
||||||
<td>Already Responded</td>
|
<td>Start Date</td>
|
||||||
<td>Start Date</td>
|
<td>End Date</td>
|
||||||
<td>End Date</td>
|
<td>img</td>
|
||||||
<td> img </td>
|
</tr>
|
||||||
</tr>
|
</thead>
|
||||||
</thead>
|
<tbody>
|
||||||
<tbody>
|
{% for event in events %}
|
||||||
{% for event in events%}
|
<div class="accordion-item">
|
||||||
<div class="accordion-item">
|
<div class="accordion-item">
|
||||||
<div class="accordion-item">
|
<h2 class="accordion-header" id="event-{{ event.id }}">
|
||||||
<h2 class="accordion-header" id="event-{{event.id}}">
|
<button class="accordion-button collapsed"
|
||||||
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#event-collapse-{{event.id}}" aria-expanded="true" aria-controls="event-collapse-{{event.id}}">
|
type="button"
|
||||||
{{event.name}}
|
data-bs-toggle="collapse"
|
||||||
</button>
|
data-bs-target="#event-collapse-{{ event.id }}"
|
||||||
</h2>
|
aria-expanded="true"
|
||||||
<div id="event-collapse-{{event.id}}" class="accordion-collapse collapse" aria-labelledby="event-{{event.id}}" data-bs-parent="#accordionExample">
|
aria-controls="event-collapse-{{ event.id }}">{{ event.name }}</button>
|
||||||
<div class="accordion-body">
|
</h2>
|
||||||
|
<div id="event-collapse-{{ event.id }}"
|
||||||
{{event.description}}
|
class="accordion-collapse collapse"
|
||||||
|
aria-labelledby="event-{{ event.id }}"
|
||||||
|
data-bs-parent="#accordionExample">
|
||||||
|
<div class="accordion-body">{{ event.description }}</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
{% endfor %}
|
||||||
</div>
|
</tbody>
|
||||||
|
</table>
|
||||||
{% endfor %}
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user