Skip to content

Commit 6060155

Browse files
committed
feat: get the full flow working now
1 parent 3e0cc10 commit 6060155

Some content is hidden

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

50 files changed

+19
-2132
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,4 @@ db.sqlite3
2121

2222
.idea/
2323
.env
24+
node_modules/*

apps/countries/__init__.py

Whitespace-only changes.

apps/countries/admin.py

-3
This file was deleted.

apps/countries/apps.py

-7
This file was deleted.

apps/countries/cms_apps.py

-11
This file was deleted.

apps/countries/migrations/__init__.py

Whitespace-only changes.

apps/countries/models.py

-3
This file was deleted.

apps/countries/templates/countries/country-list.html

-32
This file was deleted.

apps/countries/tests.py

-3
This file was deleted.

apps/countries/urls.py

-8
This file was deleted.

apps/countries/views.py

-14
This file was deleted.

apps/gist/__init__.py

Whitespace-only changes.

apps/gist/admin.py

-3
This file was deleted.

apps/gist/apps.py

-6
This file was deleted.

apps/gist/cms_apps.py

-11
This file was deleted.

apps/gist/migrations/__init__.py

Whitespace-only changes.

apps/gist/models.py

-3
This file was deleted.

apps/gist/tests.py

-3
This file was deleted.

apps/gist/urls.py

-8
This file was deleted.

apps/gist/views.py

-12
This file was deleted.

apps/gist/templates/gist/gist_list.html renamed to apps/jobs/templates/jobs/job_list.html

+3-6
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,8 @@
33
{% page_attribute "page_title" as title %}
44

55
{% block content %}
6-
{{ js_links }}
7-
{{ css_links }}
8-
{{ main_js_links }}
9-
<div id="root" class="gist-wrapper" data-url="{{api_url}}"
10-
data-baseUrl="{% url "gist:gist-list" %}"></div>
6+
<div id="root" class="jobs" data-url="{{api_url}}"
7+
data-baseUrl="{% url "jobs:jobs-list" %}"></div>
118

129
{% addtoblock "js" %}
1310
{% for main_js_link in main_js_links %}
@@ -30,4 +27,4 @@
3027
{% endwith %}
3128
{% endfor %}
3229
{% endaddtoblock %}
33-
{% endblock content %}
30+
{% endblock content %}

backend/settings.py

+8-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55

66
# Build paths inside the project like this: BASE_DIR / 'subdir'.
77
BASE_DIR = Path(__file__).resolve().parent.parent
8+
from dotenv import load_dotenv
89

10+
load_dotenv()
911

1012
# SECURITY WARNING: keep the secret key used in production secret!
1113
SECRET_KEY = os.environ.get('SECRET_KEY', '<a string of random characters>')
@@ -27,8 +29,7 @@
2729

2830
INSTALLED_APPS = [
2931
'backend',
30-
'apps.gist',
31-
'apps.countries',
32+
'apps.jobs',
3233

3334
# optional, but used in most projects
3435
'djangocms_admin_style',
@@ -99,6 +100,7 @@
99100
'cms.middleware.language.LanguageCookieMiddleware',
100101
]
101102

103+
102104
ROOT_URLCONF = 'backend.urls'
103105

104106
TEMPLATES = [
@@ -156,6 +158,10 @@
156158
DATABASES = {'default': dj_database_url.parse(DATABASE_URL)}
157159

158160

161+
print("DEBUG" * 100)
162+
print(DATABASES, DATABASE_URL)
163+
print("DEBUG" * 100)
164+
159165
# Password validation
160166
# https://docs.djangoproject.com/en/3.1/ref/settings/#auth-password-validators
161167

backend/static/js/countries

-1
This file was deleted.

backend/static/js/gist/.gitignore

-24
This file was deleted.

backend/static/js/gist/README.md

-50
This file was deleted.

backend/static/js/gist/build/.vite/manifest.json

-18
This file was deleted.

0 commit comments

Comments
 (0)