{"id":20652329,"url":"https://github.com/openpolis/django-project-template","last_synced_at":"2025-07-19T04:33:39.709Z","repository":{"id":17678654,"uuid":"20483493","full_name":"openpolis/django-project-template","owner":"openpolis","description":"A cookiecuter template for django \u003e1.6","archived":false,"fork":false,"pushed_at":"2017-10-06T09:31:49.000Z","size":63,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":4,"default_branch":"django111","last_synced_at":"2025-03-09T21:20:13.460Z","etag":null,"topics":[],"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/openpolis.png","metadata":{"files":{"readme":"README.rst","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":"2014-06-04T12:55:17.000Z","updated_at":"2018-01-17T08:25:04.000Z","dependencies_parsed_at":"2022-09-24T01:01:27.388Z","dependency_job_id":null,"html_url":"https://github.com/openpolis/django-project-template","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/openpolis/django-project-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openpolis%2Fdjango-project-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openpolis%2Fdjango-project-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openpolis%2Fdjango-project-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openpolis%2Fdjango-project-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/openpolis","download_url":"https://codeload.github.com/openpolis/django-project-template/tar.gz/refs/heads/django111","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openpolis%2Fdjango-project-template/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265888940,"owners_count":23844533,"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-11-16T17:33:54.876Z","updated_at":"2025-07-19T04:33:39.688Z","avatar_url":"https://github.com/openpolis.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Django-project-template\n=======================\n\nA `cookiecutter`_ template for Django.\n\nVersion: 0.1\n\nFeatures\n--------\n\n* Python 2.7, 3.4 or 3.5\n* Django 1.11\n* Use `cookiecutter`_ to build new project\n* django-environ (config/.env)\n* django-braces\n* django-model-utils\n* django-extensions\n* two-scoops like settings (package with `development.py`, `production.py` and `test.py`)\n* django-debug-toolbar (only `development.py`)\n* docs with Sphinx\n* tests with Selenium and coverage\n\nUsage\n-----\n\nTo build new project:\n\n.. code-block:: bash\n\n    pip install cookiecutter\n    cookiecutter https://github.com/openpolis/django-project-template.git\n    # use option --checkout for specific branch (django16, django17, django19, django110)\n    # defaults to default branch (django111)\n\n    cd \u003crepo_name\u003e\n    cp config/sample/.env config/\n    mkvirtualenv \u003crepo_name\u003e \n    # use option --python=$(which python3) to create a python3 virtualenv\n    setvirtualenvproject\n    pip install -r requirements/development.txt\n    python project/manage.py migrate\n    python project/manage.py runserver\n\nEdit `config/.env` with your setting values.\n\nProject comes with no external DBMS configured (uses default sqlite db).\n\nTo install a database:\n\n* add ``psycopg2`` to ``requirements/common.txt``\n* uncomment ``DATABASE_URL`` line in ``config/.env`` (setting DB_NAME)\n* create db\n* launch migrate\n\n.. code-block:: bash\n\n    createdb -Upostgres DB_NAME\n    python project/manage.py migrate\n\n\nNotes to use geodjango:\n\n* follow instructions to install geolibraries: https://docs.djangoproject.com/en/1.11/ref/contrib/gis/install/geolibs/\n\nDjango will produce the following error when trying to execute any commands:\n\n    django.contrib.gis.geos.error.GEOSException: Could not parse version info string \"3.6.2-CAPI-1.10.2 4d2925d6\"\n\nTo correct this, a single modification is needed in the django distribution, ``django/contrib/gis/geos/libgeos.py``:\n\n.. code-block:: python\n\n    version_regex = re.compile(\n        r'^(?P\u003cversion\u003e(?P\u003cmajor\u003e\\d+)\\.(?P\u003cminor\u003e\\d+)\\.(?P\u003csubminor\u003e\\d+))'\n        r'((rc(?P\u003crelease_candidate\u003e\\d+))|dev)?-CAPI-(?P\u003ccapi_version\u003e\\d+\\.\\d+\\.\\d+)( r\\d+)?( \\w+)?$'\n    )\n\nOther templates\n---------------\n\n- https://github.com/rdegges/django-skel\n- https://github.com/jezdez/django-configurations/tree/templates/1.5.x\n- https://github.com/jezdez/django-configurations/tree/templates/1.6.x\n- https://github.com/twoscoops/django-twoscoops-project\n- https://github.com/pydanny/cookiecutter-django\n\n.. _cookiecutter: https://github.com/audreyr/cookiecutter\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenpolis%2Fdjango-project-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenpolis%2Fdjango-project-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenpolis%2Fdjango-project-template/lists"}