{"id":20182330,"url":"https://github.com/ywangd/levelhub_server","last_synced_at":"2026-06-05T02:31:10.573Z","repository":{"id":17980676,"uuid":"20984470","full_name":"ywangd/levelhub_server","owner":"ywangd","description":null,"archived":false,"fork":false,"pushed_at":"2014-07-16T06:14:04.000Z","size":364,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-10T06:40:04.545Z","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/ywangd.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":"2014-06-19T02:03:43.000Z","updated_at":"2014-07-06T11:43:22.000Z","dependencies_parsed_at":"2022-09-12T09:21:31.252Z","dependency_job_id":null,"html_url":"https://github.com/ywangd/levelhub_server","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ywangd/levelhub_server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ywangd%2Flevelhub_server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ywangd%2Flevelhub_server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ywangd%2Flevelhub_server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ywangd%2Flevelhub_server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ywangd","download_url":"https://codeload.github.com/ywangd/levelhub_server/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ywangd%2Flevelhub_server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33927314,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-05T02:00:06.157Z","response_time":120,"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-14T02:38:14.888Z","updated_at":"2026-06-05T02:31:10.556Z","avatar_url":"https://github.com/ywangd.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Django 1.6 on OpenShift\n=======================\n\nThis git repository helps you get up and running quickly w/ a Django 1.6\ninstallation on OpenShift.  The Django project name used in this repo\nis 'openshift' but you can feel free to change it.  Right now the\nbackend is sqlite3 and the database runtime is found in\n`$OPENSHIFT_DATA_DIR/db.sqlite3`.\n\nBefore you push this app for the first time, you will need to change\nthe [Django admin password](#admin-user-name-and-password).\nThen, when you first push this\napplication to the cloud instance, the sqlite database is copied from\n`wsgi/openshift/db.sqlite3` to $OPENSHIFT_DATA_DIR/ with your newly \nchanged login credentials. Other than the password change, this is the \nstock database that is created when `python manage.py syncdb` is run with\nonly the admin app installed.\n\nOn subsequent pushes, a `python manage.py syncdb` is executed to make\nsure that any models you added are created in the DB.  If you do\nanything that requires an alter table, you could add the alter\nstatements in `GIT_ROOT/.openshift/action_hooks/alter.sql` and then use\n`GIT_ROOT/.openshift/action_hooks/deploy` to execute that script (make\nsure to back up your database w/ `rhc app snapshot save` first :) )\n\nWith this you can install Django 1.6 on OpenShift.\n\nRunning on OpenShift\n--------------------\n\nCreate an account at http://openshift.redhat.com/\n\nInstall the RHC client tools if you have not already done so:\n    \n    sudo gem install rhc\n\nCreate a python-2.7 application\n\n    rhc app create -a djangoproj -t python-2.7\n\nAdd this upstream repo\n\n    cd djangoproj\n    git remote add upstream -m master git://github.com/rancavil/django-openshift-quickstart.git\n    git pull -s recursive -X theirs upstream master\n\n####Note:\nIf you want to use the Redis-Cloud with Django see [the wiki](https://github.com/rancavil/django-openshift-quickstart/wiki/Django-1.6-with-Redis-Cloud) \n\nThen push the repo upstream\n\n    git push\n\nHere, the [admin user name and password will be displayed](#admin-user-name-and-password), so pay\nspecial attention.\n\t\nThat's it. You can now checkout your application at:\n\n    http://djangoproj-$yournamespace.rhcloud.com\n\nAdmin user name and password\n----------------------------\nAs the `git push` output scrolls by, keep an eye out for a\nline of output that starts with `Django application credentials: `. This line\ncontains the generated admin password that you will need to begin\nadministering your Django app. This is the only time the password\nwill be displayed, so be sure to save it somewhere. You might want \nto pipe the output of the git push to a text file so you can grep for\nthe password later.\n\nWhen you make:\n\n     git push\n\nIn the console output, you must find something like this:\n\n     remote: Django application credentials:\n     remote: \tuser: admin\n     remote: \tSY1ScjQGb2qb\n\nOr you can go to SSH console, and check the CREDENTIALS file located \nin $OPENSHIFT_DATA_DIR.\n\n     cd $OPENSHIFT_DATA_DIR\n     vi CREDENTIALS\n\nYou should see the output:\n\n     Django application credentials:\n     \t\t user: admin\n     \t\t SY1ScjQGb2qb\n\nAfter, you can change the password in the Django admin console.\n\nDjango project directory structure\n----------------------------------\n\n     djangoproj/\n        .gitignore\n     \t.openshift/\n     \t\tREADME.md\n     \t\taction_hooks/  (Scripts for deploy the application)\n     \t\t\tbuild\n     \t\t\tpost_deploy\n     \t\t\tpre_build\n     \t\t\tdeploy\n     \t\t\tsecure_db.py\n     \t\tcron/\n     \t\tmarkers/\n     \tsetup.py   (Setup file with de dependencies and required libs)\n     \tREADME.md\n     \tlibs/   (Adicional libraries)\n     \tdata/\t(For not-externally exposed wsgi code)\n     \twsgi/\t(Externally exposed wsgi goes)\n     \t\tapplication (Script to execute the application on wsgi)\n     \t\topenshift/\t(Django project directory)\n     \t\t\t__init__.py\n     \t\t\tmanage.py\n     \t\t\topenshiftlibs.py\n     \t\t\tsettings.py\n     \t\t\turls.py\n     \t\t\tviews.py\n     \t\t\twsgi.py\n     \t\t\ttemplates/\n     \t\t\t\thome/\n     \t\t\t\t\thome.html (Default home page, change it)\n     \t\tstatic/\t(Public static content gets served here)\n     \t\t\tREADME\n\nFrom HERE you can start with your own application.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fywangd%2Flevelhub_server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fywangd%2Flevelhub_server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fywangd%2Flevelhub_server/lists"}