├── .gitignore ├── netflix_clone ├── gladiator._V1_.jpg ├── manage.py ├── media │ ├── Screen-Shot-2019-04-23-at-4.57.50-PM.png │ ├── gladiator-e1541103171671.jpg │ └── xu9zaAevzQ5nnrsXN6JcahLnG4i.jpg ├── movies │ ├── __init__.py │ ├── admin.py │ ├── apps.py │ ├── migrations │ │ ├── 0001_initial.py │ │ ├── 0002_auto_20191020_0533.py │ │ ├── 0003_auto_20191020_0541.py │ │ └── __init__.py │ ├── models.py │ ├── static │ │ ├── .DS_Store │ │ └── movies │ │ │ ├── assets │ │ │ └── logo.svg │ │ │ └── style.css │ ├── templates │ │ └── movies │ │ │ ├── base.html │ │ │ ├── index.html │ │ │ └── movie.html │ ├── tests.py │ └── views.py └── netflix_clone │ ├── __init__.py │ ├── settings.py │ ├── urls.py │ └── wsgi.py └── requirements.txt /.gitignore: -------------------------------------------------------------------------------- 1 | # Created by .ignore support plugin (hsz.mobi) 2 | ### Python template 3 | # Byte-compiled / optimized / DLL files 4 | __pycache__/ 5 | *.py[cod] 6 | *$py.class 7 | 8 | # C extensions 9 | *.so 10 | 11 | # Distribution / packaging 12 | .Python 13 | build/ 14 | develop-eggs/ 15 | dist/ 16 | downloads/ 17 | eggs/ 18 | .eggs/ 19 | lib/ 20 | lib64/ 21 | parts/ 22 | sdist/ 23 | var/ 24 | wheels/ 25 | pip-wheel-metadata/ 26 | share/python-wheels/ 27 | *.egg-info/ 28 | .installed.cfg 29 | *.egg 30 | MANIFEST 31 | 32 | # PyInstaller 33 | # Usually these files are written by a python script from a template 34 | # before PyInstaller builds the exe, so as to inject date/other infos into it. 35 | *.manifest 36 | *.spec 37 | 38 | # Installer logs 39 | pip-log.txt 40 | pip-delete-this-directory.txt 41 | 42 | # Unit test / coverage reports 43 | htmlcov/ 44 | .tox/ 45 | .nox/ 46 | .coverage 47 | .coverage.* 48 | .cache 49 | nosetests.xml 50 | coverage.xml 51 | *.cover 52 | .hypothesis/ 53 | .pytest_cache/ 54 | 55 | # Translations 56 | *.mo 57 | *.pot 58 | 59 | # Django stuff: 60 | *.log 61 | local_settings.py 62 | db.sqlite3 63 | db.sqlite3-journal 64 | 65 | # Flask stuff: 66 | instance/ 67 | .webassets-cache 68 | 69 | # Scrapy stuff: 70 | .scrapy 71 | 72 | # Sphinx documentation 73 | docs/_build/ 74 | 75 | # PyBuilder 76 | target/ 77 | 78 | # Jupyter Notebook 79 | .ipynb_checkpoints 80 | 81 | # IPython 82 | profile_default/ 83 | ipython_config.py 84 | 85 | # pyenv 86 | .python-version 87 | 88 | # pipenv 89 | # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. 90 | # However, in case of collaboration, if having platform-specific dependencies or dependencies 91 | # having no cross-platform support, pipenv may install dependencies that don't work, or not 92 | # install all needed dependencies. 93 | #Pipfile.lock 94 | 95 | # celery beat schedule file 96 | celerybeat-schedule 97 | 98 | # SageMath parsed files 99 | *.sage.py 100 | 101 | # Environments 102 | .env 103 | .venv 104 | env/ 105 | venv/ 106 | ENV/ 107 | env.bak/ 108 | venv.bak/ 109 | 110 | # Spyder project settings 111 | .spyderproject 112 | .spyproject 113 | 114 | # Rope project settings 115 | .ropeproject 116 | 117 | # mkdocs documentation 118 | /site 119 | 120 | # mypy 121 | .mypy_cache/ 122 | .dmypy.json 123 | dmypy.json 124 | 125 | # Pyre type checker 126 | .pyre/ 127 | 128 | ### JetBrains template 129 | # Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm 130 | # Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 131 | 132 | # User-specific stuff 133 | .idea/**/workspace.xml 134 | .idea/**/tasks.xml 135 | .idea/**/usage.statistics.xml 136 | .idea/**/dictionaries 137 | .idea/**/shelf 138 | 139 | # Generated files 140 | .idea/**/contentModel.xml 141 | 142 | # Sensitive or high-churn files 143 | .idea/**/dataSources/ 144 | .idea/**/dataSources.ids 145 | .idea/**/dataSources.local.xml 146 | .idea/**/sqlDataSources.xml 147 | .idea/**/dynamic.xml 148 | .idea/**/uiDesigner.xml 149 | .idea/**/dbnavigator.xml 150 | 151 | # Gradle 152 | .idea/**/gradle.xml 153 | .idea/**/libraries 154 | 155 | # Gradle and Maven with auto-import 156 | # When using Gradle or Maven with auto-import, you should exclude module files, 157 | # since they will be recreated, and may cause churn. Uncomment if using 158 | # auto-import. 159 | # .idea/modules.xml 160 | # .idea/*.iml 161 | # .idea/modules 162 | # *.iml 163 | # *.ipr 164 | 165 | # CMake 166 | cmake-build-*/ 167 | 168 | # Mongo Explorer plugin 169 | .idea/**/mongoSettings.xml 170 | 171 | # File-based project format 172 | *.iws 173 | 174 | # IntelliJ 175 | out/ 176 | 177 | # mpeltonen/sbt-idea plugin 178 | .idea_modules/ 179 | 180 | # JIRA plugin 181 | atlassian-ide-plugin.xml 182 | 183 | # Cursive Clojure plugin 184 | .idea/replstate.xml 185 | 186 | # Crashlytics plugin (for Android Studio and IntelliJ) 187 | com_crashlytics_export_strings.xml 188 | crashlytics.properties 189 | crashlytics-build.properties 190 | fabric.properties 191 | 192 | # Editor-based Rest Client 193 | .idea/httpRequests 194 | 195 | # Android studio 3.1+ serialized cache file 196 | .idea/caches/build_file_checksums.ser 197 | 198 | *.idea/ 199 | -------------------------------------------------------------------------------- /netflix_clone/gladiator._V1_.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CleverProgrammer/netflix_clone/49c36c007312951803b2045eb66cccdcd591d464/netflix_clone/gladiator._V1_.jpg -------------------------------------------------------------------------------- /netflix_clone/manage.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | """Django's command-line utility for administrative tasks.""" 3 | import os 4 | import sys 5 | 6 | 7 | def main(): 8 | os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'netflix_clone.settings') 9 | try: 10 | from django.core.management import execute_from_command_line 11 | except ImportError as exc: 12 | raise ImportError( 13 | "Couldn't import Django. Are you sure it's installed and " 14 | "available on your PYTHONPATH environment variable? Did you " 15 | "forget to activate a virtual environment?" 16 | ) from exc 17 | execute_from_command_line(sys.argv) 18 | 19 | 20 | if __name__ == '__main__': 21 | main() 22 | -------------------------------------------------------------------------------- /netflix_clone/media/Screen-Shot-2019-04-23-at-4.57.50-PM.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CleverProgrammer/netflix_clone/49c36c007312951803b2045eb66cccdcd591d464/netflix_clone/media/Screen-Shot-2019-04-23-at-4.57.50-PM.png -------------------------------------------------------------------------------- /netflix_clone/media/gladiator-e1541103171671.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CleverProgrammer/netflix_clone/49c36c007312951803b2045eb66cccdcd591d464/netflix_clone/media/gladiator-e1541103171671.jpg -------------------------------------------------------------------------------- /netflix_clone/media/xu9zaAevzQ5nnrsXN6JcahLnG4i.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CleverProgrammer/netflix_clone/49c36c007312951803b2045eb66cccdcd591d464/netflix_clone/media/xu9zaAevzQ5nnrsXN6JcahLnG4i.jpg -------------------------------------------------------------------------------- /netflix_clone/movies/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CleverProgrammer/netflix_clone/49c36c007312951803b2045eb66cccdcd591d464/netflix_clone/movies/__init__.py -------------------------------------------------------------------------------- /netflix_clone/movies/admin.py: -------------------------------------------------------------------------------- 1 | from django.contrib import admin 2 | 3 | from .models import Movie 4 | 5 | # Register your models here. 6 | admin.site.register(Movie) 7 | -------------------------------------------------------------------------------- /netflix_clone/movies/apps.py: -------------------------------------------------------------------------------- 1 | from django.apps import AppConfig 2 | 3 | 4 | class MoviesConfig(AppConfig): 5 | name = 'movies' 6 | -------------------------------------------------------------------------------- /netflix_clone/movies/migrations/0001_initial.py: -------------------------------------------------------------------------------- 1 | # Generated by Django 2.2.6 on 2019-10-20 05:27 2 | 3 | from django.db import migrations, models 4 | 5 | 6 | class Migration(migrations.Migration): 7 | 8 | initial = True 9 | 10 | dependencies = [ 11 | ] 12 | 13 | operations = [ 14 | migrations.CreateModel( 15 | name='Movies', 16 | fields=[ 17 | ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), 18 | ('title', models.CharField(max_length=100)), 19 | ('synopsis', models.TextField(blank=True, null=True)), 20 | ], 21 | ), 22 | ] 23 | -------------------------------------------------------------------------------- /netflix_clone/movies/migrations/0002_auto_20191020_0533.py: -------------------------------------------------------------------------------- 1 | # Generated by Django 2.2.6 on 2019-10-20 05:33 2 | 3 | from django.db import migrations, models 4 | 5 | 6 | class Migration(migrations.Migration): 7 | 8 | dependencies = [ 9 | ('movies', '0001_initial'), 10 | ] 11 | 12 | operations = [ 13 | migrations.AddField( 14 | model_name='movies', 15 | name='thumbnail', 16 | field=models.ImageField(null=True, upload_to=''), 17 | ), 18 | migrations.AddField( 19 | model_name='movies', 20 | name='video_link', 21 | field=models.URLField(max_length=1000, null=True), 22 | ), 23 | ] 24 | -------------------------------------------------------------------------------- /netflix_clone/movies/migrations/0003_auto_20191020_0541.py: -------------------------------------------------------------------------------- 1 | # Generated by Django 2.2.6 on 2019-10-20 05:41 2 | 3 | from django.db import migrations 4 | 5 | 6 | class Migration(migrations.Migration): 7 | 8 | dependencies = [ 9 | ('movies', '0002_auto_20191020_0533'), 10 | ] 11 | 12 | operations = [ 13 | migrations.RenameModel( 14 | old_name='Movies', 15 | new_name='Movie', 16 | ), 17 | ] 18 | -------------------------------------------------------------------------------- /netflix_clone/movies/migrations/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CleverProgrammer/netflix_clone/49c36c007312951803b2045eb66cccdcd591d464/netflix_clone/movies/migrations/__init__.py -------------------------------------------------------------------------------- /netflix_clone/movies/models.py: -------------------------------------------------------------------------------- 1 | from django.db import models 2 | 3 | # Create your models here 4 | class Movie(models.Model): 5 | title = models.CharField(max_length=100, null=False, blank=False) 6 | synopsis = models.TextField(null=True, blank=True) 7 | thumbnail = models.ImageField(null=True) 8 | video_link = models.URLField(max_length=1000, null=True) 9 | 10 | def __str__(self): 11 | return self.title 12 | 13 | -------------------------------------------------------------------------------- /netflix_clone/movies/static/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CleverProgrammer/netflix_clone/49c36c007312951803b2045eb66cccdcd591d464/netflix_clone/movies/static/.DS_Store -------------------------------------------------------------------------------- /netflix_clone/movies/static/movies/assets/logo.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /netflix_clone/movies/static/movies/style.css: -------------------------------------------------------------------------------- 1 | body { 2 | background-color: #141414; 3 | } 4 | 5 | nav { 6 | background-color: transparent; 7 | padding-left: 0.75rem; 8 | } 9 | 10 | nav .brand-logo img { 11 | max-width: 92px; 12 | } 13 | 14 | .home-movies-container { 15 | display: flex; 16 | flex-wrap: wrap; 17 | } 18 | 19 | .home-movie { 20 | flex: 1 0 21%; 21 | margin-left: 2px; 22 | margin-right: 2px; 23 | } -------------------------------------------------------------------------------- /netflix_clone/movies/templates/movies/base.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 |