Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated code from main to master branch. #3

Open
wants to merge 23 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .github/workflows/django.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Django CI

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
build:

runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: [3.7, 3.8, 3.9]

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run Tests
run: |
python manage.py test
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# shoppifly

``` bash
python manage.py runserver
```

<div align=center>
<img src="https://github.com/radadiavasu/shoppifly/blob/master/media/productimg/homepage.jpg">
Binary file added media/productimg/homepage.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
asgiref
Django
Pillow
sqlparse
tzdata
4 changes: 2 additions & 2 deletions shoppifly/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True

ALLOWED_HOSTS = []
ALLOWED_HOSTS = ['.vercel.app']


# Application definition
Expand Down Expand Up @@ -162,4 +162,4 @@
messages.WARNING: 'danger',
messages.ERROR: 'danger',
50: 'critical',
}
}
13 changes: 13 additions & 0 deletions shoppifly/vercel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"builds": [{
"src": "shoppifly/wsgi.py",
"use": "@vercel/python",
"config": { "maxLambdaSize": "15mb", "runtime": "python3.10" }
}],
"routes": [
{
"src": "/(.*)",
"dest": "shoppifly/wsgi.py"
}
]
}
2 changes: 2 additions & 0 deletions shoppifly/wsgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'shoppifly.settings')

application = get_wsgi_application()

app = application