Giter Club home page Giter Club logo

flaskdash's People

Contributors

dependabot[bot] avatar doronator avatar duaneking avatar twintechlabs 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

flaskdash's Issues

Requirements update

Hi,

I found some problems with SQLAlchemy:

[AttributeError: module 'sqlalchemy' has no attribute '__all__']

I solved this problem by updating versions in requirements.txt as below:

# This file is used by pip to install required python packages
# Usage: pip install -r requirements.txt

# Flask Framework
Flask==2.2

# Flask Packages
Flask-Login==0.6.3
Flask-Migrate==2.0.2
Flask-Script==2.0.5
Flask-SQLAlchemy==3.0.2
Flask-BabelEx
Flask-User==1.0.2.2
Flask-WTF==1.0.0
email_validator
Werkzeug==2.2.0
flask-session

# Automated tests
pytest==3.0.5
pytest-cov==2.4.0

# Development tools
# Fabric3==1.13.1.post1
# tox==2.7.0

# Run
gunicorn

It did not seems to create any problems (for now).

Great work. :)

local_settings.py secret key instruction broken in Python3

In the local_settings.py, there is the recommendation to run:
python -c "import os; print str(os.urandom(24));"
to generate a secret key.

On my system (Ubuntu 18.04), this command throws an error in Python 3:

python3 -c "import os; print repr(os.urandom(24));"
  File "<string>", line 1
    import os; print repr(os.urandom(24));
                        ^

Googling throws up various working alternatives. The one suggested in diamond-org/flask-diamond#24 looks pretty neat to me and works in both Python 2.7.15 and 3.6.7 on my system.

Based on the link above, the following line is much longer than the current suggestion in local_settings.py, but it works in Python 2 and 3:

python -c "from __future__ import print_function; import string; import random; print(''.join([random.choice(string.ascii_letters + string.digits + string.punctuation) for x in range(24)]));"

Form "Reset" button doesn't work as expected

The "Edit" forms in this project (eg the User Profile form) have at the bottom two buttons, one labelled "submit" and the other "reset".

I expected the "reset" buttons to discard any edits and either refresh the "Edit" form with the original data, or return to the previous screen. Instead it seems to function exactly the same way as the "submit" button, ie it saves all edits.

How to get form validation working?

Is it just me or is the form validation not working?

I can make form validation work on other pages and use a custom made form like {{ form.name(class='awesome_style') }} but every form that has to do with flask-user is not working; /user/sign-in, /user/forgot-password and /user/register in mind.

Is this common? Something I don't know about? .. but most important how do I make the form validation work on these flask-user pages?

ImportError: cannot import name 'url_encode' from 'werkzeug'

When I try to init_db,
python manage.py init_db
I'm getting following error:
ImportError: cannot import name 'url_encode' from 'werkzeug' (/home/rhasoff/Documents/Flask/flaskdash/venv/lib/python3.7/site-packages/werkzeug/__init__.py)

I'm using python 3.7.5 and venv as virtual environment.

tests fail without 'Next' for login

i downloaded and installed the other day. The web site came up OK, but the tests failed. I added a next='/' to the test login data, and that worked.

response = client.post(url_for('user.login'), follow_redirects=True,
data=dict(email='[email protected]', password='Password1', next='/'))

BTW, Flask-User has been yanked, so you need a specific version in requirements if you'll continue to use it

Form Action

Pardon my ignorance here, but the form action on every page is ""

How/what is handling the form action and the passing of data to Flask?

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.