Add restoroo-frontend as submodule
Add apps for restaurant backend views and public views
This commit is contained in:
parent
7b5c113f82
commit
43cfed0135
17 changed files with 47 additions and 2 deletions
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
[submodule "frontend"]
|
||||||
|
path = frontend
|
||||||
|
url = git@git.kumi:restoroo/restoroo-frontend.git
|
1
frontend
Submodule
1
frontend
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit e117a67e55ec78cbee83e9fd6ea799982a3cb22e
|
3
myrestaurant/admin.py
Normal file
3
myrestaurant/admin.py
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
from django.contrib import admin
|
||||||
|
|
||||||
|
# Register your models here.
|
6
myrestaurant/apps.py
Normal file
6
myrestaurant/apps.py
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
from django.apps import AppConfig
|
||||||
|
|
||||||
|
|
||||||
|
class MyrestaurantConfig(AppConfig):
|
||||||
|
default_auto_field = 'django.db.models.BigAutoField'
|
||||||
|
name = 'myrestaurant'
|
0
myrestaurant/migrations/__init__.py
Normal file
0
myrestaurant/migrations/__init__.py
Normal file
3
myrestaurant/models.py
Normal file
3
myrestaurant/models.py
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
from django.db import models
|
||||||
|
|
||||||
|
# Create your models here.
|
3
myrestaurant/tests.py
Normal file
3
myrestaurant/tests.py
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
from django.test import TestCase
|
||||||
|
|
||||||
|
# Create your tests here.
|
3
myrestaurant/views.py
Normal file
3
myrestaurant/views.py
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
from django.shortcuts import render
|
||||||
|
|
||||||
|
# Create your views here.
|
0
public/__init__.py
Normal file
0
public/__init__.py
Normal file
3
public/admin.py
Normal file
3
public/admin.py
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
from django.contrib import admin
|
||||||
|
|
||||||
|
# Register your models here.
|
6
public/apps.py
Normal file
6
public/apps.py
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
from django.apps import AppConfig
|
||||||
|
|
||||||
|
|
||||||
|
class PublicConfig(AppConfig):
|
||||||
|
default_auto_field = 'django.db.models.BigAutoField'
|
||||||
|
name = 'public'
|
0
public/migrations/__init__.py
Normal file
0
public/migrations/__init__.py
Normal file
3
public/models.py
Normal file
3
public/models.py
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
from django.db import models
|
||||||
|
|
||||||
|
# Create your models here.
|
3
public/tests.py
Normal file
3
public/tests.py
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
from django.test import TestCase
|
||||||
|
|
||||||
|
# Create your tests here.
|
3
public/views.py
Normal file
3
public/views.py
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
from django.shortcuts import render
|
||||||
|
|
||||||
|
# Create your views here.
|
|
@ -30,6 +30,7 @@ INSTALLED_APPS = [
|
||||||
'phonenumber_field',
|
'phonenumber_field',
|
||||||
|
|
||||||
'core',
|
'core',
|
||||||
|
|
||||||
]
|
]
|
||||||
|
|
||||||
AUTH_USER_MODEL = "core.User"
|
AUTH_USER_MODEL = "core.User"
|
||||||
|
@ -50,8 +51,8 @@ ROOT_URLCONF = 'restoroo.urls'
|
||||||
TEMPLATES = [
|
TEMPLATES = [
|
||||||
{
|
{
|
||||||
'BACKEND': 'django.template.backends.django.DjangoTemplates',
|
'BACKEND': 'django.template.backends.django.DjangoTemplates',
|
||||||
'DIRS': [],
|
'DIRS': [BASE_DIR / "templates"],
|
||||||
'APP_DIRS': True,
|
'APP_DIRS': False,
|
||||||
'OPTIONS': {
|
'OPTIONS': {
|
||||||
'context_processors': [
|
'context_processors': [
|
||||||
'django.template.context_processors.debug',
|
'django.template.context_processors.debug',
|
||||||
|
@ -132,6 +133,10 @@ USE_TZ = True
|
||||||
# Static files (CSS, JavaScript, Images)
|
# Static files (CSS, JavaScript, Images)
|
||||||
# https://docs.djangoproject.com/en/4.0/howto/static-files/
|
# https://docs.djangoproject.com/en/4.0/howto/static-files/
|
||||||
|
|
||||||
|
STATICFILES_DIRS = [
|
||||||
|
BASE_DIR / "frontend/static/",
|
||||||
|
]
|
||||||
|
|
||||||
STATIC_URL = '/static/'
|
STATIC_URL = '/static/'
|
||||||
|
|
||||||
STATIC_ROOT = None if DEBUG else CONFIG_FILE.config.get("RESTOROO", "StaticRoot", fallback=BASE_DIR / "static")
|
STATIC_ROOT = None if DEBUG else CONFIG_FILE.config.get("RESTOROO", "StaticRoot", fallback=BASE_DIR / "static")
|
||||||
|
|
Loading…
Reference in a new issue