Skip to content

POC: restructure app #2573

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 17 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
fix(attempt): attempt 47
  • Loading branch information
JacobCoffee committed Sep 19, 2024
commit 970fbc4ce804d930c3148cbb3f905b84298dcf9b
26 changes: 23 additions & 3 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
name: Check collectstatic

on: [push, pull_request]

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4

- uses: actions/setup-python@v5
with:
python-version-file: '.python-version'

- name: Cache Python dependencies
uses: actions/cache@v4
env:
Expand All @@ -20,12 +24,28 @@ jobs:
${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-
${{ runner.os }}-${{ github.job }}-
${{ runner.os }}-

- name: Install Python dependencies
run: |
pip install -U pip setuptools wheel
pip install -r requirements/requirements.txt -r requirements/prod-requirements.txt

- name: Debug Information
run: |
pwd
ls -R
cat app/manage.py
cat app/pydotorg/settings/static.py
grep -n "INSTALLED_APPS" app/pydotorg/settings/base.py

- name: Run collectstatic
run: |
export PYTHONPATH=$PYTHONPATH:${{ github.workspace }}/app
cd app
DJANGO_SETTINGS_MODULE=pydotorg.settings.static python manage.py collectstatic --noinput
export PYTHONPATH=$PYTHONPATH:${{ github.workspace }}
cd ${{ github.workspace }}
echo "PYTHONPATH: $PYTHONPATH"
echo "Current directory: $(pwd)"
ls -la
python -c "import sys; print('Python path:', sys.path)"
python -c "import django; print('Django version:', django.__version__)"
DJANGO_SETTINGS_MODULE=app.pydotorg.settings.static python -c "from django.conf import settings; print('INSTALLED_APPS:', settings.INSTALLED_APPS)"
DJANGO_SETTINGS_MODULE=app.pydotorg.settings.static python app/manage.py collectstatic --noinput
2 changes: 1 addition & 1 deletion app/pydotorg/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@

### Pipeline

from .pipeline import PIPELINE
from app.pydotorg.settings.pipeline import PIPELINE

### contrib.messages

Expand Down
2 changes: 1 addition & 1 deletion app/pydotorg/settings/cabotage.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from decouple import Csv

from .base import *
from app.pydotorg.settings.base import *

DEBUG = TEMPLATE_DEBUG = False

Expand Down
2 changes: 1 addition & 1 deletion app/pydotorg/settings/local.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from .base import *
from app.pydotorg.settings.base import *
import os

DEBUG = True
Expand Down
2 changes: 1 addition & 1 deletion app/pydotorg/settings/static.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from .base import *
from app.pydotorg.settings.base import *

DEBUG = TEMPLATE_DEBUG = False

Expand Down
Loading
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy