{"id":20747673,"url":"https://github.com/gnunicorn/django_setup","last_synced_at":"2026-04-25T02:35:05.117Z","repository":{"id":66850540,"uuid":"4908913","full_name":"gnunicorn/django_setup","owner":"gnunicorn","description":"my default django setup bundled","archived":false,"fork":false,"pushed_at":"2012-07-05T16:02:25.000Z","size":120,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-12-25T14:55:43.998Z","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/gnunicorn.png","metadata":{"files":{"readme":"README.rst","changelog":"HISTORY.rst","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-07-05T15:05:08.000Z","updated_at":"2014-01-18T09:33:35.000Z","dependencies_parsed_at":"2023-02-20T13:00:39.598Z","dependency_job_id":null,"html_url":"https://github.com/gnunicorn/django_setup","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gnunicorn/django_setup","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gnunicorn%2Fdjango_setup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gnunicorn%2Fdjango_setup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gnunicorn%2Fdjango_setup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gnunicorn%2Fdjango_setup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gnunicorn","download_url":"https://codeload.github.com/gnunicorn/django_setup/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gnunicorn%2Fdjango_setup/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32247933,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T13:21:15.438Z","status":"online","status_checked_at":"2026-04-25T02:00:06.260Z","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":"2024-11-17T08:14:05.451Z","updated_at":"2026-04-25T02:35:05.093Z","avatar_url":"https://github.com/gnunicorn.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Django Setup\n============================================\n\nis my default setup I use for many projects. As such I always run\nthrough the same steps to setup the basics, from django, over S3 for\nstatics, HTML5 + Twitter-Bootstrap for the frontend up to many django\ncontribs I use like South, Userena and the gunicorn environment around\nit.\n\nSo I started this repository with the basic setup to reuse and share. It\ncontains all the things making life much easier and setup (for AWS) what\nit is supposed to be: a one second thing.\n\nPre-Setup\n---------\nThis repository relies on a few submodules to include and derive from.\nSo don't forget to run:\n\n    $ git submodule init\n\n    $ git submodule update\n\n\nSetting up\n----------\nThe setup runs in a virtualenv environment. So you should first run\n\n    $ virtualenv .\n\n    $ source bin/activate\n    \n    $ pip -r requirements.txt\n\nTime for a first test run!\n\n    $ python app/manage.py runserver\n\nAnd you should be able to access a simple Webpage at\n\n  http://localhost:8000/\n\n\nSettings\n--------\n\nNow, you might want to change the config in app/settings.py . Please\ntake care that the app/settings_debug.py might overwrites some data in\norder to make the manage.py script better locally.\n\nRunning for real\n----------------\n\nBefore you can start developing, don't forget to sync the database.\n\n    $ python app/manage.py syncdb\n\nand migrate some script\n\n    $ python app/manage.py migrate\n\nNow you can actually see the database when you try to go to /admin\n\n\nUnderstading Less and JS\n------------------------\n\nIn order to develop with this repository correctly, you might want to\nunderstand the underlying ideas and structures. For as many things as\npossible this repository just pulls in external data and inkludes them\nvia symlink. You can see that at app/less and at app/static/js/lib/ .\n\nLet's take a short look at the app/less. You'll find two files not\nsymlinked:\n - styles.less\n - variables.less\n\nThe first is there to allow you to modify the loading of the bootstrap\nand add your own styles - it is the only style file referenced from the\nHTML.\n\nThe variables.less allows you to overwrite any variables set for\nbootstrap, while containing an upstream compatible inklude model. The\nfirst thing that file does is inkluding the original variables file. In\norder to show this, the variables.less is currently setting a different\nbackground color.\n\nUnderstanding the Django-Setup\n------------------------------\n\nThe Django setup inkludes alread many contribs, like S3 and South, as\nyou've probably noticed when adapting the settings-file. This setup also\nships with a few helpers inside the base-project. One of them being a\nvery basic Userena UserProfile-Model (setup by default) and some handy\ncontext processor and helpers in the utils module. Read them, they are\ngood helpers!\n\nThe templates can be found in app/templates. Don't forget to include the\nsite.html. The base.html is inkluded by many contribs (like Userena) and\nallows you to set a slightly different style for those (for e.g. put a\nbox around the content).\n\n\nHave fun!\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgnunicorn%2Fdjango_setup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgnunicorn%2Fdjango_setup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgnunicorn%2Fdjango_setup/lists"}