{"id":17687931,"url":"https://github.com/pixincreate/pymojango-framework","last_synced_at":"2025-03-12T18:30:49.551Z","repository":{"id":41901054,"uuid":"479400200","full_name":"pixincreate/pymojango-framework","owner":"pixincreate","description":"A python framework for web development. Easy integration with PyMongo, Django and MongoDB.","archived":false,"fork":false,"pushed_at":"2024-04-08T16:37:57.000Z","size":137,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-04-08T20:29:15.213Z","etag":null,"topics":["django","django-framework","django-project","django-pymongo","django-pymongo-mongodb","mongodb","mongodb-atlas","pymojango","pymongo"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pixincreate.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}},"created_at":"2022-04-08T13:24:33.000Z","updated_at":"2023-06-05T18:12:53.000Z","dependencies_parsed_at":"2023-02-18T11:30:32.932Z","dependency_job_id":"c9b3d80c-c2ee-4549-91c4-c2da57b21c0b","html_url":"https://github.com/pixincreate/pymojango-framework","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pixincreate%2Fpymojango-framework","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pixincreate%2Fpymojango-framework/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pixincreate%2Fpymojango-framework/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pixincreate%2Fpymojango-framework/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pixincreate","download_url":"https://codeload.github.com/pixincreate/pymojango-framework/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221309153,"owners_count":16795696,"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":["django","django-framework","django-project","django-pymongo","django-pymongo-mongodb","mongodb","mongodb-atlas","pymojango","pymongo"],"created_at":"2024-10-24T11:23:44.783Z","updated_at":"2024-10-24T11:23:45.363Z","avatar_url":"https://github.com/pixincreate.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# About: pymojango-framework\nIntegration of Django with MongoDB using PyMongo later implement REST API to talk to frontend of the code.  \n  \n## Pre-requisites:\n- command-prompt\n- [python 3.6 or later](https://www.python.org/downloads/) [Latest(3.10+) is recommended ]\n- An IDE (PyCharm preferred)\n- Patience\n\n## Getting-Started:\n- Open Command-Prompt by typing CMD on **RUN**(Win_Key + R) or in your preferred dir.\n- `mkdir \u003cfolder-name\u003e`  (give a folder-name and this is optional and **not** recommended)\n- `django-admin startproject \u003cproject-name\u003e`  (start django project)\n- `cd \u003cproject-name\u003e`  (access the dir to start working)\n- Create a virtual environment by typing `python -m venv \u003cenvironment-name\u003e`\n- Activate the `environment` by typing `venv\\scripts\\activate`. You'll see `(environment-name)` written in before the path in **cmd**.\n- After activating the `environment`, install the [`requirements.txt`](https://github.com/pixincreate/framework-pymojango/blob/main/requirements.txt) by typing `pip install -r requirements.txt`.\n- `python manage.py startapp \u003capp-name\u003e`  (create an app)\n- `type nul\u003e utils.py` (make sure that `utils.py` file exists where `manage.py` exist)\n- `type nul\u003e readme.md` (to keep a documentation of what you're doing)\n- `git init`  (initialise git repo)\n- Put the following commands to set-up a git-repo on GitHub (in case the repo doesn't exist in prior)\n  ```commandline\n    echo \"# \u003crepo-name\u003e\" \u003e\u003e README.md           :: Creted a readme.md file with repo-name in 1st line.\n    git init\n    git add README.md                           :: Tracks the file\n    git commit -m \"first commit\"\n    git branch -M main\n    git remote add origin https://github.com/\u003cuser-name\u003e\u003e/\u003cgit-repo-name\u003e.git\n    git push -u origin main                     :: Pushes the commits to repo\n    ``` \n- Put the following commands to push to git-repo on GitHub (in case the repo does exist in prior)\n    ```commandline\n    git remote add origin https://github.com/\u003cuser-name\u003e\u003e/\u003cgit-repo-name\u003e.git\n    git branch -M main\n    git push -u origin main                     :: Pushes the commits to repo\n    ```\n\n## Current Project Structure:\n```\n\u003cframework-pymojango\u003e [dir]\n├ .git [dir]\n├ .idea [dir]\n├ app [dir]\t# you can create n-number of apps\n|   ├ migrations [dir]\n|   ├ __init__.py\n|   ├ admin.py\n|   ├ apps.py\n|   ├ models.py\n|   ├ tests.py\n|   ├ urls.py\n|   └ views.py\n├ framework [dir]\n|   ├ __init__.py\n|   ├ asgi.py\n|   ├ settings.py\t# Comment the DATABSES section here\n|   ├ urls.py\n|   └ wsgi.py\n├ inputs [dir]\n|   ├ config.py\n|   ├ schema.py\n|   └ user_inputs.py\n├ test [dir]\n|   └ this_code_here_works.py\n├ .gitignore\n├ LICENSE\n├ manage.py\n├ readme.md\n├ requirements.txt\n├ basic-architecture-for-integration-with-react.png\n└ utils.py\n\n```\n\n### [NOTE:] \nAs previously observed, many issues arised upon execution [_Latest fixes are not tested_]. However, `this_code_here_works.py` situated in `./test` folder that has everything **unified** runs without any hassle or error. \n\n## References:\n1. [Schema Validation Docuentation](https://docs.mongodb.com/manual/core/schema-validation/)\n2. [Schema Validation in pymongo query on stackoverflow](https://stackoverflow.com/questions/46569262/does-pymongo-have-validation-rules-built-in/51520384#51520384)\n3. [Django Rest Framework](https://www.django-rest-framework.org/)\n4. [Django tutorial for Beginners](https://data-flair.training/blogs/django-tutorial/)\n5. [MongoDB Integration with Django](https://www.mongodb.com/compatibility/mongodb-and-django)\n6. [Connect Django with ReactJS - Geeks for Geeks](https://www.geeksforgeeks.org/how-to-connect-django-with-reactjs/)\n7. [Django REST Framework by Geeky Shows(Hindi) | YouTube](https://www.youtube.com/playlist?list=PLbGui_ZYuhijTKyrlu-0g5GcP9nUp_HlN)\n8. [Does Pymongo have validation rules built in?](https://stackoverflow.com/questions/46569262/does-pymongo-have-validation-rules-built-in)\n9. [Defining Data Schema using Pymongo](https://www.mongodb.com/community/forums/t/defining-data-schema-using-pymongo/8533/2)\n10. [MongoDB Data Validator: How to use the JSON Schema Validator](https://www.percona.com/blog/2018/08/16/mongodb-how-to-use-json-schema-validator/)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpixincreate%2Fpymojango-framework","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpixincreate%2Fpymojango-framework","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpixincreate%2Fpymojango-framework/lists"}