{"id":18554663,"url":"https://github.com/realmteam/django-base-setup","last_synced_at":"2026-04-29T15:38:16.141Z","repository":{"id":23928060,"uuid":"27308860","full_name":"RealmTeam/django-base-setup","owner":"RealmTeam","description":"Basic setup for a new django project","archived":false,"fork":false,"pushed_at":"2018-04-09T12:53:16.000Z","size":38,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-02-17T11:14:37.700Z","etag":null,"topics":["boilerplate","django"],"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/RealmTeam.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-11-29T17:02:28.000Z","updated_at":"2020-04-12T21:22:20.000Z","dependencies_parsed_at":"2022-08-22T07:51:02.463Z","dependency_job_id":null,"html_url":"https://github.com/RealmTeam/django-base-setup","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/RealmTeam%2Fdjango-base-setup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RealmTeam%2Fdjango-base-setup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RealmTeam%2Fdjango-base-setup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RealmTeam%2Fdjango-base-setup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RealmTeam","download_url":"https://codeload.github.com/RealmTeam/django-base-setup/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254337606,"owners_count":22054254,"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":["boilerplate","django"],"created_at":"2024-11-06T21:23:18.074Z","updated_at":"2026-04-29T15:38:16.105Z","avatar_url":"https://github.com/RealmTeam.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"==========================\nDjango + React boilerplate\n==========================\n\n\nThis is the basic setup for a new django project.\n\n-------------------------------------------------------------------------------------------------------\n\n****************\nWhere to start ?\n****************\n\n\n\nInstalling the development environment :\n========================================\n\nServer :\n--------\n\nBefore anything else :\n::\n\n    sudo apt-get install libmysqlclient-dev python-dev python-mysqldb\n\nInstall the cache handler :\n::\n\n    sudo apt-get install memcached\n\nSetup the virtualenv :\n::\n\n    virtualenv .venv\n    source .venv/bin/activate\n    pip install -r requirements.txt\n\nIf you don't have virtualenv or pip :\n::\n\n    sudo apt-get install python-setuptools\n    sudo easy_install pip\n    sudo pip install virtualenv\n\nIf you want to use celery :\n::\n\n    sudo apt-get install redis-server\n\nFront :\n-------\n\nBefore anything else :\n::\n\n    sudo apt-get install nodejs npm\n    sudo npm install -g yarn\n\nInstalling front dependencies :\n::\n\n    cd front \u0026\u0026 yarn install \u0026\u0026 cd ..\n\n\nRunning the server :\n====================\n::\n\n    source .venv/bin/activate\n    python manage.py runserver\n\nRunning celery :\n================\n::\n\n    source .venv/bin/activate\n    celery --app=main.celery:app worker --loglevel=INFO -B\n\nRunning the front :\n===================\n::\n\n    source .venv/bin/activate\n    python manage.py runfront\n\n-------------------------------------------------------------------------------------------------------\n\n*************************************\nSetting up the production environment\n*************************************\n\nBefore anything else :\n======================\n\nIn the following commands, replace `{{name}}` by the name you want for your site.\n\nYou can also run `python manage.py configuredeployment` which will configure  \nall the files for you and change these commands accordingly.\n\nGenerating certificate for https :\n==================================\n\n::\n\n    openssl req -new -newkey rsa:2048 -nodes -keyout nginx/ssl/{{name}}.key -out nginx/ssl/{{name}}.csr\n    openssl x509 -req -days 365 -in nginx/ssl/{{name}}.csr -signkey nginx/ssl/{{name}}.key -out nginx/ssl/{{name}}.crt\n\nInstalling docker :\n===================\n\n::\n\n    sudo sh -c \"wget -qO- https://get.docker.io/gpg | apt-key add -\"\n    sudo sh -c \"echo deb http://get.docker.io/ubuntu docker main \u003e /etc/apt/sources.list.d/docker.list\"\n    sudo aptitude update\n    sudo aptitude install lxc-docker\n    sudo gpasswd -a ${USER} docker\n    sudo service docker restart\n    newgrp docker\n\nCreating and running our stack :\n================================\n\n::\n\n    docker-compose up -d\n    # Alternatively, you can use the DEBUG environment variable to launch in prod or in dev\n    DEBUG=True docker-compose up -d\n\nChecking if the stack is running :\n==================================\n\n::\n\n    docker-compose ps\n\nGet shell access to a container :\n=================================\n\n::\n\n    docker-compose exec api bash\n\nDisplay the logs from the stack :\n=================================\n\n::\n\n    docker-compose logs -f\n\nStopping and Destroying the stack :\n===================================\n\n::\n\n    docker-compose down\n\nStopping the stack :\n====================\n\n::\n\n    docker-compose stop\n\nStarting the stack :\n====================\n\n::\n\n    docker-compose start\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frealmteam%2Fdjango-base-setup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frealmteam%2Fdjango-base-setup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frealmteam%2Fdjango-base-setup/lists"}