Skip to content

Commit b380479

Browse files
authored
Merge pull request #1 from django-cms/feat/initial-scafollding
feat: add react project
2 parents a63c5a5 + c750ced commit b380479

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+2039
-7
lines changed

.env

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
DEFAULT_DATABASE_DSN=postgres://postgres:password@database_default:5432/db
2+
DEFAULT_STORAGE_DSN=file:///data/media/?url=%2Fmedia%2F
3+
DEBUG=True
4+
DOMAIN_ALIASES="localhost, 127.0.0.1"
5+
SECURE_SSL_REDIRECT=False

.github/workflows/docker.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ jobs:
2424
- name: Pre-build container images
2525
run: |
2626
docker network create djangocmsnet
27+
2728
docker compose build --force-rm
2829
2930
- name: Run the containers

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ db.sqlite3
2020
.Trashes
2121

2222
.idea/
23-
.env
23+
node_modules/*

Dockerfile

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,27 @@
1-
FROM python:3.11
1+
FROM python:3.13
22

33
WORKDIR /app
44

55
RUN python -m pip install --upgrade pip
66

77
# optimizing the docker caching behaviour
88
COPY requirements.txt .
9+
10+
# Before the pip install step, add:
11+
RUN apt-get update && apt-get install -y \
12+
build-essential \
13+
python3-dev \
14+
libpq-dev \
15+
libxml2-dev \
16+
libxslt1-dev \
17+
zlib1g-dev \
18+
libcairo2-dev \
19+
libpango1.0-dev \
20+
&& apt-get clean \
21+
&& rm -rf /var/lib/apt/lists/*
22+
23+
# Alternatively, for psycopg2 specifically:
24+
# Replace psycopg2 with psycopg2-binary in requirements.txt
925
RUN python -m pip install --no-cache-dir -r requirements.txt
1026
COPY . .
1127

apps/__init__.py

Whitespace-only changes.

apps/jobs/__init__.py

Whitespace-only changes.

apps/jobs/admin.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from django.contrib import admin
2+
3+
# Register your models here.

apps/jobs/apps.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
from django.apps import AppConfig
2+
3+
4+
class JobsConfig(AppConfig):
5+
default_auto_field = 'django.db.models.BigAutoField'
6+
name = 'apps.jobs'

apps/jobs/cms_apps.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
from cms.app_base import CMSApp
2+
from cms.apphook_pool import apphook_pool
3+
4+
@apphook_pool.register
5+
class JobsApp(CMSApp):
6+
app_name = "jobs"
7+
name = "Jobs App"
8+
9+
def get_urls(self, *args, **kwargs):
10+
return ["apps.jobs.urls"]

apps/jobs/migrations/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)