From 2507c1f699a961377cf42d42bf4e91e7fb571681 Mon Sep 17 00:00:00 2001 From: ergz Date: Sat, 23 Jul 2022 15:59:39 -0700 Subject: [PATCH] wip --- .gitignore | 162 +++++++++++++++++++- db.sqlite3 | Bin 131072 -> 143360 bytes mysite/__pycache__/settings.cpython-310.pyc | Bin 2283 -> 2323 bytes mysite/settings.py | 3 +- polls/models.py | 11 ++ 5 files changed, 174 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 01d62ab..b1cb160 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,161 @@ -.venv/* \ No newline at end of file +# Byte-compiled / optimized / DLL files +__pycache__/ +*.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 +*.pot + +# Django stuff: +*.log +local_settings.py +db.sqlite3 +db.sqlite3-journal + +# 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/ + +# 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/ + diff --git a/db.sqlite3 b/db.sqlite3 index f50dc6584f855eee87947fcb55f108b41e186bfe..6da740e7046ba61291112326831de389a4eebfe2 100644 GIT binary patch delta 1624 zcmaKsQA}H96vyxBy>KtRy*({u>k71dZKUAq{Y^rZdY z-~E5*obNl|>MFOo%Wbro-4sQYzm-qq&7J_bx8j$Pa|nuP;T}+PNc2FHE2Aqkp+B7LSHJeFFth|1FxrM{i6#k4~;%9grFXI|6<7vfW z6g$lvLs{*09>^+^O_ekcc`bT@CPG1G$NVOvQTS8%Uf33H3hxV-go0voR9LYv&;?vR zBP~^HA^RBU1}-H{OF5~kc4%sHDv?b;QXS0U_oW%?#@f1$r349(SN(p}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AI$uEv~%u7$rNiE*|hiwZZBiH1O9995z1ROa4 delta 46 zcmbO%^jeTNpO=@50SJ_m?<5Iq`= timezone.now() - datetime.timedelta(days=1) + + def __str__(self): + return self.question_text class Choice(models.Model): question = models.ForeignKey(Question, on_delete=models.CASCADE) choice_text = models.CharField(max_length=200) votes = models.IntegerField(default=0) + + def __str__(self): + return self.choice_text \ No newline at end of file