{"id":25930653,"url":"https://github.com/rubyhcm/demo_django_admin","last_synced_at":"2026-05-11T10:33:33.204Z","repository":{"id":279902315,"uuid":"498538282","full_name":"rubyhcm/demo_django_admin","owner":"rubyhcm","description":null,"archived":false,"fork":false,"pushed_at":"2025-02-28T09:09:58.000Z","size":232,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-01T11:16:39.253Z","etag":null,"topics":["django","python3"],"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/rubyhcm.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":"2022-06-01T00:23:32.000Z","updated_at":"2025-02-28T09:11:29.000Z","dependencies_parsed_at":"2025-02-28T12:04:38.379Z","dependency_job_id":"b348e9e6-64da-4924-ab22-1d76d1477fe9","html_url":"https://github.com/rubyhcm/demo_django_admin","commit_stats":null,"previous_names":["rubyhcm/demo_django"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rubyhcm/demo_django_admin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubyhcm%2Fdemo_django_admin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubyhcm%2Fdemo_django_admin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubyhcm%2Fdemo_django_admin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubyhcm%2Fdemo_django_admin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rubyhcm","download_url":"https://codeload.github.com/rubyhcm/demo_django_admin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubyhcm%2Fdemo_django_admin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32890678,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-10T13:40:02.631Z","status":"online","status_checked_at":"2026-05-11T02:00:05.975Z","response_time":120,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["django","python3"],"created_at":"2025-03-03T23:22:20.111Z","updated_at":"2026-05-11T10:33:33.185Z","avatar_url":"https://github.com/rubyhcm.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"#### Install Xampp\n\n```\nchmod 755 xampp-linux-_-installer.run\nsudo ./xampp-linux-_-installer.run\n```\n\n#### Install Python\n\n```\nsudo apt update\nsudo apt install -y software-properties-common\nsudo add-apt-repository ppa:deadsnakes/ppa\nsudo apt update\nsudo apt install -y python3.13\npython3 --version\npython --version\n\nor\n\ntar -xf filename.tar.xz\ncd extracted_directory_name\n./configure\nmake\nsudo make install\n```\n\n#### Install Django\n\n```\nsudo apt install python3-pip\n\n==\u003e run in project folder:\npython3.13 -m venv myenv\nsource myenv/bin/activate\npip install --upgrade pip\npip install Django\ndjango-admin --version\n```\n\n#### Create roject\n\n```\ndjango-admin startproject mysite\n```\n\n#### Create app\n\n```\ncd mysite\npython manage.py startapp news\n```\n\n```python\n# Generate migrations of app news\npython manage.py makemigrations news\n\n# Run migrations\npython manage.py migrate\n```\n\n#### Run\n\n```\npython mysite/manage.py runserver\npython mysite/manage.py runserver 8080\n```\n\n#### Step\n\nRun migrations: `python manage.py migrate`\nCreate admin user: `python manage.py createsuperuser`\n\n`source /home/nguyenloi/Desktop/demo-django/myenv/bin/activate`\n`sudo apt-get install libmysqlclient-dev`\n`pip install mysqlclient`\n\nor\n\n`pip install PyMySQL`\n\n```python\n# mysite/mysite/__init__.py\nimport pymysql\npymysql.install_as_MySQLdb()\n```\n\nConfig database: mysite/mysite/settings.py\n\nFilter with list_filter\nSearch with search_fields\n\n#### Create model\n\nCreate models in mysite/news/models.py and Add app into mysite/mysite/settings.py\nAdd model to admin in mysite/news/admin.py\n\n#### Create foreign key\n\n`category = models.ForeignKey(Category, on_delete=models.CASCADE)`\n\n#### Create requirement.txt\n\n`pip freeze \u003e requirements.txt`\n\n#### Delete old image\n\n`pip install django-cleanup`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubyhcm%2Fdemo_django_admin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frubyhcm%2Fdemo_django_admin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubyhcm%2Fdemo_django_admin/lists"}