Giter Club home page Giter Club logo

flaskex's Introduction

                            Python Dependencies GitHub Issues License Codacy Badge Run on Repl.it



Features

  • Encrypted user authorizaton
  • Database initialization
  • New user signup
  • User login/logout
  • User settings
  • Modern user interface
  • Bulma framework
  • Limited custom css/js
  • Easily customizable

Setup

git clone https://github.com/anfederico/Flaskex
cd Flaskex
pip install -r requirements.txt
python app.py

Contributing

Please take a look at our contributing guidelines if you're interested in helping!

flaskex's People

Contributors

amasad avatar anfederico avatar giancarlocp avatar piemadd avatar pl77 avatar rdch106 avatar styfle avatar sysrex 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  avatar  avatar  avatar  avatar

flaskex's Issues

Live demo?

Hello! Can you create live demo for Flaskex?

web not response

Hi
I'm from helloworldhost.com
I try to host your Flasked app on my python hosting, but after run, the form not work
you may look at python.appdev.my.id/flask

also about your requirements.txt is not complete i think.

WTForms errors

The code in forms.py needs updated as below due to changes in form validation from WTForms.

Replace:

-- coding: utf-8 --

from wtforms import Form, StringField, validators

class LoginForm(Form):
username = StringField('Username:', validators=[validators.required(), validators.Length(min=1, max=30)])
password = StringField('Password:', validators=[validators.required(), validators.Length(min=1, max=30)])
email = StringField('Email:', validators=[validators.optional(), validators.Length(min=0, max=50)])

With:

-- coding: utf-8 --

from wtforms import Form
from wtforms import (StringField)
from wtforms.validators import InputRequired, Length

class LoginForm(Form):
username = StringField('Username:', validators=[InputRequired(), Length(min=5, max=30)])
password = StringField('Password:', validators=[InputRequired(), Length(min=5, max=30)])
email = StringField('Email:', validators=[Length(min=0, max=30)])

Exception logging after a successful register

I was attempting to logging after a first register. Here the output

Traceback (most recent call last):
File "/Users/aperus/Documents/Projets/Flask/Flaskex/venv/lib/python2.7/site-packages/flask/app.py", line 1982, in wsgi_app
response = self.full_dispatch_request()
File "/Users/aperus/Documents/Projets/Flask/Flaskex/venv/lib/python2.7/site-packages/flask/app.py", line 1614, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/Users/aperus/Documents/Projets/Flask/Flaskex/venv/lib/python2.7/site-packages/flask/app.py", line 1517, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/Users/aperus/Documents/Projets/Flask/Flaskex/venv/lib/python2.7/site-packages/flask/app.py", line 1612, in full_dispatch_request
rv = self.dispatch_request()
File "/Users/aperus/Documents/Projets/Flask/Flaskex/venv/lib/python2.7/site-packages/flask/app.py", line 1598, in dispatch_request
return self.view_functionsrule.endpoint
File "app.py", line 21, in login
if helpers.credentials_valid(username, password):
File "/Users/aperus/Documents/Projets/Flask/Flaskex/helpers.py", line 52, in credentials_valid
return bcrypt.checkpw(password.encode('utf8'), user.password)
File "/Users/aperus/Documents/Projets/Flask/Flaskex/venv/lib/python2.7/site-packages/bcrypt/init.py", line 101, in checkpw
raise TypeError("Unicode-objects must be encoded before checking")
TypeError: Unicode-objects must be encoded before checking

[proposal] code arrangement changes

Hey guys!

I looked into the code a little bit recently and want to start adding some more features. But before I do that, I believe the repo need to get some code arrangement changes going on. The reasons are those:

  • I want to add some tests before adding features. But without Application Factories it is hard to write robust test cases.
  • I want to add some code that can be disabled and enabled easily by user, but without a setting modules it is also hard to do.
  • I believe, but not sure, that manage sqlalchemy session by ourselves is a dangerous, unnecessary, and inconvenience move:
    • dangerous and inconvenience: it is hard to write test cases to validate session has been stored correctly.
    • dangerous: any other features has to manage the sessions by themselves, and it is not easy to get it right.
    • unnecessary: flask-sqlalchemy is a very robust and battle-tested application wrapper for this. Should just use it.

So my proposed changes are:

  • flask-sqlalchemy
  • application factory
  • configuration class implementation

I am hesitate to issue pull request right away to correct those, because I think there might be a reason this repo not using those changes: let beginner easily understand the code. So I want to post this thread here to ask opinions about everyone, and contributors @anfederico @pl77.

Also forgot to mention, this repo need a universal code style, i can see 15bd6b9 is trying to convert to pep8, but currently the codebase is not. If pep8 is the intention may i recommend to use git pep8 hook to make sure all future commit is enforced.

Let me know what u think. As always keeps up the good work!

Happy Canada Day!

Error: secret key not set in flask session

Apparently the app.secret_key is not picked up when running a wsgi server, so it will have to be moved out of tha main - I added it under the app initialisation and it works.

About CSS and javascript limitation

Your project seems really good but I wanted to ask; why is there a limitation towards JS and CSS? Because I would like to implement leaflet.js, survey.js and Jquery UI.

So is there a way to remove that limitation? Because I can't find a documentation

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.