diff --git a/projects/.DS_Store b/projects/.DS_Store deleted file mode 100644 index a1d4728..0000000 Binary files a/projects/.DS_Store and /dev/null differ diff --git a/projects/__init__.py b/projects/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/projects/admin.py b/projects/admin.py deleted file mode 100644 index d80028b..0000000 --- a/projects/admin.py +++ /dev/null @@ -1,6 +0,0 @@ -from django.contrib import admin -from projects.models import Project - - -# Register your models here. -admin.site.register(Project) \ No newline at end of file diff --git a/projects/apps.py b/projects/apps.py deleted file mode 100644 index 3ef44de..0000000 --- a/projects/apps.py +++ /dev/null @@ -1,5 +0,0 @@ -from django.apps import AppConfig - - -class ProjectsConfig(AppConfig): - name = 'projects' diff --git a/projects/migrations/0001_initial.py b/projects/migrations/0001_initial.py deleted file mode 100644 index eee8838..0000000 --- a/projects/migrations/0001_initial.py +++ /dev/null @@ -1,24 +0,0 @@ -# Generated by Django 2.2.1 on 2019-05-31 04:59 - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - initial = True - - dependencies = [ - ] - - operations = [ - migrations.CreateModel( - name='Project', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('title', models.CharField(max_length=100)), - ('description', models.TextField()), - ('technology', models.CharField(max_length=20)), - ('image', models.FilePathField(path='/img')), - ], - ), - ] diff --git a/projects/migrations/0002_auto_20190531_0533.py b/projects/migrations/0002_auto_20190531_0533.py deleted file mode 100644 index acf1d7a..0000000 --- a/projects/migrations/0002_auto_20190531_0533.py +++ /dev/null @@ -1,18 +0,0 @@ -# Generated by Django 2.2.1 on 2019-05-31 05:33 - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('projects', '0001_initial'), - ] - - operations = [ - migrations.AlterField( - model_name='project', - name='image', - field=models.FilePathField(path='/projects/img'), - ), - ] diff --git a/projects/migrations/0003_auto_20190601_0333.py b/projects/migrations/0003_auto_20190601_0333.py deleted file mode 100644 index 32fcdee..0000000 --- a/projects/migrations/0003_auto_20190601_0333.py +++ /dev/null @@ -1,18 +0,0 @@ -# Generated by Django 2.2.1 on 2019-06-01 03:33 - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('projects', '0002_auto_20190531_0533'), - ] - - operations = [ - migrations.AlterField( - model_name='project', - name='image', - field=models.CharField(max_length=100), - ), - ] diff --git a/projects/migrations/__init__.py b/projects/migrations/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/projects/migrations/__pycache__/0001_initial.cpython-37.pyc b/projects/migrations/__pycache__/0001_initial.cpython-37.pyc deleted file mode 100644 index f2e80c8..0000000 Binary files a/projects/migrations/__pycache__/0001_initial.cpython-37.pyc and /dev/null differ diff --git a/projects/migrations/__pycache__/0002_auto_20190531_0533.cpython-37.pyc b/projects/migrations/__pycache__/0002_auto_20190531_0533.cpython-37.pyc deleted file mode 100644 index 5f70258..0000000 Binary files a/projects/migrations/__pycache__/0002_auto_20190531_0533.cpython-37.pyc and /dev/null differ diff --git a/projects/migrations/__pycache__/0003_auto_20190601_0333.cpython-37.pyc b/projects/migrations/__pycache__/0003_auto_20190601_0333.cpython-37.pyc deleted file mode 100644 index b728335..0000000 Binary files a/projects/migrations/__pycache__/0003_auto_20190601_0333.cpython-37.pyc and /dev/null differ diff --git a/projects/migrations/__pycache__/__init__.cpython-37.pyc b/projects/migrations/__pycache__/__init__.cpython-37.pyc deleted file mode 100644 index fd181ef..0000000 Binary files a/projects/migrations/__pycache__/__init__.cpython-37.pyc and /dev/null differ diff --git a/projects/models.py b/projects/models.py deleted file mode 100644 index c690e1d..0000000 --- a/projects/models.py +++ /dev/null @@ -1,9 +0,0 @@ -from django.db import models - - -# Create your models here. -class Project(models.Model): - title = models.CharField(max_length=100) - description = models.TextField() - technology = models.CharField(max_length=20) - image = models.CharField(max_length=100) diff --git a/projects/static/.DS_Store b/projects/static/.DS_Store deleted file mode 100644 index ec66e16..0000000 Binary files a/projects/static/.DS_Store and /dev/null differ diff --git a/projects/static/projects/.DS_Store b/projects/static/projects/.DS_Store deleted file mode 100644 index fd8a907..0000000 Binary files a/projects/static/projects/.DS_Store and /dev/null differ diff --git a/projects/static/projects/img/.DS_Store b/projects/static/projects/img/.DS_Store deleted file mode 100644 index 8c326fc..0000000 Binary files a/projects/static/projects/img/.DS_Store and /dev/null differ diff --git a/projects/static/projects/img/daily.png b/projects/static/projects/img/daily.png deleted file mode 100644 index 4f78ff3..0000000 Binary files a/projects/static/projects/img/daily.png and /dev/null differ diff --git a/projects/static/projects/img/testproject.png b/projects/static/projects/img/testproject.png deleted file mode 100644 index c8e678d..0000000 Binary files a/projects/static/projects/img/testproject.png and /dev/null differ diff --git a/projects/static/projects/img/todo.png b/projects/static/projects/img/todo.png deleted file mode 100644 index bf8232f..0000000 Binary files a/projects/static/projects/img/todo.png and /dev/null differ diff --git a/projects/templates/.DS_Store b/projects/templates/.DS_Store deleted file mode 100644 index 699d641..0000000 Binary files a/projects/templates/.DS_Store and /dev/null differ diff --git a/projects/templates/projects/all_projects.html b/projects/templates/projects/all_projects.html deleted file mode 100644 index 4f47708..0000000 --- a/projects/templates/projects/all_projects.html +++ /dev/null @@ -1,25 +0,0 @@ -{% extends 'projects/base.html' %} - -{% load static %} - -{% block content %} - -
-

Projects

-
- {% for project in projects %} -
-
- {{ project.description }} -
-
{{ project.title }}
-

{{ project.description }}

- Read More -
-
-
- {% endfor %} -
-
- -{% endblock %} \ No newline at end of file diff --git a/projects/templates/projects/base.html b/projects/templates/projects/base.html deleted file mode 100644 index 41a3836..0000000 --- a/projects/templates/projects/base.html +++ /dev/null @@ -1,35 +0,0 @@ - - - - - Portfolio - - - - - - - -
- {% block content %} - - {% endblock %} -
- - - \ No newline at end of file diff --git a/projects/templates/projects/detail.html b/projects/templates/projects/detail.html deleted file mode 100644 index 428ab8b..0000000 --- a/projects/templates/projects/detail.html +++ /dev/null @@ -1,20 +0,0 @@ -{% extends 'projects/base.html' %} - -{% load static %} - -{% block content %} - -

{{ project.title }}

-
-
- {{ project.description }} -
-
-
About the project
-

{{ project.description }}

-
Built with:
-

{{ project.technology }}

-
-
- -{% endblock %} \ No newline at end of file diff --git a/projects/tests.py b/projects/tests.py deleted file mode 100644 index 7ce503c..0000000 --- a/projects/tests.py +++ /dev/null @@ -1,3 +0,0 @@ -from django.test import TestCase - -# Create your tests here. diff --git a/projects/urls.py b/projects/urls.py deleted file mode 100644 index 638a2ac..0000000 --- a/projects/urls.py +++ /dev/null @@ -1,10 +0,0 @@ -from django.urls import path -from projects import views - - -app_name = 'projects' - -urlpatterns = [ - path('', views.all_projects, name='all_projects'), - path('', views.project_detail, name='project_detail'), -] \ No newline at end of file diff --git a/projects/views.py b/projects/views.py deleted file mode 100644 index 5204bfb..0000000 --- a/projects/views.py +++ /dev/null @@ -1,16 +0,0 @@ -from django.shortcuts import render -from projects.models import Project - - -# Create your views here. -def all_projects(request): - # query the db to return all project objects - projects = Project.objects.all() - return render(request, 'projects/all_projects.html', - {'projects': projects}) - - -def project_detail(request, pk): - project = Project.objects.get(pk=pk) - return render(request, 'projects/detail.html', - {'project': project}) \ No newline at end of file