Skip to content

Commit dccb3ec

Browse files
committed
Served build file
1 parent 04b4802 commit dccb3ec

File tree

4 files changed

+9
-1
lines changed

4 files changed

+9
-1
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,3 +134,5 @@ dashboard_openapi.yaml
134134
storefront_openapi.yaml
135135

136136
celerybeat-schedule.db
137+
138+
admin-build/

nxtbn/home/urls.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@
77

88
urlpatterns = [
99
path('', home_views.home, name='home'),
10+
path('dashboard/', home_views.index, name='index'),
1011
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)

nxtbn/home/views.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,6 @@ def home(request):
1010
# return redirect(reverse('api_playground'))
1111
# else:
1212
# return redirect(reverse('account_login'))
13+
14+
def index(request):
15+
return render(request, 'index.html')

nxtbn/settings.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ def get_env_var(key, default=None, var_type=str):
162162
'DIRS': [
163163
os.path.join(BASE_DIR, 'templates'),
164164
os.path.join(BASE_DIR, 'nxtbn.pluggins'),
165+
os.path.join(BASE_DIR, 'admin-build'),
165166
],
166167
'APP_DIRS': True,
167168
'OPTIONS': {
@@ -248,7 +249,8 @@ def get_env_var(key, default=None, var_type=str):
248249
STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')
249250

250251
STATICFILES_DIRS = [
251-
os.path.join(BASE_DIR, 'static')
252+
os.path.join(BASE_DIR, 'static'),
253+
os.path.join(BASE_DIR, 'admin-build/static'),
252254
]
253255

254256
MEDIA_URL = '/media/'

0 commit comments

Comments
 (0)