{"id":13635809,"url":"https://github.com/Shopify/shopify_django_app","last_synced_at":"2025-04-19T04:31:33.213Z","repository":{"id":45790534,"uuid":"2297150","full_name":"Shopify/shopify_django_app","owner":"Shopify","description":"Get a Shopify app up and running with Django and Python Shopify API","archived":false,"fork":false,"pushed_at":"2024-05-04T01:32:21.000Z","size":94,"stargazers_count":469,"open_issues_count":14,"forks_count":157,"subscribers_count":504,"default_branch":"master","last_synced_at":"2024-11-03T14:35:53.323Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Shopify.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2011-08-30T19:35:19.000Z","updated_at":"2024-10-25T15:32:24.000Z","dependencies_parsed_at":"2024-04-16T23:41:49.493Z","dependency_job_id":"462d886a-641c-40c6-9bba-65c3a9b32db9","html_url":"https://github.com/Shopify/shopify_django_app","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shopify%2Fshopify_django_app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shopify%2Fshopify_django_app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shopify%2Fshopify_django_app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shopify%2Fshopify_django_app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Shopify","download_url":"https://codeload.github.com/Shopify/shopify_django_app/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223790430,"owners_count":17203355,"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-08-02T00:00:52.297Z","updated_at":"2024-11-09T05:31:02.481Z","avatar_url":"https://github.com/Shopify.png","language":"Python","funding_links":[],"categories":["\u003ca name=\"Python\"\u003e\u003c/a\u003ePython","Python"],"sub_categories":[],"readme":"Shopify Django App Example\n==========================\n\nThis project makes it easy to get a Shopify app up and running with\n[Django](https://www.djangoproject.com/) and the\n[Python Shopify API](https://github.com/shopify/shopify_python_api).\n\nThis project  simply displays basic information about the shop's products\nand orders.\n\nThis project has the following structure\n- `shopify_app` an app which handles authentication (meant to be reusable)\n- `home` an app which contains the example code to demonstrate how to use the API (meant to be modified or replaced to create your Shopify App).\n- `shopify_django_app` project files for serving this app.\n\nGet It Running\n--------------\n\n### Create Your App Configuration\n- Log in to your [partners dashboard](https://partners.shopify.com/)\n- Navigate to [your apps](https://partners.shopify.com/current/apps)\n- Click `Create App`\n- Choose a custom app or public app\n- Fill in the app name\n- Set the Application Url http://localhost:8000/\n- Set Whitelisted redirection URL( http://localhost:8000/shopify/finalize/\n\nYou will then have access to your API key and API secret KEY, you will need these\nfor the next steps.\n\n### Setup Environment\n\n1. Copy over the `.env.local` file into a `.env` file and fill out the `SHOPIFY_API_KEY` and `SHOPIFY_API_SECRET` fields\n```\ncp .env.local .env\n```\n\n2. Generate a secret key and add it to `.env` by running the following in the command line: \n\n```\npython -c 'import random; print(\"\".join([random.choice(\"abcdefghijklmnopqrstuvwxyz0123456789!@#$%^\u0026*(-_=+)\") for i in range(50)]))' \u003e\u003e .env\n```\n\n**For PC Users:** Run this command in [GIT Bash](https://git-scm.com/) or [Windows Subsystem For Linux](https://docs.microsoft.com/en-us/windows/wsl/install-win10). Alternatively, you can generate a secret key using the Python interpreter. This requires you to manually add the Django secret key to your `.env` file by doing the following:\n\nOpen the python interpreter:\n```\npython\n```\nInside the python interpreter, generate the secret key, copy it, and exit:\n```python\n\u003e\u003e\u003e import random\n\u003e\u003e\u003e print(\"\".join([random.choice(\"abcdefghijklmnopqrstuvwxyz0123456789!@#$%^\u0026*(-_=+)\") for i in range(50)]))\n\u003e\u003e\u003e exit()\n```\n\n\n3. [Optional] you can add the api version and api scopes environment variables to the `.env` file:\n\n  * `SHOPIFY_API_VERSION` default is `unstable`\n\n  * `SHOPIFY_API_SCOPE` a comma-separated list of scopes, default is `read_products,read_orders`\n\n\n### Run the App\n\nWe use [pipenv](https://github.com/pypa/pipenv) to get running faster. With the\n`.env` already created in the root directory, run the app:\n\n```\npipenv install\npipenv run python manage.py migrate\npipenv run python manage.py runserver\n```\n\nOpen \u003chttp://localhost:8000\u003e in your browser to view the example.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FShopify%2Fshopify_django_app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FShopify%2Fshopify_django_app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FShopify%2Fshopify_django_app/lists"}