From ef4ca9ab6a6d386e121c6b8b70954749efe89110 Mon Sep 17 00:00:00 2001 From: Tahinli Date: Sat, 29 Jun 2024 03:03:21 +0300 Subject: [PATCH] feat: :sparkles: user --- .gitignore | 202 ++++++++++++++------ .idea/workspace.xml | 34 ++-- .vscode/settings.json | 3 + db.sqlite3 | Bin 131072 -> 135168 bytes tJango/__pycache__/settings.cpython-312.pyc | Bin 2696 -> 2709 bytes tJango/__pycache__/urls.cpython-312.pyc | Bin 2346 -> 1629 bytes tJango/settings.py | 2 + tJango/urls.py | 16 +- user/__init__.py | 0 user/admin.py | 5 + user/apps.py | 6 + user/migrations/0001_initial.py | 22 +++ user/migrations/__init__.py | 0 user/models.py | 12 ++ user/serializers.py | 8 + user/tests.py | 3 + user/views.py | 16 ++ 17 files changed, 244 insertions(+), 85 deletions(-) create mode 100644 user/__init__.py create mode 100644 user/admin.py create mode 100644 user/apps.py create mode 100644 user/migrations/0001_initial.py create mode 100644 user/migrations/__init__.py create mode 100644 user/models.py create mode 100644 user/serializers.py create mode 100644 user/tests.py create mode 100644 user/views.py diff --git a/.gitignore b/.gitignore index 3649d6d..52a670b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,77 +1,159 @@ -# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider -# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 +# Byte-compiled / optimized / DLL files +__pycache__/ +*.py[cod] +*$py.class -# User-specific stuff -.idea/**/workspace.xml -.idea/**/tasks.xml -.idea/**/usage.statistics.xml -.idea/**/dictionaries -.idea/**/shelf -# AWS User-specific -.idea/**/aws.xml +# C extensions +*.so -# Generated files -.idea/**/contentModel.xml +# 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 -# Sensitive or high-churn files -.idea/**/dataSources/ -.idea/**/dataSources.ids -.idea/**/dataSources.local.xml -.idea/**/sqlDataSources.xml -.idea/**/dynamic.xml -.idea/**/uiDesigner.xml -.idea/**/dbnavigator.xml +# 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 -# Gradle -.idea/**/gradle.xml -.idea/**/libraries +# Installer logs +pip-log.txt +pip-delete-this-directory.txt -# Gradle and Maven with auto-import -# When using Gradle or Maven with auto-import, you should exclude module files, -# since they will be recreated, and may cause churn. Uncomment if using -# auto-import. -# .idea/artifacts -# .idea/compiler.xml -# .idea/jarRepositories.xml -# .idea/modules.xml -# .idea/*.iml -# .idea/modules -# *.iml -# *.ipr +# Unit test / coverage reports +htmlcov/ +.tox/ +.nox/ +.coverage +.coverage.* +.cache +nosetests.xml +coverage.xml +*.cover +*.py,cover +.hypothesis/ +.pytest_cache/ +cover/ -# CMake -cmake-build-*/ +# Translations +*.mo +*.pot -# Mongo Explorer plugin -.idea/**/mongoSettings.xml +# Django stuff: +*.log +local_settings.py +db.sqlite3 +db.sqlite3-journal -# File-based project format -*.iws +# Flask stuff: +instance/ +.webassets-cache -# IntelliJ -out/ +# Scrapy stuff: +.scrapy -# mpeltonen/sbt-idea plugin -.idea_modules/ +# Sphinx documentation +docs/_build/ -# JIRA plugin -atlassian-ide-plugin.xml +# PyBuilder +.pybuilder/ +target/ -# Cursive Clojure plugin -.idea/replstate.xml +# Jupyter Notebook +.ipynb_checkpoints -# SonarLint plugin -.idea/sonarlint/ +# IPython +profile_default/ +ipython_config.py -# Crashlytics plugin (for Android Studio and IntelliJ) -com_crashlytics_export_strings.xml -crashlytics.properties -crashlytics-build.properties -fabric.properties +# 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 -# Editor-based Rest Client -.idea/httpRequests +# 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 -# Android studio 3.1+ serialized cache file -.idea/caches/build_file_checksums.ser +# 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/latest/usage/project/#working-with-version-control +.pdm.toml +.pdm-python +.pdm-build/ + +# 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/ + +.idea/ +.vscode/ \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml index c6baf6e..e5c8df4 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -5,7 +5,12 @@ + + + + + - { + "keyToString": { + "ASKED_ADD_EXTERNAL_FILES": "true", + "RunOnceActivity.OpenDjangoStructureViewOnStart": "true", + "RunOnceActivity.ShowReadmeOnStart": "true", + "git-widget-placeholder": "main", + "node.js.detected.package.eslint": "true", + "node.js.detected.package.tslint": "true", + "node.js.selected.package.eslint": "(autodetect)", + "node.js.selected.package.tslint": "(autodetect)", + "nodejs_package_manager_path": "npm", + "settings.editor.selected.configurable": "com.jetbrains.python.configuration.PyActiveSdkModuleConfigurable", + "vue.rearranger.settings.migration": "true" } -}]]> +} @@ -95,6 +100,7 @@ 1719511805110 + diff --git a/.vscode/settings.json b/.vscode/settings.json index ab27b3d..af09d9b 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,4 +1,7 @@ { + "python.defaultInterpreterPath": "${workspaceFolder}/.venv/bin/python", + "python.analysis.indexing": true, + "python.analysis.packageIndexDepths":[["rest_framework", 5, true]], "cSpell.words": [ "viewsets" ] diff --git a/db.sqlite3 b/db.sqlite3 index c97bd7b82bc705b6bd49301f5e5386dc71c74db4..81f1ebb934f18ae936c0a13b8ccf8e39b23e37e0 100644 GIT binary patch delta 2894 zcmcIlU2NOd73MYNP_ixExVDfcwkt(R)^>>%@{$rsEkQ@wifu(dv1L1syUeEkNJ`fK zk7c!iqO?!#LzWn5fMGzpEsuMc;G)H_?4bzyvOR1C1`JuV7057P!@3UJ5bR;Ywo5uu z6t7zrU?ZeMUf%EUJNLWio^$!K`SLsFuZ<0h1VJ3e|A*I?uAN|k*jc{`$&o?FHnsm) z-=L$@{^P*l$&r4-eoU%WQswP$I_$%Olcs%$^>MVDL9FOOJLksUH9bSYbprktuEX!c zI(!p;9e$_N4#M@(K5`NyGjd)jtjWoomS5W_DCQ9pc^t^Ks=8K8m2+C9q80MvRttI9 zY`j#;g<5fFfOJ@lp-v5dN|>yJqyy-KHQn?dAW0V7IIMz^DGD#c{%|SXyB&}xA9Ck3 zr7Tx5O=V;N11NZjfStK-C)oOsO>jj+9JmX?`>0GX3Rs= zL#`oW@Ls3=t-;p#cs~Ig&r@|RwP^%1CFh;`z^OYr$MEct<5V)Wk*cP;^Si@c#Gze8 zLdC*7LhKF=#G!*2F>#ENlgaJ}@Ut=J+L1%wCdqN@-EHa|W47(L{@wbi^=_yA4eJy% z0S9;#*Z8mr909$NjP1VZVLoItfeFxMI=JKb>aW2*051~oVy7L0t+o?biS}v9GG?_} zERwYt&nDAot)j}v<2}kF8ed17saObw<>j(aUYuG`8nU3w7g9&hMpn-y%a7-)lCue6P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