From ce7ae65bac901f93988bb13ea28241131aca5737 Mon Sep 17 00:00:00 2001 From: Fullah94 <109907016+Fullah94@users.noreply.github.com> Date: Tue, 26 Jul 2022 23:51:08 +0300 Subject: [PATCH] my app --- IMBD/IMBD/__init__.py | 0 .../IMBD/__pycache__/__init__.cpython-310.pyc | Bin 0 -> 165 bytes .../IMBD/__pycache__/settings.cpython-310.pyc | Bin 0 -> 2306 bytes IMBD/IMBD/__pycache__/urls.cpython-310.pyc | Bin 0 -> 993 bytes IMBD/IMBD/__pycache__/wsgi.cpython-310.pyc | Bin 0 -> 562 bytes IMBD/IMBD/asgi.py | 16 +++ IMBD/IMBD/settings.py | 125 ++++++++++++++++++ IMBD/IMBD/urls.py | 22 +++ IMBD/IMBD/wsgi.py | 16 +++ IMBD/db.sqlite3 | 0 IMBD/manage.py | 22 +++ IMBD/movise/__init__.py | 0 .../__pycache__/__init__.cpython-310.pyc | Bin 0 -> 167 bytes IMBD/movise/__pycache__/admin.cpython-310.pyc | Bin 0 -> 208 bytes IMBD/movise/__pycache__/apps.cpython-310.pyc | Bin 0 -> 446 bytes .../movise/__pycache__/models.cpython-310.pyc | Bin 0 -> 205 bytes IMBD/movise/__pycache__/urls.cpython-310.pyc | Bin 0 -> 384 bytes IMBD/movise/__pycache__/views.cpython-310.pyc | Bin 0 -> 899 bytes IMBD/movise/admin.py | 3 + IMBD/movise/apps.py | 6 + IMBD/movise/migrations/__init__.py | 0 .../__pycache__/__init__.cpython-310.pyc | Bin 0 -> 178 bytes IMBD/movise/models.py | 3 + IMBD/movise/tests.py | 3 + IMBD/movise/urls.py | 10 ++ IMBD/movise/views.py | 25 ++++ 26 files changed, 251 insertions(+) create mode 100644 IMBD/IMBD/__init__.py create mode 100644 IMBD/IMBD/__pycache__/__init__.cpython-310.pyc create mode 100644 IMBD/IMBD/__pycache__/settings.cpython-310.pyc create mode 100644 IMBD/IMBD/__pycache__/urls.cpython-310.pyc create mode 100644 IMBD/IMBD/__pycache__/wsgi.cpython-310.pyc create mode 100644 IMBD/IMBD/asgi.py create mode 100644 IMBD/IMBD/settings.py create mode 100644 IMBD/IMBD/urls.py create mode 100644 IMBD/IMBD/wsgi.py create mode 100644 IMBD/db.sqlite3 create mode 100644 IMBD/manage.py create mode 100644 IMBD/movise/__init__.py create mode 100644 IMBD/movise/__pycache__/__init__.cpython-310.pyc create mode 100644 IMBD/movise/__pycache__/admin.cpython-310.pyc create mode 100644 IMBD/movise/__pycache__/apps.cpython-310.pyc create mode 100644 IMBD/movise/__pycache__/models.cpython-310.pyc create mode 100644 IMBD/movise/__pycache__/urls.cpython-310.pyc create mode 100644 IMBD/movise/__pycache__/views.cpython-310.pyc create mode 100644 IMBD/movise/admin.py create mode 100644 IMBD/movise/apps.py create mode 100644 IMBD/movise/migrations/__init__.py create mode 100644 IMBD/movise/migrations/__pycache__/__init__.cpython-310.pyc create mode 100644 IMBD/movise/models.py create mode 100644 IMBD/movise/tests.py create mode 100644 IMBD/movise/urls.py create mode 100644 IMBD/movise/views.py diff --git a/IMBD/IMBD/__init__.py b/IMBD/IMBD/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/IMBD/IMBD/__pycache__/__init__.cpython-310.pyc b/IMBD/IMBD/__pycache__/__init__.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..bbff0c96666873098a4582d02e3d581cf9b6b9dd GIT binary patch literal 165 zcmd1j<>g`k0z>5oNg(<$h(HF6K#l_t7qb9~6oz01O-8?!3`HPe1o6wm*(xTqIJKxa z#>dsqKg>VIB|o_|H#M)MIL1A*#G^DR#w9B;FFij#$Tc`5-pA1?-YCY?*U1G!#K&jm dWtPOp>lIYq;;_lhPbtkwwFB8u%mgG@7yt|-CHVjV literal 0 HcmV?d00001 diff --git a/IMBD/IMBD/__pycache__/settings.cpython-310.pyc b/IMBD/IMBD/__pycache__/settings.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..eb2facf6f960bb32e7dc1c13a84c1effe8daefba GIT binary patch literal 2306 zcmb7F-EZ4e6t`VBNwa3_+I_JJWQl1bj5@3v?KII*H+I{wB(7?w1*@9n_}-+q^+)D= zy;8sO#Q(4d-~ow$$xlc;@elBT5aZZM+bEqxapLRi^YJ_9{_Z)~VWm>$;QFEYTenu> zxZksv@v8tYYjD$FU_hM3Asz`H?+cc|b6CJr-}66;KXHfChtpO8O<6@GTBSZ`&Gb1m z{WEWs;aPy^6;!ll5onNzGF|y+p77|(Td~hu6*OyIMHO@v7tpnP9GZJ85Z=0muA_Od zxsDd{@kT!0Bz#}A=FlzcI=XGmL$n3BZ=gHYP4t0v3*9xi>OH5*b6iV{M5nhZRtgRf}kCq;lgzFgmgde)xt^TrDPxBQKvInpcIiptUy}Z7mhsN=u7M z(Cf+8MAmu53>-?KDUc242|;-{xkGWJu&jY&h7IBq&&e8LcW4nt$&1S(wManx*l*&X z&koN0zq+jdutBy*Ii3ToT^67n`#2)*MTBV_EXLHD>X`MU2&X?Rzp>r+Mcqb zrL#M_ZrYulW?gS@q%)@0+HNYQW~6g_#%3e4Z#L>mRz~TJs+dX^)=2Lt9dpaxRt#fL z-%;&drP%j1UDW`v(b8;7hmt9EAmPU2XYI6*%}fh2HvzexMNj8d zZA0laO&gGPd!wN>)nB>jBVZvP{@SWP-_Ht&?l-lzzN_!6p$nT3FuK1<*jC)#SMxTv zcQnJao65Sqw4YV|a5()C%7c@%^d)RU?BN&iS?B22Fo@jj?A(-C6sJU?G+nwPmIYDZ m1->K*@5H~wcjBB-6!-!!{sZ$0$i%VxPjNv6bNCfX)BghTX%jgB literal 0 HcmV?d00001 diff --git a/IMBD/IMBD/__pycache__/urls.cpython-310.pyc b/IMBD/IMBD/__pycache__/urls.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..ca6bb440bc0e847d7fe6afea349e86b954088353 GIT binary patch literal 993 zcma)5U2oGc6m`;cEole*1iz(`MgkMOR0FZK9h(@Nv=1JtN?97at*h9MY-g~&_Sf*n z@5vJqPy7WQ5Vo626%x`c#d5B$&pqedYrebd1HHa~{4ssg0N|(j*=l{dh zhVbU{3=TM(k$EXnML6^Q>jj3lrO1m^DJ+=0g*lN53SKHK%>@Y+hj#>jkr6!R0#Yt8 zBy7e7wGgn#aVjyC825ds*Fvd6_Tw1wOh#y#vN*IYJr6z5?P}*bWSvuW&cPv zCO=ALVnBM~Ka5UUmY0aIxi-PpGtx5M%#A;%))=U%==PXg+za8Xwz9vrYu%2>7``D{ z=k8fk9?f=|^LeZd+*Aroz~TmB=>O7l3qq%Aric<2x|L@fuUd8X!;X!|53P0k;)f39 zcSK?fa2`IXT1leECrQRnYsOlr5@ag$B!jB6B}3>31cYb8o+Juao)K4dwi^Bo2=m_T z_Io(!Pi`a@a&k60zxaGH8S<>8m?=5=K-5V&oeb^BCYPhD>*Vb4DA}Kwx3k_1c2wL~ b?E}hDnd5hk29{mDd7%63xzlZQo%Wx<|IsoZ literal 0 HcmV?d00001 diff --git a/IMBD/IMBD/__pycache__/wsgi.cpython-310.pyc b/IMBD/IMBD/__pycache__/wsgi.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..92647cbb3d7ac7b4aeea73e7cd5a7e3f641dac24 GIT binary patch literal 562 zcmYjP!H&}~5Ov({b_o=5K%6acsszb`IIR$3my}Y}Z6(qLsfy&f@icYi*ir0u*}d`w z`~e*KA5J+TapD&^VYfo+NFHlE4er^~iv=LKUXhX*!fTeo7mxP4i%{BFdfk$Ya*nu{0e}TTyG(gzh4TCEG~b+&!TC zfolJRJNGwvbCz8hs7*HNk0&1|S)%ieS8lR_u aZkm&q`P?&145#Qy-<&#UbK literal 0 HcmV?d00001 diff --git a/IMBD/IMBD/asgi.py b/IMBD/IMBD/asgi.py new file mode 100644 index 000000000..253e312aa --- /dev/null +++ b/IMBD/IMBD/asgi.py @@ -0,0 +1,16 @@ +""" +ASGI config for IMBD project. + +It exposes the ASGI callable as a module-level variable named ``application``. + +For more information on this file, see +https://docs.djangoproject.com/en/4.0/howto/deployment/asgi/ +""" + +import os + +from django.core.asgi import get_asgi_application + +os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'IMBD.settings') + +application = get_asgi_application() diff --git a/IMBD/IMBD/settings.py b/IMBD/IMBD/settings.py new file mode 100644 index 000000000..a11422090 --- /dev/null +++ b/IMBD/IMBD/settings.py @@ -0,0 +1,125 @@ +""" +Django settings for IMBD project. + +Generated by 'django-admin startproject' using Django 4.0.6. + +For more information on this file, see +https://docs.djangoproject.com/en/4.0/topics/settings/ + +For the full list of settings and their values, see +https://docs.djangoproject.com/en/4.0/ref/settings/ +""" + +from pathlib import Path + +# Build paths inside the project like this: BASE_DIR / 'subdir'. +BASE_DIR = Path(__file__).resolve().parent.parent + + +# Quick-start development settings - unsuitable for production +# See https://docs.djangoproject.com/en/4.0/howto/deployment/checklist/ + +# SECURITY WARNING: keep the secret key used in production secret! +SECRET_KEY = 'django-insecure-u&@7h$r21=llo^q=)d$6278nf=+7c-s@uzu^b@l+562ki#=&^c' + +# SECURITY WARNING: don't run with debug turned on in production! +DEBUG = True + +ALLOWED_HOSTS = [] + + +# Application definition + +INSTALLED_APPS = [ + 'django.contrib.admin', + 'django.contrib.auth', + 'django.contrib.contenttypes', + 'django.contrib.sessions', + 'django.contrib.messages', + 'django.contrib.staticfiles', + 'rest_framework', + 'movise' +] + +MIDDLEWARE = [ + 'django.middleware.security.SecurityMiddleware', + 'django.contrib.sessions.middleware.SessionMiddleware', + 'django.middleware.common.CommonMiddleware', + 'django.middleware.csrf.CsrfViewMiddleware', + 'django.contrib.auth.middleware.AuthenticationMiddleware', + 'django.contrib.messages.middleware.MessageMiddleware', + 'django.middleware.clickjacking.XFrameOptionsMiddleware', +] + +ROOT_URLCONF = 'IMBD.urls' + +TEMPLATES = [ + { + 'BACKEND': 'django.template.backends.django.DjangoTemplates', + 'DIRS': [], + 'APP_DIRS': True, + 'OPTIONS': { + 'context_processors': [ + 'django.template.context_processors.debug', + 'django.template.context_processors.request', + 'django.contrib.auth.context_processors.auth', + 'django.contrib.messages.context_processors.messages', + ], + }, + }, +] + +WSGI_APPLICATION = 'IMBD.wsgi.application' + + +# Database +# https://docs.djangoproject.com/en/4.0/ref/settings/#databases + +DATABASES = { + 'default': { + 'ENGINE': 'django.db.backends.sqlite3', + 'NAME': BASE_DIR / 'db.sqlite3', + } +} + + +# Password validation +# https://docs.djangoproject.com/en/4.0/ref/settings/#auth-password-validators + +AUTH_PASSWORD_VALIDATORS = [ + { + 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator', + }, + { + 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator', + }, + { + 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator', + }, + { + 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator', + }, +] + + +# Internationalization +# https://docs.djangoproject.com/en/4.0/topics/i18n/ + +LANGUAGE_CODE = 'en-us' + +TIME_ZONE = 'UTC' + +USE_I18N = True + +USE_TZ = True + + +# Static files (CSS, JavaScript, Images) +# https://docs.djangoproject.com/en/4.0/howto/static-files/ + +STATIC_URL = 'static/' + +# Default primary key field type +# https://docs.djangoproject.com/en/4.0/ref/settings/#default-auto-field + +DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField' diff --git a/IMBD/IMBD/urls.py b/IMBD/IMBD/urls.py new file mode 100644 index 000000000..a0d088780 --- /dev/null +++ b/IMBD/IMBD/urls.py @@ -0,0 +1,22 @@ +"""IMBD URL Configuration + +The `urlpatterns` list routes URLs to views. For more information please see: + https://docs.djangoproject.com/en/4.0/topics/http/urls/ +Examples: +Function views + 1. Add an import: from my_app import views + 2. Add a URL to urlpatterns: path('', views.home, name='home') +Class-based views + 1. Add an import: from other_app.views import Home + 2. Add a URL to urlpatterns: path('', Home.as_view(), name='home') +Including another URLconf + 1. Import the include() function: from django.urls import include, path + 2. Add a URL to urlpatterns: path('blog/', include('blog.urls')) +""" +from django.contrib import admin +from django.urls import path, include + +urlpatterns = [ + path('admin/', admin.site.urls), + path('my_app/', include('movise.urls')) +] diff --git a/IMBD/IMBD/wsgi.py b/IMBD/IMBD/wsgi.py new file mode 100644 index 000000000..6fcbd8fa1 --- /dev/null +++ b/IMBD/IMBD/wsgi.py @@ -0,0 +1,16 @@ +""" +WSGI config for IMBD project. + +It exposes the WSGI callable as a module-level variable named ``application``. + +For more information on this file, see +https://docs.djangoproject.com/en/4.0/howto/deployment/wsgi/ +""" + +import os + +from django.core.wsgi import get_wsgi_application + +os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'IMBD.settings') + +application = get_wsgi_application() diff --git a/IMBD/db.sqlite3 b/IMBD/db.sqlite3 new file mode 100644 index 000000000..e69de29bb diff --git a/IMBD/manage.py b/IMBD/manage.py new file mode 100644 index 000000000..7f14332f4 --- /dev/null +++ b/IMBD/manage.py @@ -0,0 +1,22 @@ +#!/usr/bin/env python +"""Django's command-line utility for administrative tasks.""" +import os +import sys + + +def main(): + """Run administrative tasks.""" + os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'IMBD.settings') + try: + from django.core.management import execute_from_command_line + except ImportError as exc: + raise ImportError( + "Couldn't import Django. Are you sure it's installed and " + "available on your PYTHONPATH environment variable? Did you " + "forget to activate a virtual environment?" + ) from exc + execute_from_command_line(sys.argv) + + +if __name__ == '__main__': + main() diff --git a/IMBD/movise/__init__.py b/IMBD/movise/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/IMBD/movise/__pycache__/__init__.cpython-310.pyc b/IMBD/movise/__pycache__/__init__.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..86f1a8b6e87e229aa02d550820eca0d7626b5fa8 GIT binary patch literal 167 zcmd1j<>g`kg2O5gl0fuh5P=LBfgA@QE@lA|DGb33nv8xc8Hzx{2;!HQvsFxJacWU< zjE}3If0%!aOMY@`Zfaghag2LriAQNtj7wHxUV46fkZW*AypN+(yits&uaiqmZhl#2 kacWF_d}dx|NqoFsLFFwDo80`A(wtN~kR8QLK!Sw<0M>>m1poj5 literal 0 HcmV?d00001 diff --git a/IMBD/movise/__pycache__/admin.cpython-310.pyc b/IMBD/movise/__pycache__/admin.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..8ac91d7a8ea0c2116365368cecacacccd5536e53 GIT binary patch literal 208 zcmd1j<>g`kg2O5glAM6_V-N=!FabFZKwK;UBvKes7;_kM8KW2(8B&;n88n$+0!0}# z8E>&BrsQVk`Drpm@ug%X=B4NBCFkdr6lEqAfecv5P{a(Rz{D?iXRDad;?$zz7#~+Z z|1kd;m;B_?+|<01;u!bL5|7fP7#FY!@jCwV4L&` YDsOSvnq#s1_Jv$`&zxj`E8Ozvmxn%t5X1uIF3+^eT>lraf_2T z#EHPK#J9M;L~iW|SjfftsF$V#nQX%C+Efk=L(&CT9RPuR%n{tiKH-*ca{?;1Zq4K_ zRH9ONIpL2%vXvfRd9maoQeHpY_KIANLlJRZk4y60t!am`B!~rLy1^K5i^#++#-55G z+INn**aStCvj7y>rj)Qv?*nCK7bX0T2N(2SiA>SyXufz@(4kxxu}E@7Ct-eFtmv>D zirtQucWm10vvYbg>knx)3=Ps$dFgXTK+)__)d3u2V+WVDxl43&|1ZPMEc3Ks{|`|` TO{i(-vii-H*`6|jEz}`@*4l3S literal 0 HcmV?d00001 diff --git a/IMBD/movise/__pycache__/models.cpython-310.pyc b/IMBD/movise/__pycache__/models.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..44b9a1dd8b7c450873592013842efcfefce1840d GIT binary patch literal 205 zcmd1j<>g`kg2O5gl5BwVV-N=!FabFZKwK;UBvKes7;_kM8KW2(8B&;n88n$+0!0}# z8E>)W=BK3Q6#Hp1-QrBiO3X{o*Gow%0%=~!P{abHz{D>PXRDad;?$zz7#~+Z|1kd; zm;B_?+|<01;u!bL5|7fP7#FbS_#oHdka! literal 0 HcmV?d00001 diff --git a/IMBD/movise/__pycache__/urls.cpython-310.pyc b/IMBD/movise/__pycache__/urls.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..a47af7c5a6ae95c27527f536f416bc5315fec083 GIT binary patch literal 384 zcmYk1%}N6?5XY0&a9 znQL~t7_LhFhE(Qi2lsh(c|spFSDKDTlj-A>4&_rVcxg1fUYVPEL5GLm^4Vy9pN}sF q`7yn{8w{zCo0aC&FVU;EHaQg%>Vlv7V|ClPHg4l6I0}z&^7Rck189-} literal 0 HcmV?d00001 diff --git a/IMBD/movise/__pycache__/views.cpython-310.pyc b/IMBD/movise/__pycache__/views.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..e8222cbdb6d381fbf6f76f4dafa9b9b53308fecc GIT binary patch literal 899 zcmZWn%Wl&^6rG2iIB8OzYSo=V0?C`IVuOSbqAwMsl2%DzVOg@=&NOvvd&115rBS*n zAJQ)QA68x=vEmn4Anu*8C@|LCIrok=_slt?y4^N`G3|dl_{s?Rj>+xeLGl`=8AA|6 z(1MgSrW7$NSjl7VFfY8)k9~)|qER;Ero(;_l&!c$iKL=2qE}QjrGLakAX=ZjD;l?< z-o8~|5FJ-v5ZwWZ7Jooj645%y#(8>{%X7qiX~wED5^%FGKTf2v06mdeSJGJ}^2*kH zXM0#T_56oJiYNUU99F#8CQS1bf}oaM(;ITl1iPWjMDS&DNrg9~IlW|-&)5|OI(~23 z8Y+=pgt-Z)?8&Do3m<784v0Lr)V{^-Ixtor*}Rk*TSZ(4u;>^olHKjz-iN(pOC3&1Sy_|pMkB_K1JKJO_Tt`~(mmtr;CFJxw9IM%>U$S@1x=g=N!7Uep~ zMC7r^G~P2_{%0Rj_lO*Ycg`kg2O5gl0fuh5P=LBfgA@QE@lA|DGb33nv8xc8Hzx{2;x_$vsFxJacWU< zjE}3If0%!aOMY@`Zfaghag2LriAQNtj7wHxUV46fkZW*AypN+(yits&uaiqmZhl#2 vacWF%W_nR#NoIataZG%CW?p7Ve7s&k