Skip to content

Commit 663015a

Browse files
author
mominur-helios
committed
Refactor code and add jazzmin
1 parent 3656dc7 commit 663015a

Some content is hidden

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

75 files changed

+4351
-21
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ COPY . .
1515
RUN python manage.py migrate
1616

1717
# gunicorn
18-
CMD ["gunicorn", "--config", "gunicorn-cfg.py", "core.wsgi"]
18+
CMD ["gunicorn", "--config", "gunicorn-cfg.py", "config.wsgi"]
File renamed without changes.
File renamed without changes.

apps/charts/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 ChartsConfig(AppConfig):
5+
default_auto_field = 'django.db.models.BigAutoField'
6+
name = 'apps.charts'
File renamed without changes.
File renamed without changes.
File renamed without changes.

apps/charts/urls.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
from django.urls import path
2+
3+
from apps.charts import views
4+
5+
urlpatterns = [
6+
path("", views.index, name="charts"),
7+
]

apps/charts/views.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
from django.shortcuts import render
2+
from django.core import serializers
3+
from apps.pages.models import *
4+
5+
# Create your views here.
6+
7+
def index(request):
8+
products = serializers.serialize('json', Product.objects.all())
9+
context = {
10+
'segment': 'charts',
11+
'products': products
12+
}
13+
return render(request, 'charts/index.html', context)

apps/dyn_api/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# -*- encoding: utf-8 -*-
2+
"""
3+
Copyright (c) 2019 - present AppSeed.us
4+
"""
5+

0 commit comments

Comments
 (0)