{"id":26981108,"url":"https://github.com/sanjayengineer121/python-django-assignment","last_synced_at":"2025-06-29T15:03:51.104Z","repository":{"id":214976154,"uuid":"737816952","full_name":"sanjayengineer121/Python-Django-Assignment","owner":"sanjayengineer121","description":null,"archived":false,"fork":false,"pushed_at":"2024-01-01T18:35:06.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-03T15:44:43.087Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sanjayengineer121.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-01-01T15:57:22.000Z","updated_at":"2024-01-01T16:00:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"0d83780a-e0f6-46e0-bde1-1d42768d52b6","html_url":"https://github.com/sanjayengineer121/Python-Django-Assignment","commit_stats":null,"previous_names":["sanjayengineer121/python-django-assignment"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sanjayengineer121/Python-Django-Assignment","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanjayengineer121%2FPython-Django-Assignment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanjayengineer121%2FPython-Django-Assignment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanjayengineer121%2FPython-Django-Assignment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanjayengineer121%2FPython-Django-Assignment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sanjayengineer121","download_url":"https://codeload.github.com/sanjayengineer121/Python-Django-Assignment/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanjayengineer121%2FPython-Django-Assignment/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262614457,"owners_count":23337277,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-04-03T15:32:42.922Z","updated_at":"2025-06-29T15:03:51.083Z","avatar_url":"https://github.com/sanjayengineer121.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Python-Django-Assignment\n\n# --------Login Page using djangi rest framewoork\n\n\u003cimg src=\"https://i.postimg.cc/43T92KyM/01-01-2024-21-45-33-REC.png\"\u003e\n\n# ------New User sign up authentication\n\n\u003cimg src=\"https://i.postimg.cc/Dfg38R1b/01-01-2024-21-46-03-REC.png\"\u003e\n\n# ------Logout after that only authentication (it is not a refresh token)\n\n\u003cimg src=\"https://i.postimg.cc/gkxpQN6X/01-01-2024-21-45-15-REC.png\"\u003e\n\n# ----------------------------------------------------------------------\n\n# ---------------I have connected mangodb database -----------------\n\n----- Frame work used\n\n- Werkzeug==2.3.7\n- django-auth-framework==2.0.7\n- WTForms==3.0.1\n- djongo==1.3.6\n- pymongo==4.6.1\n- Django==5.0\n- djangorestframework\n\n\u003cbr\u003e\n\n#-------------How to run\n\n@ First run command\n\npip install -r requirements.txt\n\n@ second open mongo db graphical application and start server-\n\n- setp 1\n  \u003cimg src=\"https://i.postimg.cc/X7DsD6RF/01-01-2024-23-43-58-REC.png\"\u003e\n- step 2\n- after press on connect i can se it is connected\n  \u003cimg src=\"https://i.postimg.cc/3w6yPnKt/01-01-2024-23-44-22-REC.png\"\u003e\n- step 3\n- press on plus icon to create a database(schema)\n  \u003cimg src=\"https://i.postimg.cc/gr9HmGmB/01-01-2024-23-44-22-REC.png\"\u003e\n- step 4\n- after submitting database and collection name\n  \u003cimg src=\"https://i.postimg.cc/Nj2vd4zs/01-01-2024-23-44-40-REC.png\"\u003e\n  \u003cimg src=\"https://i.postimg.cc/vTSHVmc3/01-01-2024-23-44-55-REC.png\"\u003e\n- step 5\n  enter detail below and update in settings.py\n  \u003cimg src=\"https://i.postimg.cc/q7Rr8rHF/01-01-2024-23-46-57-REC.png\"\u003e\n- setp 6\n  after that\n  we have to migrate that changes\n  1. python manage.py migrate\n  2. python manage.py makemigrations\n\n- step 7\n  check in mongo db\n  \u003cimg src=\"https://i.postimg.cc/NGy1d2xs/01-01-2024-23-46-27-REC.png\"\u003e\n\n- step 8\n  run command to run django server\n\n  loginproject\u003epython manage.py runserver\n\n\n\nAPIs\n- Login API\n-\n  1. #akes phone number and password\n  2. Create the user if it does not exist\n  3. Validate the credentials and generate the user auth token\n  4. Returns the response in the JSON format\n  \n# Profile API\n- \n  Takes the user auth token as input in the headers\n  Returns the user profile information in JSON format\n\n# Logout API\n - Takes the user auth token as input in the headers\n- Logs out and clears all the sessions and token information for that user\n- Returns the response\n - Post logout, if we try profile API, it should not work as the user is logged\nout\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsanjayengineer121%2Fpython-django-assignment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsanjayengineer121%2Fpython-django-assignment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsanjayengineer121%2Fpython-django-assignment/lists"}