{"id":15321955,"url":"https://github.com/akmamun/django-static-file-handle","last_synced_at":"2026-04-28T20:33:23.874Z","repository":{"id":106930619,"uuid":"111773815","full_name":"akmamun/django-static-file-handle","owner":"akmamun","description":"Django Static and Media File Handle ","archived":false,"fork":false,"pushed_at":"2018-01-09T19:52:42.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-01T18:43:32.126Z","etag":null,"topics":["django","django-framework","django-media-file","django-static-import","python","static-files"],"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/akmamun.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":"2017-11-23T06:50:26.000Z","updated_at":"2021-11-04T17:17:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"1e845991-708a-4bd0-bff4-cef400a3119c","html_url":"https://github.com/akmamun/django-static-file-handle","commit_stats":{"total_commits":3,"total_committers":1,"mean_commits":3.0,"dds":0.0,"last_synced_commit":"7d0229ce4cc08ea98c95c428c3ec5b8f750379f1"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akmamun%2Fdjango-static-file-handle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akmamun%2Fdjango-static-file-handle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akmamun%2Fdjango-static-file-handle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akmamun%2Fdjango-static-file-handle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/akmamun","download_url":"https://codeload.github.com/akmamun/django-static-file-handle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245864059,"owners_count":20684959,"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-media-file","django-static-import","python","static-files"],"created_at":"2024-10-01T09:13:44.299Z","updated_at":"2026-04-28T20:33:23.838Z","avatar_url":"https://github.com/akmamun.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Django Static File Handle\n* Used Django 1.11\n* In Django, For Static File handling add those line of code in settings.py and urls.py\n\n# settings.py\nAt the end of setting.py add those lines\n```python\nSTATIC_URL = '/static/'\n\nSTATICFILES_DIRS = [\n    os.path.join(BASE_DIR,\"static_folder_name\"),  #CSS/JS Static Files Handle\n    \n]\n\nSTATIC_ROOT = os.path.join(os.path.dirname(BASE_DIR), \"project_folder_name/static_cdn\", \"static_root\") #Project Folder/ Media File Saving Folder\n\nMEDIA_URL = '/media/'\n\nMEDIA_ROOT = os.path.join(os.path.dirname(BASE_DIR), \"project_folder_name/static_cdn\", \"media_root\") #Media File Saving Folder \n```\n# urls.py\nAt the beginning of urls.py add those lines\n```python\nfrom django.conf import settings\nfrom django.conf.urls.static import static\nfrom django.contrib import admin #For Urlpatterns Not For Media Url\n\nurlpatterns = [\n    url(r'^admin/', admin.site.urls),\n\n]\n```\nAt the end of urls.py add those lines\n```python\n\nif settings.DEBUG:\n    urlpatterns = urlpatterns + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)\n    urlpatterns = urlpatterns + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakmamun%2Fdjango-static-file-handle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fakmamun%2Fdjango-static-file-handle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakmamun%2Fdjango-static-file-handle/lists"}