{"id":31758256,"url":"https://github.com/iepathos/djsetuplocal","last_synced_at":"2025-10-09T20:03:11.129Z","repository":{"id":149676304,"uuid":"6715397","full_name":"iepathos/djsetuplocal","owner":"iepathos","description":"A quick and clean tutorial for setting up a local_settings for a Django 1.4.2 development enviroment with git version control.","archived":false,"fork":false,"pushed_at":"2012-11-16T12:51:19.000Z","size":160,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-19T15:22:21.625Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/iepathos.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}},"created_at":"2012-11-16T02:36:46.000Z","updated_at":"2014-04-22T13:04:38.000Z","dependencies_parsed_at":"2023-04-01T08:12:00.636Z","dependency_job_id":null,"html_url":"https://github.com/iepathos/djsetuplocal","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/iepathos/djsetuplocal","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iepathos%2Fdjsetuplocal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iepathos%2Fdjsetuplocal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iepathos%2Fdjsetuplocal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iepathos%2Fdjsetuplocal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iepathos","download_url":"https://codeload.github.com/iepathos/djsetuplocal/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iepathos%2Fdjsetuplocal/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279002011,"owners_count":26083258,"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","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"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":[],"created_at":"2025-10-09T20:01:58.895Z","updated_at":"2025-10-09T20:03:11.123Z","avatar_url":"https://github.com/iepathos.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# How to Setup your Django 1.4.2 project with a local_settings.py\n## Setup your development environment - Quick and Clean\n### Written by Glen Baker - iepathos@gmail.com \u003ca href=\"http://coderwall.com/iepathos\"\u003e\u003cimg src=\"http://api.coderwall.com/iepathos/endorsecount.png\" /\u003e\u003c/a\u003e\n#### I learned this method from [django-workshop.de](http://www.django-workshop.de)\n\n## Start new Django 1.4.2 project - djsetuplocal\n````shell\ndjango-admin.py startproject djsetuplocal\ncd djsetuplocal/djsetuplocal\n````\n\n## Edit settings.py\n### djsetuplocal/djsetuplocal/settings.py\n````python\n  import os\n  SITE_ROOT = os.path.realpath(os.path.dirname(__file__))\n\n  DEBUG = False\n# delete TEMPLATE_DEBUG = DEBUG\n````\n\n#### At the bottom of settings.py, below Logging\n````python\n  try:\n    from local_settings import *\n  except ImportError:\n    pass\n````\n\n## Enter all local information in local_settings.py\n### djsetuplocal/djsetuplocal/local_settings.py\n````python\n# Grabs the site root setup in settings.py\n  import os\n  from settings import SITE_ROOT\n\n  DEBUG = True\n  TEMPLATE_DEBUG = DEBUG\n\n  # sqlite is the quick an easy development db\n    DATABASES = {\n      'default': {\n          'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.\n          'NAME': os.path.join(SITE_ROOT, 'djlocal.db'),                      # Or path to database file if using sqlite3.\n          'USER': '',                      # Not used with sqlite3.\n          'PASSWORD': '',                  # Not used with sqlite3.\n          'HOST': '',                      # Set to empty string for localhost. Not used with sqlite3.\n          'PORT': '',                      # Set to empty string for default. Not used with sqlite3.\n      }\n  }\n````\n\n## And you're good to go.  Enter new local development databases into local_settings.py.  Create .gitignore file in djsetuplocal and make sure local_settings.py is added to it.\n### djsetuplocal/.gitignore\n````text\n  *.pyc\n  *.pyo\n  .installed.cfg\n  bin\n  develop-eggs\n  dist\n  downloads\n  eggs\n  parts\n  src/*.egg-info\n  lib\n  lib64\n  local_settings.py\n  *~\n````\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiepathos%2Fdjsetuplocal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiepathos%2Fdjsetuplocal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiepathos%2Fdjsetuplocal/lists"}