diff --git a/currencyproj/currency.txt b/currencyproj/currency.txt deleted file mode 100644 index 7c0e0f11..00000000 --- a/currencyproj/currency.txt +++ /dev/null @@ -1 +0,0 @@ -101010 diff --git a/currencyproj/currencyproj/__init__.py b/currencyproj/currencyproj/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/currencyproj/currencyproj/__pycache__/__init__.cpython-36.pyc b/currencyproj/currencyproj/__pycache__/__init__.cpython-36.pyc deleted file mode 100644 index 41072de4..00000000 Binary files a/currencyproj/currencyproj/__pycache__/__init__.cpython-36.pyc and /dev/null differ diff --git a/currencyproj/currencyproj/__pycache__/settings.cpython-36.pyc b/currencyproj/currencyproj/__pycache__/settings.cpython-36.pyc deleted file mode 100644 index e46fef6f..00000000 Binary files a/currencyproj/currencyproj/__pycache__/settings.cpython-36.pyc and /dev/null differ diff --git a/currencyproj/currencyproj/__pycache__/urls.cpython-36.pyc b/currencyproj/currencyproj/__pycache__/urls.cpython-36.pyc deleted file mode 100644 index 42a37e01..00000000 Binary files a/currencyproj/currencyproj/__pycache__/urls.cpython-36.pyc and /dev/null differ diff --git a/currencyproj/currencyproj/__pycache__/wsgi.cpython-36.pyc b/currencyproj/currencyproj/__pycache__/wsgi.cpython-36.pyc deleted file mode 100644 index 67addeed..00000000 Binary files a/currencyproj/currencyproj/__pycache__/wsgi.cpython-36.pyc and /dev/null differ diff --git a/currencyproj/currencyproj/asgi.py b/currencyproj/currencyproj/asgi.py deleted file mode 100644 index 41f19f93..00000000 --- a/currencyproj/currencyproj/asgi.py +++ /dev/null @@ -1,16 +0,0 @@ -""" -ASGI config for currencyproj 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/3.1/howto/deployment/asgi/ -""" - -import os - -from django.core.asgi import get_asgi_application - -os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'currencyproj.settings') - -application = get_asgi_application() diff --git a/currencyproj/currencyproj/settings.py b/currencyproj/currencyproj/settings.py deleted file mode 100644 index e7edbfab..00000000 --- a/currencyproj/currencyproj/settings.py +++ /dev/null @@ -1,125 +0,0 @@ -""" -Django settings for currencyproj project. - -Generated by 'django-admin startproject' using Django 3.1.6. - -For more information on this file, see -https://docs.djangoproject.com/en/3.1/topics/settings/ - -For the full list of settings and their values, see -https://docs.djangoproject.com/en/3.1/ref/settings/ -""" - -from pathlib import Path -import os - -# 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/3.1/howto/deployment/checklist/ - -# SECURITY WARNING: keep the secret key used in production secret! -SECRET_KEY = '%j9h3c5ukt2mom45uiuy_paz+h1*qmqns@)-b0loxk_^bj%eg5' - -# 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', - 'home', -] - -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 = 'currencyproj.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 = 'currencyproj.wsgi.application' - - -# Database -# https://docs.djangoproject.com/en/3.1/ref/settings/#databases - -DATABASES = { - 'default': { - 'ENGINE': 'django.db.backends.sqlite3', - 'NAME': BASE_DIR / 'db.sqlite3', - } -} - - -# Password validation -# https://docs.djangoproject.com/en/3.1/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/3.1/topics/i18n/ - -LANGUAGE_CODE = 'en-us' - -TIME_ZONE = 'UTC' - -USE_I18N = True - -USE_L10N = True - -USE_TZ = True - - -# Static files (CSS, JavaScript, Images) -# https://docs.djangoproject.com/en/3.1/howto/static-files/ - -STATIC_URL = '/static/' -STATICFILES_DIRS = [ - os.path.join(BASE_DIR, "static"), - ] diff --git a/currencyproj/currencyproj/urls.py b/currencyproj/currencyproj/urls.py deleted file mode 100644 index 9cbd8bf1..00000000 --- a/currencyproj/currencyproj/urls.py +++ /dev/null @@ -1,16 +0,0 @@ - -from django.contrib import admin -from django.urls import path -from home.models import upload_video,upload_image -# from home.views import upload_content, imageUpload, videoUpload -from home.views import finallyUploadImage -from home.forms import UploadImage - -urlpatterns = [ - path('admin/', admin.site.urls), - # path('upload/',upload_content, name="upload"), - # path('upload_video/',videoUpload,name='upload_video'), - # path('upload_image/',imageUpload,name='upload_image'), - path('upload/',finallyUploadImage,name="Plsman") - -] diff --git a/currencyproj/currencyproj/wsgi.py b/currencyproj/currencyproj/wsgi.py deleted file mode 100644 index 0f54b109..00000000 --- a/currencyproj/currencyproj/wsgi.py +++ /dev/null @@ -1,16 +0,0 @@ -""" -WSGI config for currencyproj 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/3.1/howto/deployment/wsgi/ -""" - -import os - -from django.core.wsgi import get_wsgi_application - -os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'currencyproj.settings') - -application = get_wsgi_application() diff --git a/currencyproj/db.sqlite3 b/currencyproj/db.sqlite3 deleted file mode 100644 index 26e51092..00000000 Binary files a/currencyproj/db.sqlite3 and /dev/null differ diff --git a/currencyproj/home/__init__.py b/currencyproj/home/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/currencyproj/home/__pycache__/__init__.cpython-36.pyc b/currencyproj/home/__pycache__/__init__.cpython-36.pyc deleted file mode 100644 index ebe51b8e..00000000 Binary files a/currencyproj/home/__pycache__/__init__.cpython-36.pyc and /dev/null differ diff --git a/currencyproj/home/__pycache__/admin.cpython-36.pyc b/currencyproj/home/__pycache__/admin.cpython-36.pyc deleted file mode 100644 index 57f54fce..00000000 Binary files a/currencyproj/home/__pycache__/admin.cpython-36.pyc and /dev/null differ diff --git a/currencyproj/home/__pycache__/forms.cpython-36.pyc b/currencyproj/home/__pycache__/forms.cpython-36.pyc deleted file mode 100644 index 4739c48a..00000000 Binary files a/currencyproj/home/__pycache__/forms.cpython-36.pyc and /dev/null differ diff --git a/currencyproj/home/__pycache__/models.cpython-36.pyc b/currencyproj/home/__pycache__/models.cpython-36.pyc deleted file mode 100644 index efac7289..00000000 Binary files a/currencyproj/home/__pycache__/models.cpython-36.pyc and /dev/null differ diff --git a/currencyproj/home/__pycache__/views.cpython-36.pyc b/currencyproj/home/__pycache__/views.cpython-36.pyc deleted file mode 100644 index 8e393b6a..00000000 Binary files a/currencyproj/home/__pycache__/views.cpython-36.pyc and /dev/null differ diff --git a/currencyproj/home/admin.py b/currencyproj/home/admin.py deleted file mode 100644 index cc1da641..00000000 --- a/currencyproj/home/admin.py +++ /dev/null @@ -1,5 +0,0 @@ -from django.contrib import admin -from .models import upload_image, upload_video - -admin.site.register(upload_image) -admin.site.register(upload_video) diff --git a/currencyproj/home/apps.py b/currencyproj/home/apps.py deleted file mode 100644 index 90dc7137..00000000 --- a/currencyproj/home/apps.py +++ /dev/null @@ -1,5 +0,0 @@ -from django.apps import AppConfig - - -class HomeConfig(AppConfig): - name = 'home' diff --git a/currencyproj/home/forms.py b/currencyproj/home/forms.py deleted file mode 100644 index fccd5a55..00000000 --- a/currencyproj/home/forms.py +++ /dev/null @@ -1,9 +0,0 @@ -from django import forms -from .models import upload_image - -class UploadImage(forms.ModelForm): - class Meta: - model = upload_image - fields = [ - 'image' - ] diff --git a/currencyproj/home/migrations/0001_initial.py b/currencyproj/home/migrations/0001_initial.py deleted file mode 100644 index 70f80d6e..00000000 --- a/currencyproj/home/migrations/0001_initial.py +++ /dev/null @@ -1,22 +0,0 @@ -# Generated by Django 3.1.6 on 2021-02-05 00:24 - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - initial = True - - dependencies = [ - ] - - operations = [ - migrations.CreateModel( - name='upload', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('image', models.FileField(upload_to='images/')), - ('video', models.FileField(upload_to='videos/')), - ], - ), - ] diff --git a/currencyproj/home/migrations/0002_auto_20210205_0037.py b/currencyproj/home/migrations/0002_auto_20210205_0037.py deleted file mode 100644 index 08f2c0b4..00000000 --- a/currencyproj/home/migrations/0002_auto_20210205_0037.py +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by Django 3.1.6 on 2021-02-05 00:37 - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('home', '0001_initial'), - ] - - operations = [ - migrations.CreateModel( - name='upload_image', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('image', models.FileField(upload_to='images/')), - ], - ), - migrations.CreateModel( - name='upload_video', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('video', models.FileField(upload_to='videos/')), - ], - ), - migrations.DeleteModel( - name='upload', - ), - ] diff --git a/currencyproj/home/migrations/0003_auto_20210205_1213.py b/currencyproj/home/migrations/0003_auto_20210205_1213.py deleted file mode 100644 index ff4ffb63..00000000 --- a/currencyproj/home/migrations/0003_auto_20210205_1213.py +++ /dev/null @@ -1,23 +0,0 @@ -# Generated by Django 3.1.6 on 2021-02-05 12:13 - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('home', '0002_auto_20210205_0037'), - ] - - operations = [ - migrations.AlterField( - model_name='upload_image', - name='image', - field=models.FileField(upload_to='static/images/'), - ), - migrations.AlterField( - model_name='upload_video', - name='video', - field=models.FileField(upload_to='static/videos/'), - ), - ] diff --git a/currencyproj/home/migrations/0004_auto_20210205_1216.py b/currencyproj/home/migrations/0004_auto_20210205_1216.py deleted file mode 100644 index 2a2e7bb2..00000000 --- a/currencyproj/home/migrations/0004_auto_20210205_1216.py +++ /dev/null @@ -1,23 +0,0 @@ -# Generated by Django 3.1.6 on 2021-02-05 12:16 - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('home', '0003_auto_20210205_1213'), - ] - - operations = [ - migrations.AlterField( - model_name='upload_image', - name='image', - field=models.FileField(upload_to='images/'), - ), - migrations.AlterField( - model_name='upload_video', - name='video', - field=models.FileField(upload_to='videos/'), - ), - ] diff --git a/currencyproj/home/migrations/__init__.py b/currencyproj/home/migrations/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/currencyproj/home/migrations/__pycache__/0001_initial.cpython-36.pyc b/currencyproj/home/migrations/__pycache__/0001_initial.cpython-36.pyc deleted file mode 100644 index a0c75d0a..00000000 Binary files a/currencyproj/home/migrations/__pycache__/0001_initial.cpython-36.pyc and /dev/null differ diff --git a/currencyproj/home/migrations/__pycache__/0002_auto_20210205_0037.cpython-36.pyc b/currencyproj/home/migrations/__pycache__/0002_auto_20210205_0037.cpython-36.pyc deleted file mode 100644 index cbf81199..00000000 Binary files a/currencyproj/home/migrations/__pycache__/0002_auto_20210205_0037.cpython-36.pyc and /dev/null differ diff --git a/currencyproj/home/migrations/__pycache__/0003_auto_20210205_1213.cpython-36.pyc b/currencyproj/home/migrations/__pycache__/0003_auto_20210205_1213.cpython-36.pyc deleted file mode 100644 index 766e1a3d..00000000 Binary files a/currencyproj/home/migrations/__pycache__/0003_auto_20210205_1213.cpython-36.pyc and /dev/null differ diff --git a/currencyproj/home/migrations/__pycache__/0004_auto_20210205_1216.cpython-36.pyc b/currencyproj/home/migrations/__pycache__/0004_auto_20210205_1216.cpython-36.pyc deleted file mode 100644 index ced8b274..00000000 Binary files a/currencyproj/home/migrations/__pycache__/0004_auto_20210205_1216.cpython-36.pyc and /dev/null differ diff --git a/currencyproj/home/migrations/__pycache__/__init__.cpython-36.pyc b/currencyproj/home/migrations/__pycache__/__init__.cpython-36.pyc deleted file mode 100644 index bb31f620..00000000 Binary files a/currencyproj/home/migrations/__pycache__/__init__.cpython-36.pyc and /dev/null differ diff --git a/currencyproj/home/models.py b/currencyproj/home/models.py deleted file mode 100644 index e1ac3f69..00000000 --- a/currencyproj/home/models.py +++ /dev/null @@ -1,8 +0,0 @@ -from django.db import models - -class upload_image(models.Model): - # check for file extensions - image = models.FileField(upload_to="images/") - -class upload_video(models.Model): - video = models.FileField(upload_to="videos/") diff --git a/currencyproj/home/templates/details.html b/currencyproj/home/templates/details.html deleted file mode 100644 index 3b65e9d8..00000000 --- a/currencyproj/home/templates/details.html +++ /dev/null @@ -1,13 +0,0 @@ -{% extends 'uploadImage.html' %} -{% block replace %} -
its an awesome profile picture
-
- {{ user_pr.display_picture.url }}
- You have learned some awesome technologies like {{ user_pr.technologies }}
To make a user profile and upload the files fill this form
-