diff --git a/core/__pycache__/__init__.cpython-310.pyc b/core/__pycache__/__init__.cpython-310.pyc new file mode 100644 index 00000000..8d8c20ed Binary files /dev/null and b/core/__pycache__/__init__.cpython-310.pyc differ diff --git a/core/__pycache__/admin.cpython-310.pyc b/core/__pycache__/admin.cpython-310.pyc new file mode 100644 index 00000000..8e374bee Binary files /dev/null and b/core/__pycache__/admin.cpython-310.pyc differ diff --git a/core/__pycache__/apps.cpython-310.pyc b/core/__pycache__/apps.cpython-310.pyc new file mode 100644 index 00000000..b21be596 Binary files /dev/null and b/core/__pycache__/apps.cpython-310.pyc differ diff --git a/core/__pycache__/forms.cpython-310.pyc b/core/__pycache__/forms.cpython-310.pyc new file mode 100644 index 00000000..d841e8f1 Binary files /dev/null and b/core/__pycache__/forms.cpython-310.pyc differ diff --git a/core/__pycache__/models.cpython-310.pyc b/core/__pycache__/models.cpython-310.pyc new file mode 100644 index 00000000..65d28d7c Binary files /dev/null and b/core/__pycache__/models.cpython-310.pyc differ diff --git a/core/__pycache__/urls.cpython-310.pyc b/core/__pycache__/urls.cpython-310.pyc new file mode 100644 index 00000000..97711944 Binary files /dev/null and b/core/__pycache__/urls.cpython-310.pyc differ diff --git a/core/__pycache__/views.cpython-310.pyc b/core/__pycache__/views.cpython-310.pyc new file mode 100644 index 00000000..27f73614 Binary files /dev/null and b/core/__pycache__/views.cpython-310.pyc differ diff --git a/core/migrations/0002_remove_movie_descripion_movie_description_and_more.py b/core/migrations/0002_remove_movie_descripion_movie_description_and_more.py new file mode 100644 index 00000000..f08498c9 --- /dev/null +++ b/core/migrations/0002_remove_movie_descripion_movie_description_and_more.py @@ -0,0 +1,58 @@ +# Generated by Django 4.1.5 on 2023-01-11 15:17 + +from django.db import migrations, models +import uuid + + +class Migration(migrations.Migration): + + dependencies = [ + ('core', '0001_initial'), + ] + + operations = [ + migrations.RemoveField( + model_name='movie', + name='descripion', + ), + migrations.AddField( + model_name='movie', + name='description', + field=models.TextField(blank=True), + ), + migrations.AlterField( + model_name='customuser', + name='profiles', + field=models.ManyToManyField(to='core.profile'), + ), + migrations.AlterField( + model_name='movie', + name='age_limit', + field=models.CharField(blank=True, choices=[('All', 'All'), ('Kids', 'Kids')], max_length=5, null=True), + ), + migrations.AlterField( + model_name='movie', + name='flyer', + field=models.ImageField(blank=True, null=True, upload_to='flyers'), + ), + migrations.AlterField( + model_name='movie', + name='type', + field=models.CharField(choices=[('single', 'Single'), ('seasonal', 'Seasonal')], max_length=10), + ), + migrations.AlterField( + model_name='movie', + name='uuid', + field=models.UUIDField(default=uuid.uuid4, unique=True), + ), + migrations.AlterField( + model_name='profile', + name='age_limit', + field=models.CharField(choices=[('All', 'All'), ('Kids', 'Kids')], max_length=5), + ), + migrations.AlterField( + model_name='profile', + name='uuid', + field=models.UUIDField(default=uuid.uuid4, unique=True), + ), + ] diff --git a/core/migrations/__pycache__/0001_initial.cpython-310.pyc b/core/migrations/__pycache__/0001_initial.cpython-310.pyc new file mode 100644 index 00000000..c9f1e24b Binary files /dev/null and b/core/migrations/__pycache__/0001_initial.cpython-310.pyc differ diff --git a/core/migrations/__pycache__/__init__.cpython-310.pyc b/core/migrations/__pycache__/__init__.cpython-310.pyc new file mode 100644 index 00000000..addae6d4 Binary files /dev/null and b/core/migrations/__pycache__/__init__.cpython-310.pyc differ diff --git a/core/models.py b/core/models.py index e72191b7..46bc3477 100644 --- a/core/models.py +++ b/core/models.py @@ -27,7 +27,7 @@ def __str__(self): class Movie(models.Model): title:str=models.CharField(max_length=225) - description:str=models.TextField() + description:str=models.TextField(blank=True) created =models.DateTimeField(auto_now_add=True) uuid=models.UUIDField(default=uuid.uuid4,unique=True) type=models.CharField(max_length=10,choices=MOVIE_TYPE) diff --git a/db.sqlite3 b/db.sqlite3 new file mode 100644 index 00000000..e69de29b diff --git a/django_netflix/__pycache__/__init__.cpython-310.pyc b/django_netflix/__pycache__/__init__.cpython-310.pyc new file mode 100644 index 00000000..f56179be Binary files /dev/null and b/django_netflix/__pycache__/__init__.cpython-310.pyc differ diff --git a/django_netflix/__pycache__/settings.cpython-310.pyc b/django_netflix/__pycache__/settings.cpython-310.pyc new file mode 100644 index 00000000..51f9e1c7 Binary files /dev/null and b/django_netflix/__pycache__/settings.cpython-310.pyc differ diff --git a/django_netflix/__pycache__/urls.cpython-310.pyc b/django_netflix/__pycache__/urls.cpython-310.pyc new file mode 100644 index 00000000..be96936e Binary files /dev/null and b/django_netflix/__pycache__/urls.cpython-310.pyc differ diff --git a/django_netflix/__pycache__/wsgi.cpython-310.pyc b/django_netflix/__pycache__/wsgi.cpython-310.pyc new file mode 100644 index 00000000..823fc841 Binary files /dev/null and b/django_netflix/__pycache__/wsgi.cpython-310.pyc differ diff --git a/django_netflix/settings.py b/django_netflix/settings.py index b0df557b..f13cdfc4 100644 --- a/django_netflix/settings.py +++ b/django_netflix/settings.py @@ -137,6 +137,7 @@ # Auth stting AUTH_USER_MODEL='core.CustomUser' +DEFAULT_AUTO_FIELD = 'django.db.models.AutoField' # new AUTHENTICATION_BACKENDS = [