add packaging config for ui

This commit is contained in:
Alejandro Diaz 2023-09-11 04:35:09 -06:00
parent 6ebf7c56a7
commit 3b77c17496
5 changed files with 5 additions and 5 deletions

2
ui/MANIFEST.in Normal file
View file

@ -0,0 +1,2 @@
recursive-include homemanager *
recursive-include templates *

View file

@ -55,7 +55,7 @@ ROOT_URLCONF = 'homemanager.urls'
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [BASE_DIR / 'templates'],
'DIRS': [BASE_DIR / 'main' / 'templates'],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [

View file

@ -1,4 +1,4 @@
from distutils.core import setup
from distutils.core import setup, find_packages
from glob import glob
setup(name='homemanager',
@ -7,7 +7,5 @@ setup(name='homemanager',
author='Alejandro Diaz',
author_email='al.diaz@estudiantec.cr',
packages=['homemanager', 'main'],
data_files = [
('templates', glob('templates/**/*', recursive=True))
]
zip_safe=False,
)