{"id":15374484,"url":"https://github.com/lispython/django-branding","last_synced_at":"2025-04-04T23:25:26.493Z","repository":{"id":3145160,"uuid":"4174535","full_name":"Lispython/django-branding","owner":"Lispython","description":"Application to set custom headers to response","archived":false,"fork":false,"pushed_at":"2013-02-17T10:28:56.000Z","size":108,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-17T16:21:28.484Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Lispython.png","metadata":{"files":{"readme":"README.rst","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}},"created_at":"2012-04-29T13:24:11.000Z","updated_at":"2014-05-27T13:06:24.000Z","dependencies_parsed_at":"2022-08-19T10:20:50.676Z","dependency_job_id":null,"html_url":"https://github.com/Lispython/django-branding","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/Lispython%2Fdjango-branding","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lispython%2Fdjango-branding/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lispython%2Fdjango-branding/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lispython%2Fdjango-branding/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Lispython","download_url":"https://codeload.github.com/Lispython/django-branding/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247263932,"owners_count":20910489,"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":[],"created_at":"2024-10-01T13:58:53.905Z","updated_at":"2025-04-04T23:25:26.469Z","avatar_url":"https://github.com/Lispython.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"django-branding\n---------------\n\nAdd branding headers to response.\n\n\nRequirements\n============\n\n* Django\n\nInstallation\n============\n\nInstall it with pip (or easy_install)::\n\n\tpip install django-branding\n\nUsage\n=====\n\nAdd branding middleware from branding to you django config\n\n     MIDDLEWARE_CLASSES += 'branding.middleware.BrandingMiddleware',\n\nDefine headers variables in settings\n\n     BRANDING = {\n         'X-Programming': 'Lispython',\n         'X-Revision': '232134'\n     }\n\n     X_SERVER = \"Super Server\"\n\n\nExample\n=======\n\nExample of headers on http://dzone.me\n\n\n    In [1]: import human_curl as hurl\n\n    In [2]: r = hurl.get('http://dzone.me')\n\n    In [3]: r.headers\n    Out[3]:\n    {'cache-control': 'max-age=600',\n    'connection': 'keep-alive',\n    'content-language': 'ru-ru',\n    'content-length': '55239',\n    'content-type': 'text/html; charset=utf-8',\n    'date': 'Sun, 29 Apr 2012 12:51:12 GMT',\n    'expires': 'Sun, 29 Apr 2012 13:01:12 GMT',\n    'last-modified': 'Sun, 29 Apr 2012 12:51:12 GMT',\n    'link': '\u003cdzone.me\u003e; rel=\"platform\"',\n    'server': 'Super Server',\n    'vary': 'Accept-Language, Cookie, Accept-Encoding',\n    'x-powered-by': 'D Zone',\n    'x-programming': 'Alex Lispython (alex@dzone.me, github.com/lispython)',\n    'x-revision': '5215de3',\n    'x-version': '20120311.0013-0'}\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flispython%2Fdjango-branding","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flispython%2Fdjango-branding","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flispython%2Fdjango-branding/lists"}