Skip to content

Commit f79748e

Browse files
committed
Release v0.0.3
1 parent e4c4523 commit f79748e

File tree

4 files changed

+53
-17
lines changed

4 files changed

+53
-17
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Change Log
22

3+
## [0.0.3] 2022-10-30
4+
### Fixes
5+
6+
- dummy
7+
38
## [0.0.2] 2022-10-30
49
### Dummy
510

MANIFEST.in

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
include LICENSE.md
22
include README.md
3-
recursive-include django_dyn_tb *
3+
recursive-include django_dyn_tb/static *
44
recursive-include django_dyn_tb/templates *
5-
recursive-include django_dyn_tb/templates/static *
65
recursive-include docs *

README.md

Lines changed: 45 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,57 @@ $ pip install git+https://github.com/app-generator/django-dynamic-datatb.git
3030

3131
<br />
3232

33-
> **Step #2** - `Update Configuration`, include the new APPs
33+
> **Step #2** - Update Configuration, `add new imports`
34+
35+
```python
36+
import os, inspect
37+
import django_dyn_dt
38+
```
39+
40+
<br />
41+
42+
> **Step #3** - Update Configuration, `include the new APPs`
3443
3544
```python
3645
INSTALLED_APPS = [
37-
'django_dyn_dt', # Django Dynamic Data tables # <-- NEW
46+
'django_dyn_dt', # <-- NEW App
47+
]
48+
```
49+
50+
<br />
51+
52+
> **Step #4** - Update Configuration, include the new `TEMPLATES` DIR
53+
54+
```python
55+
56+
TEMPLATE_DIR_DATATB = os.path.join(BASE_DIR, "django_dyn_dt/templates") # <-- NEW App
57+
58+
TEMPLATES = [
59+
{
60+
"BACKEND": "django.template.backends.django.DjangoTemplates",
61+
"DIRS": [TEMPLATE_DIR_DATATB], # <-- NEW Include
62+
"APP_DIRS": True,
63+
"OPTIONS": {
64+
},
65+
},
3866
]
3967
```
4068

4169
<br />
4270

43-
> **Step #3** - `Register the model` in `core/settings.py` (DYNAMIC_API section)
71+
> **Step #5** - Update Configuration, update `STATICFILES_DIRS` DIR
72+
73+
```python
74+
DYN_DB_PKG_ROOT = os.path.dirname( inspect.getfile( django_dyn_dt ) ) # <-- NEW App
75+
76+
STATICFILES_DIRS = (
77+
os.path.join(DYN_DB_PKG_ROOT, "templates/static"),
78+
)
79+
```
80+
81+
<br />
82+
83+
> **Step #6** - `Register the model` in `core/settings.py` (DYNAMIC_DATATB section)
4484
4585
This sample code assumes that `app1` exists and model `Book` is defined and migrated.
4686

@@ -55,16 +95,8 @@ DYNAMIC_DATATB = {
5595

5696
<br />
5797

58-
> **Step #4** - `Migrate DB`
59-
60-
```bash
61-
$ python manage.py makemigrations
62-
$ python manage.py migrate
63-
```
64-
65-
<br />
6698

67-
> **Step #5** - `Update routing`, include APIs
99+
> **Step #7** - `Update routing`, include APIs
68100
69101
```python
70102
from django.contrib import admin
@@ -78,7 +110,7 @@ urlpatterns = [
78110

79111
<br />
80112

81-
> **Step #7** - Use the Dynamic Datatable module
113+
> **Step #8** - Use the Dynamic Datatable module
82114
83115
If the managed model is `Books`, the dynamic interface is `/datatb/books/` and all features available.
84116

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88

99
setup(
1010
name='django-dynamic-datatb',
11-
version='0.0.2',
11+
version='0.0.3',
1212
zip_safe=False,
1313
packages=find_packages(),
1414
include_package_data=True,
15-
description='Django Dynamic API over DRF',
15+
description='Django Dynamic Datatables',
1616
long_description=README,
1717
long_description_content_type="text/markdown",
1818
url='https://github.com/app-generator/django-dynamic-datatb',

0 commit comments

Comments
 (0)