You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Authenticated user are able to save their information and an IMAGE avatar.
126
+
The fields that manage the user information can be found in [apps/users/models.py](https://github.com/app-generator/rocket-django/blob/main/apps/users/models.py)
127
+
128
+
```python
129
+
ROLE_CHOICES= (
130
+
('admin' , 'Admin'),
131
+
('user' , 'User'),
132
+
)
133
+
classProfile(models.Model):
134
+
user = models.OneToOneField(User, on_delete=models.CASCADE)
135
+
role = models.CharField(max_length=20, choices=ROLE_CHOICES, default='user')
Here is the correspondent UI (requires authentication)
149
+
150
+

151
+
152
+
153
+
## ✅ API Via DRF
154
+
155
+
The [Products](https://github.com/app-generator/rocket-django/blob/main/apps/common/models.py) model is managed in two different ways: via API (powered by DRF) and a simple, intuitive DataTable view.
156
+
157
+
```python
158
+
classProduct(models.Model):
159
+
id= models.AutoField(primary_key=True)
160
+
name = models.CharField(max_length=100)
161
+
info = models.CharField(max_length=100, default='')
The authenticated users are able to submit products using the DRF UI:
169
+
170
+

171
+
172
+
173
+
## ✅ DataTables
174
+
175
+
`Products` information can be easily managed using the DataTable layout styled with Tailwind & Flowbite. Supported features:
176
+
177
+
- Create/Update/Delete
178
+
- Pagination
179
+
- Search
180
+
181
+

182
+
183
+
## ✅ Resources
184
+
185
+
- 👉 Access [AppSeed](https://appseed.us/) for more starters and support
186
+
- 👉 [Deploy Projects on Aws, Azure and DO](https://www.docs.deploypro.dev/) via **DeployPRO**
187
+
- 👉 Create landing pages with [Simpllo, an open-source site builder](https://www.simpllo.com/)
188
+
- 👉 Build apps with [Django App Generator](https://app-generator.dev/django/) (free service)
0 commit comments