-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0d738a0
commit bfd5d79
Showing
9,311 changed files
with
2,007,112 additions
and
0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
from django.contrib import admin | ||
from buyer.models import Buyer | ||
|
||
|
||
# Register your models here. | ||
admin.site.register(Buyer) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
from django.apps import AppConfig | ||
|
||
|
||
class BuyerConfig(AppConfig): | ||
default_auto_field = 'django.db.models.BigAutoField' | ||
name = 'buyer' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Generated by Django 5.0 on 2023-12-28 09:48 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
initial = True | ||
|
||
dependencies = [ | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='Buyer', | ||
fields=[ | ||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('full_name', models.CharField(max_length=255)), | ||
('email', models.EmailField(max_length=254, unique=True)), | ||
('password', models.CharField(max_length=255)), | ||
('profile_pic', models.FileField(default='sad.jpg', upload_to='buyer_pics')), | ||
('address', models.CharField(max_length=255)), | ||
('mobile', models.CharField(max_length=255)), | ||
], | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Generated by Django 5.0 on 2023-12-28 13:37 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('buyer', '0001_initial'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='buyer', | ||
name='profile_pic', | ||
field=models.FileField(default='sad.jpg', upload_to='buyer_pics'), | ||
), | ||
] |
Empty file.
Binary file not shown.
Binary file added
BIN
+849 Bytes
buyer/migrations/__pycache__/0002_alter_buyer_profile_pic.cpython-311.pyc
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
from django.db import models | ||
|
||
# Create your models here. | ||
# one model = one python class = one table in database | ||
|
||
class Buyer(models.Model): | ||
full_name = models.CharField(max_length = 255) | ||
email = models.EmailField(unique = True) | ||
password = models.CharField(max_length = 255) | ||
profile_pic = models.FileField(upload_to = 'buyer_pics', default='sad.jpg') | ||
address = models.CharField(max_length = 255) | ||
mobile = models.CharField(max_length = 255) | ||
|
||
def __str__(self): | ||
return self.full_name |
Oops, something went wrong.