Skip to content

Commit

Permalink
Minor update
Browse files Browse the repository at this point in the history
  • Loading branch information
hummzer committed Jun 16, 2024
1 parent 6ba848a commit 9b7f647
Show file tree
Hide file tree
Showing 74 changed files with 30 additions and 177 deletions.
Binary file modified db.sqlite3
Binary file not shown.
Binary file modified gallery/__pycache__/__init__.cpython-311.pyc
Binary file not shown.
Binary file modified gallery/__pycache__/settings.cpython-311.pyc
Binary file not shown.
Binary file modified gallery/__pycache__/urls.cpython-311.pyc
Binary file not shown.
Binary file modified gallery/__pycache__/wsgi.cpython-311.pyc
Binary file not shown.
2 changes: 1 addition & 1 deletion gallery/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
from django.conf.urls.static import static

urlpatterns = [
path("admin/", admin.site.urls),
path("admin", admin.site.urls),

path('', include('main.urls'))
]
Expand Down
Binary file added landimages/gaming1_clHLrwn.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added landimages/gaming2_PJ2qrs3.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added landimages/gaming3_iUTfyIu.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added landimages/gaming4_3B7e5hI.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added landimages/gaming5_L9zPJfa.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added landimages/king2.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added landimages/king4_pef7NjJ.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added landimages/kingg.webp
Binary file not shown.
Binary file added landimages/tech1_E0iwx5l.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added landimages/tech1_Jc5ZNLs.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added landimages/tech2_PBfDnwd.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added landimages/tech2_cxwqtR1.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added landimages/tech2_jFEac2y.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added landimages/tech3_8QJq4Rb.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added landimages/tech3_l8cWIx5.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added landimages/tech4_mogE0rF.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added landimages/tech4_qhxwmjO.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added landimages/teddy_BW9aSIT.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified main/__pycache__/__init__.cpython-311.pyc
Binary file not shown.
Binary file modified main/__pycache__/admin.cpython-311.pyc
Binary file not shown.
Binary file modified main/__pycache__/apps.cpython-311.pyc
Binary file not shown.
Binary file modified main/__pycache__/models.cpython-311.pyc
Binary file not shown.
Binary file modified main/__pycache__/urls.cpython-311.pyc
Binary file not shown.
Binary file modified main/__pycache__/views.cpython-311.pyc
Binary file not shown.
106 changes: 26 additions & 80 deletions main/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -1,99 +1,45 @@
# Generated by Django 5.0.6 on 2024-05-22 08:46
# Generated by Django 3.2.8 on 2024-06-16 09:30

from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
import django_resized.forms
from django.db import migrations, models


class Migration(migrations.Migration):

initial = True

dependencies = []
dependencies = [
]

operations = [
migrations.CreateModel(
name="Category",
name='Category',
fields=[
(
"id",
models.BigAutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
("title", models.CharField(blank=True, max_length=200, null=True)),
("uniqueId", models.CharField(blank=True, max_length=100, null=True)),
(
"slug",
models.SlugField(
blank=True, max_length=500, null=True, unique=True
),
),
("date_created", models.TimeField(blank=True, null=True)),
("last_updated", models.TimeField(blank=True, null=True)),
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('title', models.CharField(blank=True, max_length=200, null=True)),
('uniqueId', models.CharField(blank=True, max_length=100, null=True)),
('slug', models.SlugField(blank=True, max_length=500, null=True, unique=True)),
('date_created', models.DateTimeField(blank=True, default=django.utils.timezone.now, null=True)),
('last_updated', models.DateTimeField(auto_now=True, null=True)),
],
),
migrations.CreateModel(
name="Image",
name='Image',
fields=[
(
"id",
models.BigAutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
("description", models.TextField(blank=True, null=True)),
("altText", models.TextField(blank=True, null=True)),
("hashtags", models.CharField(blank=True, max_length=300, null=True)),
(
"landImage",
django_resized.forms.ResizedImageField(
crop=["middle", "center"],
default="default_land.jpg",
force_format=None,
keep_meta=True,
quality=-1,
scale=None,
size=[2878, 1618],
upload_to="landimages",
),
),
(
"squareImage",
django_resized.forms.ResizedImageField(
crop=["middle", "center"],
default="default_tall.jpg",
force_format=None,
keep_meta=True,
quality=-1,
scale=None,
size=[1618, 2878],
upload_to="tallimages",
),
),
("uniqueId", models.CharField(blank=True, max_length=100, null=True)),
(
"slug",
models.SlugField(
blank=True, max_length=500, null=True, unique=True
),
),
("date_created", models.TimeField(blank=True, null=True)),
("last_updated", models.TimeField(blank=True, null=True)),
(
"category",
models.ForeignKey(
blank=True,
null=True,
on_delete=django.db.models.deletion.CASCADE,
to="main.category",
),
),
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('description', models.TextField(blank=True, null=True)),
('altText', models.TextField(blank=True, null=True)),
('hashtags', models.CharField(blank=True, max_length=300, null=True)),
('squareImage', django_resized.forms.ResizedImageField(crop=['middle', 'center'], default='default_square.jpg', force_format=None, keep_meta=True, quality=0, size=[700, 700], upload_to='squareimages')),
('landImage', django_resized.forms.ResizedImageField(crop=['middle', 'center'], default='default_land.jpg', force_format=None, keep_meta=True, quality=0, size=[500, 300], upload_to='landimages')),
('tallImage', django_resized.forms.ResizedImageField(crop=['middle', 'center'], default='default_tall.jpg', force_format=None, keep_meta=True, quality=0, size=[300, 500], upload_to='tallimages')),
('uniqueId', models.CharField(blank=True, max_length=100, null=True)),
('slug', models.SlugField(blank=True, max_length=500, null=True, unique=True)),
('date_created', models.DateTimeField(auto_now_add=True, null=True)),
('last_updated', models.DateTimeField(auto_now=True, null=True)),
('category', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='main.category')),
],
),
]
41 changes: 0 additions & 41 deletions main/migrations/0002_image_tallimage_alter_image_squareimage.py

This file was deleted.

22 changes: 0 additions & 22 deletions main/migrations/0003_alter_category_date_created_and_more.py

This file was deleted.

This file was deleted.

Binary file modified main/migrations/__pycache__/0001_initial.cpython-311.pyc
Binary file not shown.
Binary file not shown.
Binary file modified main/migrations/__pycache__/__init__.cpython-311.pyc
Binary file not shown.
6 changes: 3 additions & 3 deletions main/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ class Image(models.Model):
hashtags = models.CharField(null=True, blank=True, max_length=300)

##ImageFields
squareImage = ResizedImageField(size=[1000, 1000], crop=['middle', 'center'], default='default_square.jpg', upload_to='squareimages')
landImage = ResizedImageField(size=[2878, 1618], crop=['middle', 'center'], default='default_land.jpg', upload_to='landimages')
tallImage = ResizedImageField(size=[1618, 2878], crop=['middle', 'center'], default='default_tall.jpg', upload_to='tallimages')
squareImage = ResizedImageField(size=[700, 700], crop=['middle', 'center'], default='default_square.jpg', upload_to='squareimages')
landImage = ResizedImageField(size=[700, 300], crop=['middle', 'center'], default='default_land.jpg', upload_to='landimages')
tallImage = ResizedImageField(size=[600, 1024], crop=['middle', 'center'], default='default_tall.jpg', upload_to='tallimages')

##Related Fields
category = models.ForeignKey(Category, null=True, blank=True, on_delete=models.CASCADE)
Expand Down
Binary file added squareimages/gaming1_UUauGCF.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added squareimages/gaming2_Zo8O4Vc.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added squareimages/gaming3_sdoGasm.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added squareimages/gaming4_qU4TVe7.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added squareimages/gaming5_PZL1kZ3.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added squareimages/king2_GV7JRzj.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added squareimages/king4_11SbIoO.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added squareimages/kingg.webp
Binary file not shown.
Binary file added squareimages/tech1_55WH5cK.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added squareimages/tech1_tpBZS0H.jpeg
Binary file added squareimages/tech2_GDbrTWU.jpeg
Binary file added squareimages/tech2_Rg3uWih.jpeg
Binary file added squareimages/tech2_q8s4pZG.jpeg
Binary file added squareimages/tech3_JDFr94T.jpeg
Binary file added squareimages/tech3_eMP4UpU.jpeg
Binary file added squareimages/tech4_VpFZcpD.jpeg
Binary file added squareimages/tech4_zA5kAgM.jpeg
Binary file added squareimages/teddy_aYtUUex.jpeg
Binary file added tallimages/gaming1_EsZKLfx.jpeg
Binary file added tallimages/gaming2_qKOcayW.jpeg
Binary file added tallimages/gaming3_I8UIZri.jpeg
Binary file added tallimages/gaming4_QPwVHPp.jpeg
Binary file added tallimages/gaming5_T71LPlu.jpeg
Binary file added tallimages/king2.jpeg
Binary file added tallimages/king4_czaYaCh.jpeg
Binary file added tallimages/kingg.webp
Binary file not shown.
Binary file added tallimages/tech1_25Len4P.jpeg
Binary file added tallimages/tech1_xSwz1f8.jpeg
Binary file added tallimages/tech2_5SVkYnI.jpeg
Binary file added tallimages/tech2_GFg9GDq.jpeg
Binary file added tallimages/tech3_HiosgMe.jpeg
Binary file added tallimages/tech3_ZbY3hSR.jpeg
Binary file added tallimages/tech3_xTmHPi6.jpeg
Binary file added tallimages/tech4_1vJCrT1.jpeg
Binary file added tallimages/tech4_54JVO6Y.jpeg
Binary file added tallimages/teddy_VdcKHm0.jpeg

0 comments on commit 9b7f647

Please sign in to comment.