{"id":22197306,"url":"https://github.com/swapno963/linux","last_synced_at":"2025-03-24T22:44:20.180Z","repository":{"id":260032468,"uuid":"880095729","full_name":"Swapno963/Linux","owner":"Swapno963","description":null,"archived":false,"fork":false,"pushed_at":"2024-12-22T04:42:58.000Z","size":39,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-30T02:22:14.148Z","etag":null,"topics":["automationscripts","docker","linux"],"latest_commit_sha":null,"homepage":"","language":null,"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/Swapno963.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-10-29T05:21:32.000Z","updated_at":"2024-12-22T04:43:01.000Z","dependencies_parsed_at":"2024-10-29T06:26:01.539Z","dependency_job_id":"a00682d7-2c1f-44f7-b2e3-1f51e986d135","html_url":"https://github.com/Swapno963/Linux","commit_stats":null,"previous_names":["swapno963/linux"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Swapno963%2FLinux","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Swapno963%2FLinux/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Swapno963%2FLinux/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Swapno963%2FLinux/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Swapno963","download_url":"https://codeload.github.com/Swapno963/Linux/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245366196,"owners_count":20603438,"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":["automationscripts","docker","linux"],"created_at":"2024-12-02T14:19:08.695Z","updated_at":"2025-03-24T22:44:20.157Z","avatar_url":"https://github.com/Swapno963.png","language":null,"readme":"# Project on Linux Setup Guide\n\nThis guide provides step-by-step instructions for setting up Python, pip, virtual environments, and Django on a Linux system.\n\n## Prerequisites\n\nEnsure **Python 3** is installed on your system. You can check this by running:\n\n```bash\npython3 --version\n```\n\n\n\n## 1. Install pip3\npip3 is the package manager for Python, allowing you to easily install and manage Python libraries.\n```bash\nsudo apt update\nsudo apt install python3-pip\npip3 --version  # Verify the installation\n```\n\n\n\n\n## 2. Install python3-venv\nThe python3-venv module is used to create isolated Python environments.\n```bash\nsudo apt update\nsudo apt install python3-venv\n```\n\n\n\n## 3. Create and Activate a Virtual Environment and Activate it\n- Create the virtual environment:\n```bash\npython3 -m venv myenv \u0026\u0026 source myenv/bin/activate\n```\n### Do Everything at once\n```bash\npip3 install django \u0026\u0026 django-admin startproject myproject . \u0026\u0026 python manage.py startapp myapp \u0026\u0026 python manage.py migrate \u0026\u0026 python manage.py createsuperuser --username ad --email admin@example.com \u0026\u0026 pip3 freeze \u003e requirements.txt \u0026\u0026 python manage.py runserver\n```\n\n## 4. Install Django,djangorestframework\nOnce inside the virtual environment, install Django:\n```bash\npip3 install django djangorestframework\n```\n\n\n\n## 5. Deactivate the Virtual Environment\nTo exit the virtual environment, simply run:\n```bash\ndeactivate\n```\n\n\n## 6. Django Project Commands\n- Create a New Django Project:\n```bash\ndjango-admin startproject myproject\n```\n\n- Create a New Django App:\n```bash\npython manage.py startapp myapp\n```\n- Make Migrations: This command creates migration files for any changes made to the models.\n```bash\npython manage.py makemigrations\n```\n- Apply Migrations: This command applies the migration files to the database.\n```bash\npython manage.py migrate\n```\n- Create a Superuser: Set up an admin account to access Django’s admin interface.\n```bash\npython manage.py createsuperuser --username ad --email admin@example.com \n```\n- Run the Development Server: Start the Django development server to view your project in the browser.\n```bash\npython manage.py runserver\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswapno963%2Flinux","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fswapno963%2Flinux","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswapno963%2Flinux/lists"}