{"id":20505354,"url":"https://github.com/sm-haris/django-rest-app","last_synced_at":"2026-05-03T17:32:34.781Z","repository":{"id":247791989,"uuid":"826843695","full_name":"SM-Haris/django-rest-app","owner":"SM-Haris","description":"This comprehensive Django project demonstrates the power of Django REST Framework, showcasing features like RESTful API design, custom authentication, robust logging, user management (CRUD), and search/filtering capabilities. It exemplifies best practices for building secure and user-friendly REST APIs with Django.","archived":false,"fork":false,"pushed_at":"2024-07-10T14:27:13.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-26T02:04:25.281Z","etag":null,"topics":["authentication","authorization","django","django-rest-framework","logging","postgresql","python","rest-api"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SM-Haris.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-07-10T13:42:40.000Z","updated_at":"2024-07-10T14:31:00.000Z","dependencies_parsed_at":"2024-07-10T17:27:01.334Z","dependency_job_id":null,"html_url":"https://github.com/SM-Haris/django-rest-app","commit_stats":null,"previous_names":["sm-haris/django-rest-app"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SM-Haris/django-rest-app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SM-Haris%2Fdjango-rest-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SM-Haris%2Fdjango-rest-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SM-Haris%2Fdjango-rest-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SM-Haris%2Fdjango-rest-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SM-Haris","download_url":"https://codeload.github.com/SM-Haris/django-rest-app/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SM-Haris%2Fdjango-rest-app/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32578578,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T06:36:36.687Z","status":"ssl_error","status_checked_at":"2026-05-03T06:36:09.306Z","response_time":103,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["authentication","authorization","django","django-rest-framework","logging","postgresql","python","rest-api"],"created_at":"2024-11-15T19:45:59.358Z","updated_at":"2026-05-03T17:32:34.744Z","avatar_url":"https://github.com/SM-Haris.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Django REST Backend\n\n## Description\n\nThis Django project serves as a comprehensive demonstration of Django REST Framework's capabilities. It implements robust features, including:\n\n* **RESTful API Design**: Endpoints adhere to RESTful principles, ensuring a clean and consistent API structure.\n* **Authentication**: Secure access is provided using a custom implementation built upon Simple JWT for user authentication.\n* **Authorization**: Fine-grained control over user permissions is not directly implemented in this example, but the groundwork can be laid for future integration.\n* **Custom User Model**: A CustomUser class extends the default Django user model with additional fields or logic tailored to your application's needs.\n* **Exception Handling**: Custom middlewares effectively catch and handle unhandled exceptions, providing informative error messages for debugging and user experience.\n* **Audit Logging and Error Logging**: Essential actions and errors are logged to files for auditing, troubleshooting, and security purposes. Logs are rotated on a 5-day basis to manage storage efficiently.\n* **User CRUD APIs**: Comprehensive REST APIs are created for user creation, retrieval, update, and deletion (CRUD) operations.\n* **Token Refresh and Verification**: Dedicated API endpoints handle token refresh and verification for maintaining user sessions securely.\n* **User Signup and Login**: Streamlined APIs facilitate user registration and login, allowing users to interact with the application.\n* **Custom Mixins**: Reusable mixins are designed to simplify queryset filtering operations within your API views.\n* **Serializers:** Serializer classes map between Python objects (models) and JSON representations, ensuring data integrity and efficient data exchange.\n* **Search and Filtering**: Powerful query parameters leverage Django and REST Framework filters, enabling users to search and filter data based on specific criteria.\n* **Database Connection**: The project is configured to connect to a PostgreSQL database for data storage and persistence.\n\n## Prerequisites\n\n* Python 3.x (Recommended: Use a virtual environment)\n* pip (Package installer for Python)\n* PostgreSQL database server\n* Installation\n\n## Clone the repository:\n \n```Bash\ngit clone https://github.com/SM-Haris/django-rest-app.git\n```\n\n## Create a virtual environment (recommended for isolation):\n\n```Bash\npython -m venv venv\nsource venv/bin/activate  # For Linux/macOS\nvenv\\Scripts\\activate.bat  # For Windows\n```\n\n## Install project dependencies:\n\n```Bash\npip install -r requirements.txt\n```\n\n## Apply database migrations:\n\n```Bash\npython manage.py migrate\n```\n\n### (Optional) Create a PostgreSQL database and configure connection details in settings.py.\n\n## Start the development server:\n\n```Bash\npython manage.py runserver\n```\nAccess the API in your web browser, typically at http://127.0.0.1:8000/.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsm-haris%2Fdjango-rest-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsm-haris%2Fdjango-rest-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsm-haris%2Fdjango-rest-app/lists"}