Skip to content

Commit 40c4a56

Browse files
committed
Release v0.0.3
1 parent f1fdf8b commit 40c4a56

File tree

3 files changed

+101
-1
lines changed

3 files changed

+101
-1
lines changed

CHANGELOG.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Change Log
2+
3+
## [0.0.3] 2024-09-23
4+
### Changes
5+
6+
- Added `model_add_field`
7+
8+
## [0.0.2] 2024-09-22
9+
### Changes
10+
11+
- Added helpers
12+
- Code refactoring
13+
- Integrate AST Processor
14+
- Generate code via AST
15+
- Added Helpers:
16+
- URLs
17+
- Dependencies
18+
- ENV
19+
- Settings
20+
- Apps
21+
- Interface with Django Core
22+
23+
## [0.0.1] 2024-09-19
24+
### Changes
25+
26+
- Initial stuff added
27+

LICENSE.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# EULA
2+
3+
Copyright (c) 2019 - present [AppSeed](http://appseed.us/)
4+
5+
<br />
6+
7+
---
8+
For more information regarding licensing, contact the AppSeed Service < *[email protected]* >

README.md

Lines changed: 66 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,66 @@
1-
# dynamic-django
1+
# [Dynamic Django](https://github.com/app-generator/dynamic-django)
2+
3+
**Dynamic Programming Patterns** applied in `Python/Django` - Actively supported by [AppSeed](https://appseed.us/).
4+
5+
For support create a new issue on the REPO or send an email to `[email protected]`.
6+
7+
## Features
8+
9+
- [OK] Dynamic API via DRF
10+
- [WIP] Dynamic DT
11+
- [WIP] Models Editor
12+
- [WIP] Configuration Updater
13+
14+
## Quick Start
15+
16+
```
17+
# Clone Repo
18+
$ git clone https://github.com/app-generator/dynamic-django.git
19+
```
20+
21+
> Create VENV
22+
23+
```bash
24+
$ virtualenv env
25+
$ source env/bin/activate
26+
$ pip install -r requirements.txt
27+
```
28+
29+
> Set Up Database
30+
31+
```bash
32+
$ python manage.py makemigrations
33+
$ python manage.py migrate
34+
```
35+
36+
> Start the Project
37+
38+
```bash
39+
$ python manage.py createsuperuser # create the admin
40+
$ python manage.py runserver # start the project
41+
```
42+
43+
## Update model
44+
45+
```bash
46+
$ python
47+
>>> from cli import *
48+
>>> add_model('home', 'Stats')
49+
>>> # Syntax: model_add_field('APP_NAME_HERE', 'MODEL_NAME_HERE', 'FIELD_NAME', 'FIELD_TYPE')
50+
>>> add_model_field('home', 'Stats', 'aInt', 'int')
51+
>>> add_model_field('home', 'Stats', 'aChar', 'str')
52+
>>> add_model_field('home', 'Stats', 'aText', 'text')
53+
```
54+
55+
The file is automatically reformated using `black` and DB migrated.
56+
57+
## DB Backup / RESET / Restore
58+
59+
```bash
60+
$ python manage.py dbbackup -o 20240930-001.dump # backup
61+
$ python manage.py reset_db # RESET_DB [ Danger, all tables wipped ]
62+
$ python manage.py dbrestore -i 20240930-001.dump # restore
63+
```
64+
65+
---
66+
[Dynamic Django](https://github.com/app-generator/dynamic-django) - Open-source project crafted by AppSeed

0 commit comments

Comments
 (0)