Skip to content

Commit

Permalink
Release v1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
app-generator committed Mar 21, 2024
1 parent 3d2bb40 commit 647d454
Show file tree
Hide file tree
Showing 26 changed files with 229 additions and 427 deletions.
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# Change Log

## [1.0.0] 2024-03-21
### Changes

- Stable Version
- Search
- Tags
- Dynamic Data
- Site Name
- Copyright
- Tags [ via seeder ]
- HomePage VIDEO
- Discounts
- and much more ...

## [0.0.6] 2024-03-20
### Changes

Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,12 @@ $ python manage.py makemigrations
$ python manage.py migrate
```

> 👉 Seed DB
```bash
$ python manage.py seed_tags
```

> 👉 `Create Superuser` & Start the APP
```bash
Expand Down
219 changes: 172 additions & 47 deletions apps/common/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# Generated by Django 4.2.9 on 2024-03-10 18:10
# Generated by Django 4.2.9 on 2024-03-21 16:25

import autoslug.fields
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django_quill.fields


class Migration(migrations.Migration):
Expand Down Expand Up @@ -35,6 +37,91 @@ class Migration(migrations.Migration):
"abstract": False,
},
),
migrations.CreateModel(
name="Color",
fields=[
(
"id",
models.BigAutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
("created_at", models.DateTimeField(auto_now_add=True)),
("updated_at", models.DateTimeField(auto_now=True)),
("name", models.CharField(max_length=50)),
],
options={
"abstract": False,
},
),
migrations.CreateModel(
name="Product",
fields=[
(
"id",
models.BigAutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
("created_at", models.DateTimeField(auto_now_add=True)),
("updated_at", models.DateTimeField(auto_now=True)),
("name", models.CharField(max_length=255)),
(
"slug",
autoslug.fields.AutoSlugField(
editable=False, populate_from="name", unique=True
),
),
(
"img_main",
models.ImageField(blank=True, null=True, upload_to="product"),
),
(
"img_1",
models.ImageField(blank=True, null=True, upload_to="product"),
),
(
"img_2",
models.ImageField(blank=True, null=True, upload_to="product"),
),
(
"img_3",
models.ImageField(blank=True, null=True, upload_to="product"),
),
(
"img_4",
models.ImageField(blank=True, null=True, upload_to="product"),
),
(
"img_5",
models.ImageField(blank=True, null=True, upload_to="product"),
),
("url_video", models.URLField(blank=True, null=True)),
(
"short_description",
models.CharField(blank=True, max_length=100, null=True),
),
("description", models.TextField(blank=True, null=True)),
("stock", models.IntegerField(blank=True, null=True)),
("featured", models.BooleanField(default=False)),
(
"discount",
models.DecimalField(
blank=True, decimal_places=2, max_digits=5, null=True
),
),
("price", models.DecimalField(decimal_places=2, max_digits=10)),
],
options={
"abstract": False,
},
),
migrations.CreateModel(
name="ProductStripe",
fields=[
Expand Down Expand Up @@ -63,6 +150,48 @@ class Migration(migrations.Migration):
"abstract": False,
},
),
migrations.CreateModel(
name="Settings",
fields=[
(
"id",
models.BigAutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
("created_at", models.DateTimeField(auto_now_add=True)),
("updated_at", models.DateTimeField(auto_now=True)),
(
"type",
models.CharField(
choices=[
("site_name", "Site name"),
("copyright", "Copyright"),
("stripe_pub_key", "Stripe publishable key"),
("stripe_sec_key", "Stripe secret key"),
("social_twitter", "Social twitter"),
("social_instagram", "Social instagram"),
("social_github", "Social github"),
("social_facebook", "Social facebook"),
("legal_privacy", "Legal privacy"),
("legal_terms", "Legal terms"),
("hero_video", "Hero video"),
],
max_length=255,
unique=True,
),
),
("value", models.TextField(blank=True, null=True)),
("value_html", django_quill.fields.QuillField(blank=True, null=True)),
("file", models.FileField(blank=True, null=True, upload_to="hero/")),
],
options={
"abstract": False,
},
),
migrations.CreateModel(
name="Tag",
fields=[
Expand All @@ -78,6 +207,12 @@ class Migration(migrations.Migration):
("created_at", models.DateTimeField(auto_now_add=True)),
("updated_at", models.DateTimeField(auto_now=True)),
("name", models.CharField(max_length=255)),
(
"slug",
autoslug.fields.AutoSlugField(
editable=False, populate_from="name", unique=True
),
),
],
options={
"abstract": False,
Expand Down Expand Up @@ -112,7 +247,7 @@ class Migration(migrations.Migration):
},
),
migrations.CreateModel(
name="Product",
name="ProductProps",
fields=[
(
"id",
Expand All @@ -125,54 +260,35 @@ class Migration(migrations.Migration):
),
("created_at", models.DateTimeField(auto_now_add=True)),
("updated_at", models.DateTimeField(auto_now=True)),
("name", models.CharField(max_length=255)),
(
"img_main",
models.ImageField(blank=True, null=True, upload_to="product"),
),
(
"img_1",
models.ImageField(blank=True, null=True, upload_to="product"),
),
(
"img_2",
models.ImageField(blank=True, null=True, upload_to="product"),
),
("prop", models.CharField(max_length=255)),
("value", models.CharField(max_length=255)),
(
"img_3",
models.ImageField(blank=True, null=True, upload_to="product"),
),
(
"img_4",
models.ImageField(blank=True, null=True, upload_to="product"),
),
(
"img_5",
models.ImageField(blank=True, null=True, upload_to="product"),
),
(
"short_description",
models.CharField(blank=True, max_length=100, null=True),
),
("description", models.TextField(blank=True, null=True)),
("stock", models.IntegerField(blank=True, null=True)),
("featured", models.BooleanField(default=False)),
("promo", models.BooleanField(default=False)),
("price", models.DecimalField(decimal_places=2, max_digits=10)),
(
"product_stripe",
models.OneToOneField(
"product",
models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE,
related_name="product",
to="common.productstripe",
related_name="product_props",
to="common.product",
),
),
("tags", models.ManyToManyField(blank=True, to="common.tag")),
],
options={
"abstract": False,
},
),
migrations.AddField(
model_name="product",
name="product_stripe",
field=models.OneToOneField(
on_delete=django.db.models.deletion.CASCADE,
related_name="product",
to="common.productstripe",
),
),
migrations.AddField(
model_name="product",
name="tags",
field=models.ManyToManyField(blank=True, to="common.tag"),
),
migrations.CreateModel(
name="Order",
fields=[
Expand All @@ -185,12 +301,8 @@ class Migration(migrations.Migration):
verbose_name="ID",
),
),
(
"cart",
models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE, to="common.cart"
),
),
("created_at", models.DateTimeField(auto_now_add=True, null=True)),
("cart", models.ManyToManyField(to="common.cart")),
(
"user",
models.ForeignKey(
Expand All @@ -199,6 +311,19 @@ class Migration(migrations.Migration):
),
),
],
options={
"ordering": ["-created_at"],
},
),
migrations.AddField(
model_name="cart",
name="color",
field=models.ForeignKey(
blank=True,
null=True,
on_delete=django.db.models.deletion.CASCADE,
to="common.color",
),
),
migrations.AddField(
model_name="cart",
Expand Down

This file was deleted.

This file was deleted.

18 changes: 0 additions & 18 deletions apps/common/migrations/0004_alter_order_id.py

This file was deleted.

Loading

0 comments on commit 647d454

Please sign in to comment.