From f626b453374073d9db284fac4e9f603c5353039a Mon Sep 17 00:00:00 2001 From: aqswa <69039161+aqswa@users.noreply.github.com> Date: Sat, 3 Dec 2022 02:58:31 +0900 Subject: [PATCH] initial project settings --- .gitignore | 264 +++++++++++++++++++++++++++ CeosVoteBack/__init__.py | 0 CeosVoteBack/asgi.py | 16 ++ CeosVoteBack/settings.py | 130 +++++++++++++ CeosVoteBack/urls.py | 21 +++ CeosVoteBack/wsgi.py | 16 ++ accounts/__init__.py | 0 accounts/admin.py | 9 + accounts/apps.py | 6 + accounts/migrations/0001_initial.py | 27 +++ accounts/migrations/__init__.py | 0 accounts/models.py | 33 ++++ accounts/tests.py | 3 + accounts/views.py | 3 + demoday/__init__.py | 0 demoday/admin.py | 3 + demoday/apps.py | 6 + demoday/migrations/0001_initial.py | 25 +++ demoday/migrations/__init__.py | 0 demoday/models.py | 14 ++ demoday/tests.py | 3 + demoday/views.py | 3 + manage.py | 22 +++ partleads/__init__.py | 0 partleads/admin.py | 7 + partleads/apps.py | 6 + partleads/migrations/0001_initial.py | 44 +++++ partleads/migrations/__init__.py | 0 partleads/models.py | 33 ++++ partleads/tests.py | 3 + partleads/views.py | 3 + requirements.txt | 12 ++ 32 files changed, 712 insertions(+) create mode 100644 .gitignore create mode 100644 CeosVoteBack/__init__.py create mode 100644 CeosVoteBack/asgi.py create mode 100644 CeosVoteBack/settings.py create mode 100644 CeosVoteBack/urls.py create mode 100644 CeosVoteBack/wsgi.py create mode 100644 accounts/__init__.py create mode 100644 accounts/admin.py create mode 100644 accounts/apps.py create mode 100644 accounts/migrations/0001_initial.py create mode 100644 accounts/migrations/__init__.py create mode 100644 accounts/models.py create mode 100644 accounts/tests.py create mode 100644 accounts/views.py create mode 100644 demoday/__init__.py create mode 100644 demoday/admin.py create mode 100644 demoday/apps.py create mode 100644 demoday/migrations/0001_initial.py create mode 100644 demoday/migrations/__init__.py create mode 100644 demoday/models.py create mode 100644 demoday/tests.py create mode 100644 demoday/views.py create mode 100644 manage.py create mode 100644 partleads/__init__.py create mode 100644 partleads/admin.py create mode 100644 partleads/apps.py create mode 100644 partleads/migrations/0001_initial.py create mode 100644 partleads/migrations/__init__.py create mode 100644 partleads/models.py create mode 100644 partleads/tests.py create mode 100644 partleads/views.py create mode 100644 requirements.txt diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3d4afb4 --- /dev/null +++ b/.gitignore @@ -0,0 +1,264 @@ +# Created by https://www.toptal.com/developers/gitignore/api/django,python +# Edit at https://www.toptal.com/developers/gitignore?templates=django,python + +.idea + +### Django ### +*.log +*.pot +*.pyc +__pycache__/ +local_settings.py +db.sqlite3 +db.sqlite3-journal +media + +# If your build process includes running collectstatic, then you probably don't need or want to include staticfiles/ +# in your Git repository. Update and uncomment the following line accordingly. +# /staticfiles/ + +### Django.Python Stack ### +# Byte-compiled / optimized / DLL files +*.py[cod] +*$py.class + +# C extensions +*.so + +# Distribution / packaging +.Python +build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +wheels/ +share/python-wheels/ +*.egg-info/ +.installed.cfg +*.egg +MANIFEST + +# PyInstaller +# Usually these files are written by a python script from a template +# before PyInstaller builds the exe, so as to inject date/other infos into it. +*.manifest +*.spec + +# Installer logs +pip-log.txt +pip-delete-this-directory.txt + +# Unit test / coverage reports +htmlcov/ +.tox/ +.nox/ +.coverage +.coverage.* +.cache +nosetests.xml +coverage.xml +*.cover +*.py,cover +.hypothesis/ +.pytest_cache/ +cover/ + +# Translations +*.mo + +# Django stuff: + +# Flask stuff: +instance/ +.webassets-cache + +# Scrapy stuff: +.scrapy + +# Sphinx documentation +docs/_build/ + +# PyBuilder +.pybuilder/ +target/ + +# Jupyter Notebook +.ipynb_checkpoints + +# IPython +profile_default/ +ipython_config.py + +# pyenv +# For a library or package, you might want to ignore these files since the code is +# intended to run in multiple environments; otherwise, check them in: +# .python-version + +# pipenv +# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. +# However, in case of collaboration, if having platform-specific dependencies or dependencies +# having no cross-platform support, pipenv may install dependencies that don't work, or not +# install all needed dependencies. +#Pipfile.lock + +# poetry +# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control. +# This is especially recommended for binary packages to ensure reproducibility, and is more +# commonly ignored for libraries. +# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control +#poetry.lock + +# pdm +# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control. +#pdm.lock +# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it +# in version control. +# https://pdm.fming.dev/#use-with-ide +.pdm.toml + +# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm +__pypackages__/ + +# Celery stuff +celerybeat-schedule +celerybeat.pid + +# SageMath parsed files +*.sage.py + +# Environments +.env +.venv +env/ +venv/ +ENV/ +env.bak/ +venv.bak/ +voteenv/ + +# Spyder project settings +.spyderproject +.spyproject + +# Rope project settings +.ropeproject + +# mkdocs documentation +/site + +# mypy +.mypy_cache/ +.dmypy.json +dmypy.json + +# Pyre type checker +.pyre/ + +# pytype static type analyzer +.pytype/ + +# Cython debug symbols +cython_debug/ + +# PyCharm +# JetBrains specific template is maintained in a separate JetBrains.gitignore that can +# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore +# and can be added to the global gitignore or merged into this file. For a more nuclear +# option (not recommended) you can uncomment the following to ignore the entire idea folder. +#.idea/ + +### Python ### +# Byte-compiled / optimized / DLL files + +# C extensions + +# Distribution / packaging + +# PyInstaller +# Usually these files are written by a python script from a template +# before PyInstaller builds the exe, so as to inject date/other infos into it. + +# Installer logs + +# Unit test / coverage reports + +# Translations + +# Django stuff: + +# Flask stuff: + +# Scrapy stuff: + +# Sphinx documentation + +# PyBuilder + +# Jupyter Notebook + +# IPython + +# pyenv +# For a library or package, you might want to ignore these files since the code is +# intended to run in multiple environments; otherwise, check them in: +# .python-version + +# pipenv +# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. +# However, in case of collaboration, if having platform-specific dependencies or dependencies +# having no cross-platform support, pipenv may install dependencies that don't work, or not +# install all needed dependencies. + +# poetry +# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control. +# This is especially recommended for binary packages to ensure reproducibility, and is more +# commonly ignored for libraries. +# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control + +# pdm +# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control. +# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it +# in version control. +# https://pdm.fming.dev/#use-with-ide + +# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm + +# Celery stuff + +# SageMath parsed files + +# Environments + +# Spyder project settings + +# Rope project settings + +# mkdocs documentation + +# mypy + +# Pyre type checker + +# pytype static type analyzer + +# Cython debug symbols + +# PyCharm +# JetBrains specific template is maintained in a separate JetBrains.gitignore that can +# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore +# and can be added to the global gitignore or merged into this file. For a more nuclear +# option (not recommended) you can uncomment the following to ignore the entire idea folder. + +### Python Patch ### +# Poetry local configuration file - https://python-poetry.org/docs/configuration/#local-configuration +poetry.toml + + +# End of https://www.toptal.com/developers/gitignore/api/django,python \ No newline at end of file diff --git a/CeosVoteBack/__init__.py b/CeosVoteBack/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/CeosVoteBack/asgi.py b/CeosVoteBack/asgi.py new file mode 100644 index 0000000..d04fafc --- /dev/null +++ b/CeosVoteBack/asgi.py @@ -0,0 +1,16 @@ +""" +ASGI config for CeosVoteBack 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', 'CeosVoteBack.settings') + +application = get_asgi_application() diff --git a/CeosVoteBack/settings.py b/CeosVoteBack/settings.py new file mode 100644 index 0000000..c9e74c3 --- /dev/null +++ b/CeosVoteBack/settings.py @@ -0,0 +1,130 @@ +""" +Django settings for CeosVoteBack project. + +Generated by 'django-admin startproject' using Django 4.0.3. + +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/ +""" + +import os +import environ + +# Build paths inside the project like this: os.path.join(BASE_DIR, ...) +BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) +env = environ.Env(DEBUG=(bool, False)) + +environ.Env.read_env(os.path.join(BASE_DIR, '.env')) + + +# 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 = env('DJANGO_SECRET_KEY') + +# 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', + 'accounts', + 'demoday', + 'partleads', +] + +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 = 'CeosVoteBack.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 = 'CeosVoteBack.wsgi.application' + + +# Database +# https://docs.djangoproject.com/en/4.0/ref/settings/#databases + +DATABASES = { + 'default': { + 'ENGINE': 'django.db.backends.sqlite3', + 'NAME': os.path.join(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/CeosVoteBack/urls.py b/CeosVoteBack/urls.py new file mode 100644 index 0000000..04760b4 --- /dev/null +++ b/CeosVoteBack/urls.py @@ -0,0 +1,21 @@ +"""CeosVoteBack 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 + +urlpatterns = [ + path('admin/', admin.site.urls), +] diff --git a/CeosVoteBack/wsgi.py b/CeosVoteBack/wsgi.py new file mode 100644 index 0000000..f3df35c --- /dev/null +++ b/CeosVoteBack/wsgi.py @@ -0,0 +1,16 @@ +""" +WSGI config for CeosVoteBack 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', 'CeosVoteBack.settings') + +application = get_wsgi_application() diff --git a/accounts/__init__.py b/accounts/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/accounts/admin.py b/accounts/admin.py new file mode 100644 index 0000000..adf6707 --- /dev/null +++ b/accounts/admin.py @@ -0,0 +1,9 @@ +from django.contrib import admin +from .models import * +# Register your models here. + + +@admin.register(User) +class UserAdmin(admin.ModelAdmin): + list_display = ['name', 'part', 'team'] + list_display_links = ['name', 'part', 'team'] diff --git a/accounts/apps.py b/accounts/apps.py new file mode 100644 index 0000000..3e3c765 --- /dev/null +++ b/accounts/apps.py @@ -0,0 +1,6 @@ +from django.apps import AppConfig + + +class AccountsConfig(AppConfig): + default_auto_field = 'django.db.models.BigAutoField' + name = 'accounts' diff --git a/accounts/migrations/0001_initial.py b/accounts/migrations/0001_initial.py new file mode 100644 index 0000000..59e0776 --- /dev/null +++ b/accounts/migrations/0001_initial.py @@ -0,0 +1,27 @@ +# Generated by Django 4.1.3 on 2022-12-02 17:55 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + initial = True + + dependencies = [ + ] + + operations = [ + migrations.CreateModel( + name='User', + fields=[ + ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('user_id', models.CharField(max_length=20, unique=True)), + ('password', models.CharField(max_length=20)), + ('email', models.EmailField(max_length=20, unique=True)), + ('name', models.CharField(max_length=20)), + ('team', models.CharField(choices=[('Recipeasy', 'Recipeasy'), ('Forgetmenot', 'Forgetmenot'), ('Prefolio', 'Prefolio'), ('Diametes', 'Diametes'), ('Teample', 'Teample')], max_length=20)), + ('demoday', models.BooleanField(default=False)), + ('part', models.BooleanField(default=False)), + ], + ), + ] diff --git a/accounts/migrations/__init__.py b/accounts/migrations/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/accounts/models.py b/accounts/models.py new file mode 100644 index 0000000..fba9482 --- /dev/null +++ b/accounts/models.py @@ -0,0 +1,33 @@ +from django.db import models + +# Create your models here. + +PART_CHOICE = ( + ('Backend', 'Backend'), + ('Frontend', 'Frontend'), + ('Design', 'Design'), + ('PM', 'PM') +) + + +TEAM_CHOICE = ( + ('Recipeasy', 'Recipeasy'), + ('Forgetmenot', 'Forgetmenot'), + ('Prefolio', 'Prefolio'), + ('Diametes', 'Diametes'), + ('Teample', 'Teample') +) + + +class User(models.Model): + user_id = models.CharField(max_length=20, unique=True) + password = models.CharField(max_length=20) + email = models.EmailField(max_length=20, unique=True) + name = models.CharField(max_length=20) + part = models.CharField(max_length=20, choices=PART_CHOICE) + team = models.CharField(max_length=20, choices=TEAM_CHOICE) + demoday = models.BooleanField(default=False) + part = models.BooleanField(default=False) + + def __str__(self): + return f'{self.name} ({self.part})' diff --git a/accounts/tests.py b/accounts/tests.py new file mode 100644 index 0000000..7ce503c --- /dev/null +++ b/accounts/tests.py @@ -0,0 +1,3 @@ +from django.test import TestCase + +# Create your tests here. diff --git a/accounts/views.py b/accounts/views.py new file mode 100644 index 0000000..91ea44a --- /dev/null +++ b/accounts/views.py @@ -0,0 +1,3 @@ +from django.shortcuts import render + +# Create your views here. diff --git a/demoday/__init__.py b/demoday/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/demoday/admin.py b/demoday/admin.py new file mode 100644 index 0000000..8c38f3f --- /dev/null +++ b/demoday/admin.py @@ -0,0 +1,3 @@ +from django.contrib import admin + +# Register your models here. diff --git a/demoday/apps.py b/demoday/apps.py new file mode 100644 index 0000000..96ae9cc --- /dev/null +++ b/demoday/apps.py @@ -0,0 +1,6 @@ +from django.apps import AppConfig + + +class DemodayConfig(AppConfig): + default_auto_field = 'django.db.models.BigAutoField' + name = 'demoday' diff --git a/demoday/migrations/0001_initial.py b/demoday/migrations/0001_initial.py new file mode 100644 index 0000000..cda6c50 --- /dev/null +++ b/demoday/migrations/0001_initial.py @@ -0,0 +1,25 @@ +# Generated by Django 4.1.3 on 2022-12-02 17:55 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + initial = True + + dependencies = [ + ] + + operations = [ + migrations.CreateModel( + name='Team', + fields=[ + ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('recipeasy', models.IntegerField(default=0)), + ('forgetmenot', models.IntegerField(default=0)), + ('prefolio', models.IntegerField(default=0)), + ('diametes', models.IntegerField(default=0)), + ('teample', models.IntegerField(default=0)), + ], + ), + ] diff --git a/demoday/migrations/__init__.py b/demoday/migrations/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/demoday/models.py b/demoday/models.py new file mode 100644 index 0000000..9bfd830 --- /dev/null +++ b/demoday/models.py @@ -0,0 +1,14 @@ +from django.db import models + +# Create your models here. + + +class Team(models.Model): + recipeasy = models.IntegerField(default=0) + forgetmenot = models.IntegerField(default=0) + prefolio = models.IntegerField(default=0) + diametes = models.IntegerField(default=0) + teample = models.IntegerField(default=0) + + def __str__(self): + return 'Team' diff --git a/demoday/tests.py b/demoday/tests.py new file mode 100644 index 0000000..7ce503c --- /dev/null +++ b/demoday/tests.py @@ -0,0 +1,3 @@ +from django.test import TestCase + +# Create your tests here. diff --git a/demoday/views.py b/demoday/views.py new file mode 100644 index 0000000..91ea44a --- /dev/null +++ b/demoday/views.py @@ -0,0 +1,3 @@ +from django.shortcuts import render + +# Create your views here. diff --git a/manage.py b/manage.py new file mode 100644 index 0000000..7506531 --- /dev/null +++ b/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', 'CeosVoteBack.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/partleads/__init__.py b/partleads/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/partleads/admin.py b/partleads/admin.py new file mode 100644 index 0000000..9140d80 --- /dev/null +++ b/partleads/admin.py @@ -0,0 +1,7 @@ +from django.contrib import admin +from .models import * +# Register your models here. + + +admin.site.register(BackEnd) +admin.site.register(FrontEnd) diff --git a/partleads/apps.py b/partleads/apps.py new file mode 100644 index 0000000..8932398 --- /dev/null +++ b/partleads/apps.py @@ -0,0 +1,6 @@ +from django.apps import AppConfig + + +class PartleadsConfig(AppConfig): + default_auto_field = 'django.db.models.BigAutoField' + name = 'partleads' diff --git a/partleads/migrations/0001_initial.py b/partleads/migrations/0001_initial.py new file mode 100644 index 0000000..746f6fc --- /dev/null +++ b/partleads/migrations/0001_initial.py @@ -0,0 +1,44 @@ +# Generated by Django 4.1.3 on 2022-12-02 17:55 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + initial = True + + dependencies = [ + ] + + operations = [ + migrations.CreateModel( + name='BackEnd', + fields=[ + ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('hyunyoung', models.IntegerField(default=0)), + ('junyeol', models.IntegerField(default=0)), + ('suhyun', models.IntegerField(default=0)), + ('hyejin', models.IntegerField(default=0)), + ('seunghee', models.IntegerField(default=0)), + ('sanghoon', models.IntegerField(default=0)), + ('junghyun', models.IntegerField(default=0)), + ('suah', models.IntegerField(default=0)), + ('jiahn', models.IntegerField(default=0)), + ], + ), + migrations.CreateModel( + name='FrontEnd', + fields=[ + ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('hanbi', models.IntegerField(default=0)), + ('hyunyoung', models.IntegerField(default=0)), + ('nayeon', models.IntegerField(default=0)), + ('seonyoung', models.IntegerField(default=0)), + ('chaeyeon', models.IntegerField(default=0)), + ('jieun', models.IntegerField(default=0)), + ('seonho', models.IntegerField(default=0)), + ('chaeri', models.IntegerField(default=0)), + ('youngjun', models.IntegerField(default=0)), + ], + ), + ] diff --git a/partleads/migrations/__init__.py b/partleads/migrations/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/partleads/models.py b/partleads/models.py new file mode 100644 index 0000000..101c070 --- /dev/null +++ b/partleads/models.py @@ -0,0 +1,33 @@ +from django.db import models + +# Create your models here. + + +class BackEnd(models.Model): + hyunyoung = models.IntegerField(default=0) + junyeol = models.IntegerField(default=0) + suhyun = models.IntegerField(default=0) + hyejin = models.IntegerField(default=0) + seunghee = models.IntegerField(default=0) + sanghoon = models.IntegerField(default=0) + junghyun = models.IntegerField(default=0) + suah = models.IntegerField(default=0) + jiahn = models.IntegerField(default=0) + + def __str__(self): + return 'BackEnd' + + +class FrontEnd(models.Model): + hanbi = models.IntegerField(default=0) + hyunyoung = models.IntegerField(default=0) + nayeon = models.IntegerField(default=0) + seonyoung = models.IntegerField(default=0) + chaeyeon = models.IntegerField(default=0) + jieun = models.IntegerField(default=0) + seonho = models.IntegerField(default=0) + chaeri = models.IntegerField(default=0) + youngjun = models.IntegerField(default=0) + + def __str__(self): + return 'FrontEnd' diff --git a/partleads/tests.py b/partleads/tests.py new file mode 100644 index 0000000..7ce503c --- /dev/null +++ b/partleads/tests.py @@ -0,0 +1,3 @@ +from django.test import TestCase + +# Create your tests here. diff --git a/partleads/views.py b/partleads/views.py new file mode 100644 index 0000000..91ea44a --- /dev/null +++ b/partleads/views.py @@ -0,0 +1,3 @@ +from django.shortcuts import render + +# Create your views here. diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..8c727ce --- /dev/null +++ b/requirements.txt @@ -0,0 +1,12 @@ +asgiref==3.5.2 +Django==4.1.3 +django-cors-headers==3.13.0 +django-environ==0.9.0 +djangorestframework==3.14.0 +djangorestframework-camel-case==1.3.0 +djangorestframework-simplejwt==5.2.2 +PyJWT==2.6.0 +pytz==2022.6 +sqlparse==0.4.3 +tzdata==2022.7 +whitenoise==6.2.0