Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .vs/DjangoProject/v17/.wsuo
Binary file not shown.
27 changes: 27 additions & 0 deletions .vs/DjangoProject/v17/DocumentLayout.backup.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"Version": 1,
"WorkspaceRootPath": "D:\\DjangoProject\\",
"Documents": [],
"DocumentGroupContainers": [
{
"Orientation": 0,
"VerticalTabListWidth": 256,
"DocumentGroups": [
{
"DockedWidth": 200,
"SelectedChildIndex": -1,
"Children": [
{
"$type": "Bookmark",
"Name": "ST:0:0:{aa2115a1-9712-457b-9047-dbb71ca2cdd2}"
},
{
"$type": "Bookmark",
"Name": "ST:0:0:{1c4feeaa-4718-4aa9-859d-94ce25d182ba}"
}
]
}
]
}
]
}
96 changes: 96 additions & 0 deletions .vs/DjangoProject/v17/DocumentLayout.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
{
"Version": 1,
"WorkspaceRootPath": "D:\\DjangoProject\\",
"Documents": [
{
"AbsoluteMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|D:\\DjangoProject\\nginx\\nginx.conf||{3B902123-F8A7-4915-9F01-361F908088D0}",
"RelativeMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|solutionrelative:nginx\\nginx.conf||{3B902123-F8A7-4915-9F01-361F908088D0}"
},
{
"AbsoluteMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|D:\\DjangoProject\\docker-compose.yml||{8B382828-6202-11D1-8870-0000F87579D2}",
"RelativeMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|solutionrelative:docker-compose.yml||{8B382828-6202-11D1-8870-0000F87579D2}"
},
{
"AbsoluteMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|D:\\DjangoProject\\Dockerfile||{8B382828-6202-11D1-8870-0000F87579D2}",
"RelativeMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|solutionrelative:Dockerfile||{8B382828-6202-11D1-8870-0000F87579D2}"
},
{
"AbsoluteMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|D:\\DjangoProject\\app\\config\\settings.py||{8B382828-6202-11D1-8870-0000F87579D2}",
"RelativeMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|solutionrelative:app\\config\\settings.py||{8B382828-6202-11D1-8870-0000F87579D2}"
}
],
"DocumentGroupContainers": [
{
"Orientation": 0,
"VerticalTabListWidth": 256,
"DocumentGroups": [
{
"DockedWidth": 200,
"SelectedChildIndex": 5,
"Children": [
{
"$type": "Bookmark",
"Name": "ST:0:0:{aa2115a1-9712-457b-9047-dbb71ca2cdd2}"
},
{
"$type": "Bookmark",
"Name": "ST:0:0:{1c4feeaa-4718-4aa9-859d-94ce25d182ba}"
},
{
"$type": "Document",
"DocumentIndex": 3,
"Title": "settings.py",
"DocumentMoniker": "D:\\DjangoProject\\app\\config\\settings.py",
"RelativeDocumentMoniker": "app\\config\\settings.py",
"ToolTip": "D:\\DjangoProject\\app\\config\\settings.py",
"RelativeToolTip": "app\\config\\settings.py",
"ViewState": "AgIAAAAAAAAAAAAAAAAAAAcAAAABAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.002457|",
"WhenOpened": "2025-10-24T18:10:58.354Z",
"EditorCaption": ""
},
{
"$type": "Document",
"DocumentIndex": 1,
"Title": "docker-compose.yml",
"DocumentMoniker": "D:\\DjangoProject\\docker-compose.yml",
"RelativeDocumentMoniker": "docker-compose.yml",
"ToolTip": "D:\\DjangoProject\\docker-compose.yml",
"RelativeToolTip": "docker-compose.yml",
"ViewState": "AgIAAE4AAAAAAAAAAAAQwGgAAAAAAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.003775|",
"WhenOpened": "2025-10-24T16:23:53.685Z",
"EditorCaption": ""
},
{
"$type": "Document",
"DocumentIndex": 2,
"Title": "Dockerfile",
"DocumentMoniker": "D:\\DjangoProject\\Dockerfile",
"RelativeDocumentMoniker": "Dockerfile",
"ToolTip": "D:\\DjangoProject\\Dockerfile",
"RelativeToolTip": "Dockerfile",
"ViewState": "AgIAAAAAAAAAAAAAAAAAABkAAAAAAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.001001|",
"WhenOpened": "2025-10-24T16:23:07.815Z",
"EditorCaption": ""
},
{
"$type": "Document",
"DocumentIndex": 0,
"Title": "nginx.conf",
"DocumentMoniker": "D:\\DjangoProject\\nginx\\nginx.conf",
"RelativeDocumentMoniker": "nginx\\nginx.conf",
"ToolTip": "D:\\DjangoProject\\nginx\\nginx.conf",
"RelativeToolTip": "nginx\\nginx.conf",
"ViewState": "AgIAAAAAAAAAAAAAAAAAABcAAAAAAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.001001|",
"WhenOpened": "2025-10-24T16:24:14.433Z",
"EditorCaption": ""
}
]
}
]
}
]
}
3 changes: 3 additions & 0 deletions .vs/ProjectSettings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"CurrentProjectSetting": null
}
13 changes: 13 additions & 0 deletions .vs/VSWorkspaceState.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"ExpandedNodes": [
"",
"\\app",
"\\app\\config",
"\\app\\core",
"\\app\\core\\migrations",
"\\app\\templates",
"\\nginx"
],
"SelectedNode": "\\app\\config\\settings.py",
"PreviewInSolutionExplorer": false
}
Binary file added .vs/slnx.sqlite
Binary file not shown.
28 changes: 27 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1 +1,27 @@
# ADD DOCKERFILE CONTENT HERE
# Use Python slim image as base
FROM python:3.11-slim-bullseye

# Set working directory
WORKDIR /app

# Copy dependency list first to leverage caching
COPY requirements.txt .

# Install Python dependencies
RUN pip install --no-cache-dir --upgrade pip && \
pip install --no-cache-dir -r requirements.txt

# Copy project files
COPY . .

# Move into Django app directory
WORKDIR /app/app

# Collect static files (for WhiteNoise + Nginx)
RUN python manage.py collectstatic --noinput

# Expose Gunicorn port
EXPOSE 8000

# Start Gunicorn server
CMD ["gunicorn", "config.wsgi:application", "--bind", "0.0.0.0:8000", "--workers", "3", "--log-level", "info"]
Binary file added Screenshot 2025-10-24 233422.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Screenshot 2025-10-24 233455.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading