Skip to content

Commit

Permalink
create shop app
Browse files Browse the repository at this point in the history
  • Loading branch information
behshadrhp committed Oct 1, 2023
1 parent dded3ba commit 5c69b96
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 1 deletion.
2 changes: 1 addition & 1 deletion core/settings/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
'django.contrib.messages',
'django.contrib.staticfiles',
# Internal App

'shop',
# External App
'debug_toolbar',
'axes',
Expand Down
1 change: 1 addition & 0 deletions core/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

urlpatterns = [
path(f'{ADMIN_DIRECTORY}/', admin.site.urls),
path('', include('shop.urls')),
]

urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
Expand Down
Empty file added shop/__init__.py
Empty file.
3 changes: 3 additions & 0 deletions shop/admin.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from django.contrib import admin

# Register your models here.
6 changes: 6 additions & 0 deletions shop/apps.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
from django.apps import AppConfig


class ShopConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'shop'
Empty file added shop/migrations/__init__.py
Empty file.
3 changes: 3 additions & 0 deletions shop/models.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from django.db import models

# Create your models here.
6 changes: 6 additions & 0 deletions shop/urls.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
from django.urls import path


urlpatterns = [

]
3 changes: 3 additions & 0 deletions shop/views.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from django.shortcuts import render

# Create your views here.

0 comments on commit 5c69b96

Please sign in to comment.