A list of puns related to "Web2py"
I really want to know what are its advantages/disadvantages against other frameworks in your opinion.
Anyone here using this framework? If yes, why? And why are you not using r/web2py
I'm asking because it was my first experience with python and the easiest framework on earth to use from my point of view.. and I wanted to know what do you think about it!
I'm interested in trying out a python web framework and the two big ones seem to be django and web2py (or others if you prefer something else?). I'm curious what others are using and why. I did a reddit search and didn't see a recent submission regarding this, but sorry if it's a commonly asked question.
Edit: Wow... pylons, Flask, Bottle, CherryPy, Django, web2py... I should have known that there would be a flurry of different projects out there each with their own niche. I guess if you have experience with any of them post your opinions for me :)
Based purely on looks, what would turn out better:
A website using Django
OR
A website using web2py
That's several big questions, but if you can answer any part, I'd really appreciate it.
I posted this in /r/learnpython without much response.
Thanks!
Edit: it seems like the preferred frameworks are as varied as we are. I suppose there isn't really a right answer. I guess the best course of action would be for me to build a Hello World app in each of them and figure out which I like working with the most. I'm curious how difficult conversions between frameworks would be.
i am very new to using databases, i have this code here that should check for an existing databse, if nothing exists it creates one. tho i cant manage to fill a row of the database into a list like this
to sum it up, how do i put a row of data into this list
https://preview.redd.it/id1jgwqro6131.png?width=846&format=png&auto=webp&s=595c48d8e46a2e436fb8d41c0e9409386c0aa620
https://preview.redd.it/5590tbhio6131.png?width=800&format=png&auto=webp&s=a466cee5664a8858a59958c9534d449a70384797
New features include: faster, static asset management, auth.wiki (with page attachments, page group based access control, oembed, preview), jQuery 1.8, Bootstrap 2.1, Dropbox login, Redis sessions, entropy password check, better admin interface (uses codemirror) and mobile admin (uses jQuery.mobile), Field(type='upload') can use any pyfilesystem (including ftp, amazon, etc.).
http://web2py.com/
I'll try to keep this as short as possible without skimping on details.
I'm in the process of learning Python. My interest is mainly in developing web apps and (if it's ever practical) Android apps in Python.
Every piece of advice I've gotten leads to finding a problem I care about that can be solved by writing my own app and chipping away at it as I learn using google to overcome various obstacles I run into.
So, to keep a long and complicated explanation as short as possible, I'm going to build a combination blog/BBS system for things like gaming clans that need a news system and message board with heavy integration over a single auth system. It's always been a pain for me in the past to try and integrate PHP based web apps like Wordpress and phpBB into a single auth system without it being hosed on every update. I know this sounds ambitious but it's something that can start as a super-simple message posting system and expand as I learn.
I'm not ready to set up my local test server to start playing around as my studies continue but I'm running into a bit of a road block with which framework to use.
Google results seem to suggest web2py is the way to go. However when I bring this up to most Python gurus they ask me why I'm not using Django. A friend of mine who recently set up something fairly similar to what I'm doing in web2py said he tried both and web2py was easier to program in.
I haven't looked into Django other than my google searching, but I've read much of the web2py manual and it seems very powerful and to have many features I need built right into the framework already.
Is there a reason to go with Django over web2py? What is the /r/Python opinion on web development with python?
I am about to embark on the quest to create a new web-based project. In this case, a proof-of-concept project. I have written a TurboGears and TurboGears2 project and I like and dislike the framework at the same time. I like it because everything is included and nicely integrated. But that's also the point where I dislike it. In my opinion it's got quite a steep learning curve.
My primary point of satisfaction is the way it handles web forms and validation.
Now, the project I am about to design, will be very JavaScript heavy. I am thinking of using one of the popular JS frameworks/libraries, but that is not the question here.
The main requirement of the project is that it shows a web-form with likely many fields. These fields need to be validate any time a value in any other field changes using a rule-based system. And these checks need to be as fast as possible and should never block the interface. This has currently been implemented in a thick client application. This is the "proof-of-concept" I am looking for: "See, it can also be done in the browser!"
Now, as said, JS is not in question here. But what is, is the server-side backend. I am looking for something that ...
As potential choices, I came up with:
I know there are others. But so far I've only done some reading on the three mentioned frameworks. My thoughts so far:
django -- Interesting tagline ("... with deadlines"). Can it hold up what it promises? What about DB abstraction. Would you go with SA or rather use the django model? SA seems more future proof as it is very flexible.
pylons -- Pretty much the same as TG2 with less bells&whistles. As I want to experience something "new", I'd consider this a second choice.
What are your thoughs on this, given the above facts?
Recently I stumbled upon the web2py framework and liked the simplicity and self contained nature.
I then did some searching and I saw someone refer to it as the "MS Access of web frameworks". This really resonated with me and I put some thought into what the pros and cons of this framework are and whether it lives up to the "enterprise" claim by its author(s).
I do think some pieces are a bit misguided. For instance, the lack of using imports on models and controllers make opening up a project in an IDE a bit cumbersome but you can get around this with an IF 0 statement.
Yet, this is the first framework where I really felt things immediately clicked and I was more focused on developing my app than on programming into the framework.
The documentation is somewhat inconvenient to access (a scribd book and a home brew wiki). The author recently commented that he is looking to fix this. That is probably the biggest hurdle.
What are your thoughts on this framework, its enterprise viability, and how it stacks up to Django and Pylons? Is the DAL enterprise grade, or should something like SQLAlchemy be ported?
Alright, so I've progressed through most of this on my own but I'm a little lacking with my knowledge in web2py. As of right now, I have a base64 test string that contains an image. I take this string, run it through imread to hand something to a variable containing cv2.cvtColor(img, cv2.COLOR_RGB2BGR). What I am attempting to do is serve this up to the view to display it and ensure I am getting something. Through a post I found on displaying images from the Controller, I have entered this as my return statement
return {"html_code": IMG(_src=cv2_img)}
and in the default view, I use this line of code
{{=html_code}}
The error that I am getting is that html_code is not defined.
I've been looking into python frameworks for a web app and I stumbled upon web2py. It seems really great so far but what are some drawbacks that you guys have ran into?
For example (complete program)
def hello(): return 'Hello %(name)s!' % request.vars
You type it directly in the web based IDE. No shell commands. You can use emacs or vi or your favorite editor if you prefer.
Here is a more complex example, a todo list with permissions:
db.define_table('todo',Field('task'),auth.signature)
@auth.requires_login()
def mytasks():
return dict(mygrid=SQLFORM.grid(db.todo))
Out of the box you get a skeleton.css flexible layout, a ticketing system, a web based management interface, a web based database management interface, a web based python shell, a web based internationalization interface, and various web services.
The code above works on GAE without modifications. In fact web2py has a web based deployment interface for GAE. Did I mention it has a web based interface to mercurial too?
Web2py includes adapters for more databases than any python ORM. Includes also includes role based accesson control with authentication adapters for oauth1,2, janrain, facebook, linkedin, lpad, pam, openid, google, dropbox and more.
Check out the newest web2py based Social CMS, movica.
I've done a good deal of both Googling and searching reddit, reading threads about the different frameworks.
I realize that in the end, the framework I choose won't really matter all that much.
I was leaning toward web2py, mostly because I liked what I read about their design principles and it sounds like it might have less of a barrier to entry, but recently I found that there's already a spaced repetition package using SuperMemo 2's algorithm for Django.
When it comes to Python, I'm starting from zero. I've done some CodeAcademy tutorials, but that's it.
I realize that getting proficient enough to pull off what I want to do is going to take time, and it is going to take doing a lot of other little side projects, but I'm still trying to do things with the goal in mind of building my spaced repetition (SRS) flashcard project. My ESL students don't have an accessible SRS platform to use in their native language, and I'd like to provide them with one.
I wanted to get an idea of why Flask is interesting to you compared to the other Python web frameworks.
My current plan is to learn Pyramid and Flask for two separate projects (a more complex and a less complex one). So far, the Flask tutorials I'm finding are easier to digest than the Pyramid ones.
# download web2py
wget http://web2py.com/examples/static/web2py_src.zip
unzip web2py_src.zip
cd web2py
# make the app using only core API
mkdir applications/audio
cp -r applications/welcome/* applications/audio
echo "
db.define_table('music',
Field('name',required=True),
Field('filename','upload',required=True),
auth.signature)
" > applications/audio/models/db_audio.py
echo "
response.menu = [('Home',0,URL('index'))]
# allows to browser, search, and upload new music (if logged in)
def index():
# tell web2py that links to music files are to be
# represented as HTML5 audio embedded players
from gluon.contrib.autolinks import expand_one
db.music.filename.represent = lambda v,r: \
XML(expand_one(URL('download',args=v),{}))
return dict(grid = SQLFORM.grid(db.music))
# perform login/logout/registration/etc.
def user():
return dict(form=auth())
# allow streaming of all files, including partial content of music files
@cache.action()
def download():
return response.download(request, db)
" > applications/audio/controllers/default.py
# start web2py and test it out
python web2py.py -a 'choose-admin-password' -i 127.0.0.1 -p 8000
echo "remember to login to upload music files"
open http://127.0.0.1:8000/audio
Screenshots: http://imgur.com/a/bp938
That's several big questions, but answering any if them would help. Thanks!
Please note that this site uses cookies to personalise content and adverts, to provide social media features, and to analyse web traffic. Click here for more information.