Giter VIP home page Giter VIP logo

flask-shop's Introduction

💫About Me

👯 I’m looking for remote project
🌱 I’m a product manager, any other skills is a hobby

💻Interested

Python Django Flask Vue.js Nginx Redis Adobe Photoshop

📊GitHub Stats

💰You can help me by Donating

PayPal

flask-shop's People

Contributors

dedalgr avatar dependabot[bot] avatar hjlarry avatar jfpie16 avatar yajatagrawal7 avatar youngsiiimba avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

flask-shop's Issues

problem in realationship beatween tabels and dashboard page

this work is huge. but there is not any relationship between tables , why?
and why dashboard page has not useful?
if i want change this to market place do you have any suggestion?

do you thinks this can work like woocammerce or saleor? in performance and ability?

Weekly Digest (7 April, 2020 - 14 April, 2020)

Here's the Weekly Digest for hjlarry/flask-shop:


ISSUES

Last week, no issues were created.


PULL REQUESTS

Last week, no pull requests were created, updated or merged.


COMMITS

Last week there were no commits.


CONTRIBUTORS

Last week there were no contributors.


STARGAZERS

Last week there were no stargazers.


RELEASES

Last week there were no releases.


That's all for last week, please 👀 Watch and Star the repository hjlarry/flask-shop to receive next weekly updates. 😃

You can also view all Weekly Digests by clicking here.

Your Weekly Digest bot. 📆

如何将查询的结果返回json

我用 Product.query.all() 获取到所有 product ,返回是个list 但是打印却只显示 title ,我看到 models.py str 方法里只写了 return self.title。如果向返回json,,要怎么改呢?

Not DELETE the product (item_del)

Hi, I can not understand why the product is not deleted (from product_product), I checked on databases MySql, Postgresql.... everything is removed except for the product. And the second question, if you add a product from the dashboard, then it is not added to the cart, if do by the seed command ....works.
Thanks for your help!

Error in step Second, Init db and run

Hi, i am try learn flask and i found this project but i have some error
after i modify .flaskenv and flaskshop/setting.py. i run flask createdb it throw error Error: No such command 'createdb'.
i was try flask run but it also throw flask.cli.NoAppException: Could not import "autoapp".
tks

Weekly Digest (19 July, 2020 - 26 July, 2020)

Here's the Weekly Digest for hjlarry/flask-shop:


ISSUES

Last week, no issues were created.


PULL REQUESTS

Last week, no pull requests were created, updated or merged.


COMMITS

Last week there were no commits.


CONTRIBUTORS

Last week there were no contributors.


STARGAZERS

Last week there were no stargazers.


RELEASES

Last week there were no releases.


That's all for last week, please 👀 Watch and Star the repository hjlarry/flask-shop to receive next weekly updates. 😃

You can also view all Weekly Digests by clicking here.

Your Weekly Digest bot. 📆

Weekly Digest (19 April, 2020 - 26 April, 2020)

Here's the Weekly Digest for hjlarry/flask-shop:


ISSUES

Last week, no issues were created.


PULL REQUESTS

Last week, no pull requests were created, updated or merged.


COMMITS

Last week there were no commits.


CONTRIBUTORS

Last week there were no contributors.


STARGAZERS

Last week there were no stargazers.


RELEASES

Last week there were no releases.


That's all for last week, please 👀 Watch and Star the repository hjlarry/flask-shop to receive next weekly updates. 😃

You can also view all Weekly Digests by clicking here.

Your Weekly Digest bot. 📆

Weekly Digest (2 August, 2020 - 9 August, 2020)

Here's the Weekly Digest for hjlarry/flask-shop:


ISSUES

Last week, no issues were created.


PULL REQUESTS

Last week, no pull requests were created, updated or merged.


COMMITS

Last week there were no commits.


CONTRIBUTORS

Last week there were no contributors.


STARGAZERS

Last week there was 1 stargazer.
aahmad4
You are the star! 🌟


RELEASES

Last week there were no releases.


That's all for last week, please 👀 Watch and Star the repository hjlarry/flask-shop to receive next weekly updates. 😃

You can also view all Weekly Digests by clicking here.

Your Weekly Digest bot. 📆

Weekly Digest (5 July, 2020 - 12 July, 2020)

Here's the Weekly Digest for hjlarry/flask-shop:


ISSUES

Last week, no issues were created.


PULL REQUESTS

Last week, no pull requests were created, updated or merged.


COMMITS

Last week there were no commits.


CONTRIBUTORS

Last week there were no contributors.


STARGAZERS

Last week there was 1 stargazer.
cippall
You are the star! 🌟


RELEASES

Last week there were no releases.


That's all for last week, please 👀 Watch and Star the repository hjlarry/flask-shop to receive next weekly updates. 😃

You can also view all Weekly Digests by clicking here.

Your Weekly Digest bot. 📆

Weekly Digest (26 July, 2020 - 2 August, 2020)

Here's the Weekly Digest for hjlarry/flask-shop:


ISSUES

Last week 2 issues were created.
Of these, 0 issues have been closed and 2 issues are still open.

OPEN ISSUES

💚 #39 Bump elliptic from 6.5.2 to 6.5.3, by dependabot[bot]
💚 #38 Bump elliptic from 6.4.0 to 6.5.3 in /mpvue, by dependabot[bot]


PULL REQUESTS

Last week, 2 pull requests were created, updated or merged.

UPDATED PULL REQUEST

Last week, 2 pull requests were updated.
💛 #39 Bump elliptic from 6.5.2 to 6.5.3, by dependabot[bot]
💛 #38 Bump elliptic from 6.4.0 to 6.5.3 in /mpvue, by dependabot[bot]


COMMITS

Last week there were no commits.


CONTRIBUTORS

Last week there were no contributors.


STARGAZERS

Last week there were no stargazers.


RELEASES

Last week there were no releases.


That's all for last week, please 👀 Watch and Star the repository hjlarry/flask-shop to receive next weekly updates. 😃

You can also view all Weekly Digests by clicking here.

Your Weekly Digest bot. 📆

Demo doesn't run with docker-compose

I tried

docker-compose build
docker-compose up

and got a connection error when typing http://127.0.0.1:5000 in my browser. After changing the start line in Dockerfile to

CMD ["flask", "run", "--host=0.0.0.0"]

my browser can connect, but I get "Internal Error 500" in my browser. Could you please provide instructions how to use the Docker container?

Weekly Digest (26 April, 2020 - 3 May, 2020)

Here's the Weekly Digest for hjlarry/flask-shop:


ISSUES

Last week 1 issue was created.
It is still open.

OPEN ISSUES

💚 #23 Bump jquery from 3.4.0 to 3.5.0, by dependabot[bot]


PULL REQUESTS

Last week, 1 pull request was created, updated or merged.

UPDATED PULL REQUEST

Last week, 1 pull request was updated.
💛 #23 Bump jquery from 3.4.0 to 3.5.0, by dependabot[bot]


COMMITS

Last week there were no commits.


CONTRIBUTORS

Last week there were no contributors.


STARGAZERS

Last week there was 1 stargazer.
cyber-claws
You are the star! 🌟


RELEASES

Last week there were no releases.


That's all for last week, please 👀 Watch and Star the repository hjlarry/flask-shop to receive next weekly updates. 😃

You can also view all Weekly Digests by clicking here.

Your Weekly Digest bot. 📆

Inserting new product IndexError

Hi,
I am getting this error when creating new product

File "/home/michal/Codes/flask-shop/flaskshop/product/models.py", line 144, in generate_variants variant_attributes = self.product_type.variant_attributes[0] IndexError: list index out of range

Weekly Digest (3 May, 2020 - 10 May, 2020)

Here's the Weekly Digest for hjlarry/flask-shop:


ISSUES

Last week, no issues were created.


PULL REQUESTS

Last week, 1 pull request was created, updated or merged.

MERGED PULL REQUEST

Last week, 1 pull request was merged.
💜 #23 Bump jquery from 3.4.0 to 3.5.0, by dependabot[bot]


COMMITS

Last week there was 1 commit.
🛠️ [Bump jquery from 3.4.0 to 3.5.0 (#23) Bumps jquery from 3.4.0 to 3.5.0.

Signed-off-by: dependabot[bot] [email protected]

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>](c50fa72) by dependabot[bot]


CONTRIBUTORS

Last week there was 1 contributor.
👤 dependabot[bot]


STARGAZERS

Last week there was 1 stargazer.
batiron
You are the star! 🌟


RELEASES

Last week there were no releases.


That's all for last week, please 👀 Watch and Star the repository hjlarry/flask-shop to receive next weekly updates. 😃

You can also view all Weekly Digests by clicking here.

Your Weekly Digest bot. 📆

Weekly Digest (5 April, 2020 - 12 April, 2020)

Here's the Weekly Digest for hjlarry/flask-shop:


ISSUES

Last week 1 issue was created.
It is still open.

OPEN ISSUES

💚 #18 Bump acorn from 5.7.1 to 5.7.4, by dependabot[bot]


PULL REQUESTS

Last week, 1 pull request was created, updated or merged.

UPDATED PULL REQUEST

Last week, 1 pull request was updated.
💛 #18 Bump acorn from 5.7.1 to 5.7.4, by dependabot[bot]


COMMITS

Last week there were no commits.


CONTRIBUTORS

Last week there were no contributors.


STARGAZERS

Last week there were no stargazers.


RELEASES

Last week there were no releases.


That's all for last week, please 👀 Watch and Star the repository hjlarry/flask-shop to receive next weekly updates. 😃

You can also view all Weekly Digests by clicking here.

Your Weekly Digest bot. 📆

Weekly Digest (28 June, 2020 - 5 July, 2020)

Here's the Weekly Digest for hjlarry/flask-shop:


ISSUES

Last week, no issues were created.


PULL REQUESTS

Last week, no pull requests were created, updated or merged.


COMMITS

Last week there were no commits.


CONTRIBUTORS

Last week there were no contributors.


STARGAZERS

Last week there were no stargazers.


RELEASES

Last week there were no releases.


That's all for last week, please 👀 Watch and Star the repository hjlarry/flask-shop to receive next weekly updates. 😃

You can also view all Weekly Digests by clicking here.

Your Weekly Digest bot. 📆

Weekly Digest (12 July, 2020 - 19 July, 2020)

Here's the Weekly Digest for hjlarry/flask-shop:


ISSUES

Last week 2 issues were created.
Of these, 0 issues have been closed and 2 issues are still open.

OPEN ISSUES

💚 #35 Bump lodash from 4.17.15 to 4.17.19, by dependabot[bot]
💚 #34 Bump lodash from 4.17.11 to 4.17.19 in /mpvue, by dependabot[bot]


PULL REQUESTS

Last week, 2 pull requests were created, updated or merged.

OPEN PULL REQUEST

Last week, 1 pull request was opened.
💚 #35 Bump lodash from 4.17.15 to 4.17.19, by dependabot[bot]

UPDATED PULL REQUEST

Last week, 1 pull request was updated.
💛 #34 Bump lodash from 4.17.11 to 4.17.19 in /mpvue, by dependabot[bot]


COMMITS

Last week there were no commits.


CONTRIBUTORS

Last week there were no contributors.


STARGAZERS

Last week there were no stargazers.


RELEASES

Last week there were no releases.


That's all for last week, please 👀 Watch and Star the repository hjlarry/flask-shop to receive next weekly updates. 😃

You can also view all Weekly Digests by clicking here.

Your Weekly Digest bot. 📆

Search app with Elasticsearch not working. Code 500.

Hello dear developers.
After creating test products (flask seed), when trying to search using Elasticsearch, the application returns an error.
I did not change the code, I only changed the project settings in the settings.py file (for example USE_ES = True).

Error search app:

[2023-08-11 06:50:51,860] ERROR in app: Exception on /search [GET]
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/flask/app.py", line 2073, in wsgi_app
    response = self.full_dispatch_request()
  File "/usr/local/lib/python3.10/site-packages/flask/app.py", line 1519, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/usr/local/lib/python3.10/site-packages/flask/app.py", line 1517, in full_dispatch_request
    rv = self.dispatch_request()
  File "/usr/local/lib/python3.10/site-packages/flask/app.py", line 1503, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
  File "/app/flaskshop/public/views.py", line 44, in search
    return render_template(
  File "/usr/local/lib/python3.10/site-packages/flask/templating.py", line 154, in render_template
    return _render(
  File "/usr/local/lib/python3.10/site-packages/flask/templating.py", line 128, in _render
    rv = template.render(context)
  File "/usr/local/lib/python3.10/site-packages/jinja2/environment.py", line 1301, in render
    self.environment.handle_exception()
  File "/usr/local/lib/python3.10/site-packages/jinja2/environment.py", line 936, in handle_exception
    raise rewrite_traceback_stack(source=source)
  File "/app/flaskshop/templates/public/search_result.html", line 2, in top-level template code
    {% from 'bootstrap5/pagination.html' import render_pagination %}
  File "/app/flaskshop/templates/base.html", line 153, in top-level template code
    {% block content %}
  File "/app/flaskshop/templates/public/search_result.html", line 15, in block 'content'
    {{ render_pagination(pagination) }}
  File "/usr/local/lib/python3.10/site-packages/jinja2/runtime.py", line 777, in _invoke
    rv = self._func(*arguments)
  File "/usr/local/lib/python3.10/site-packages/flask_bootstrap/templates/base/pagination.html", line 53, in template
    {%- for page in pagination.iter_pages() %}
  File "/usr/local/lib/python3.10/site-packages/flask_sqlalchemy/__init__.py", line 439, in iter_pages
    for num in xrange(1, self.pages + 1):
  File "/usr/local/lib/python3.10/site-packages/flask_sqlalchemy/__init__.py", line 374, in pages
    pages = int(ceil(self.total / float(self.per_page)))
TypeError: unsupported operand type(s) for /: 'AttrDict' and 'float'

screenshot-2023 08 11-10:00:54
screenshot-2023 08 11-10:02:44

开发计划

  • 1. 站点通用配置改为key-value形式
  • 2. 后台首页
  • 3. 插件
  • 4. 订单相关、可跳过支付用于测试
  • 5. 退款退货等流程
  • 6. 使用vue替代react
  • 7. 站内信和会话
  • 8. 部分业务使用celery异步化
  • 9. 部署demo站点

Weekly Digest (12 April, 2020 - 19 April, 2020)

Here's the Weekly Digest for hjlarry/flask-shop:


ISSUES

Last week, no issues were created.


PULL REQUESTS

Last week, 1 pull request was created, updated or merged.

MERGED PULL REQUEST

Last week, 1 pull request was merged.
💜 #18 Bump acorn from 5.7.1 to 5.7.4, by dependabot[bot]


COMMITS

Last week there was 1 commit.
🛠️ [Bump acorn from 5.7.1 to 5.7.4 (#18) Bumps acorn from 5.7.1 to 5.7.4.

Signed-off-by: dependabot[bot] [email protected]

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>](96a75ae) by dependabot[bot]


CONTRIBUTORS

Last week there was 1 contributor.
👤 dependabot[bot]


STARGAZERS

Last week there was 1 stargazer.
rafnixg
You are the star! 🌟


RELEASES

Last week there were no releases.


That's all for last week, please 👀 Watch and Star the repository hjlarry/flask-shop to receive next weekly updates. 😃

You can also view all Weekly Digests by clicking here.

Your Weekly Digest bot. 📆

Bug: Creating products with has_variant=False still requires a variant.

When creating a product type with the "Has variant" parameter set to False through the admin dashboard at "http://127.0.0.1:5000/dashboard/product_types," it is expected behavior that creating a product of this type would not require a variant. However, in the current implementation, even with "variant" set to False, the system mandates the creation of a variant for the product.

As a consequence, attempting to add such a product to the cart results in an issue. The form validation in "flask-shop/flaskshop/product/views.py" at line 28 expects a variant, causing the inability to submit and validate the form.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.