Demo Example

663 views
Skip to first unread message

Andrew Gavgavian

unread,
Sep 17, 2020, 6:57:48 PM9/17/20
to py4web
Good afternoon,
After learning py4web I wanted to dip my toes in the water and check out the other frameworks. When learning Django, I came across a tutorial series by one of my favorite Python youtubers, Corey Schafer posted here.

The format of the tutorial was helpful, and after completing it, I wanted to go back to my origin of web development and try and see how difficult it would be to implement the same app in py4web. I've been spending the past few weeks working on accomplishing that and am pleased to show it off here! I've hosted the app on pythonanywhere and would love for people to check it out.

In the future, I plan on creating a video series similar to Corey's going through all the aspects of py4web that a starting user would want to know, but for now the code is up on github here and the app is available here.

This webapp is of the old style, where the server serves all webpages and there is no JS (Besides in Massimo's Auth) but I think that's still good to work with because it gives people an introduction to webdev.

I'd love to hear feedback if anyone is interested in checking it out! I'm ready for it to be broken in all the ways I could never imagine now that it's out in the open!

~Andrew

Tom Campbell

unread,
Sep 17, 2020, 7:37:03 PM9/17/20
to Andrew Gavgavian, py4web
Fantastic contribution, Andrew. Looking forward to it! Reading through the repo now.

--
You received this message because you are subscribed to the Google Groups "py4web" group.
To unsubscribe from this group and stop receiving emails from it, send an email to py4web+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/py4web/6383dd39-fc50-4cbb-ae31-8efb42754b34n%40googlegroups.com.

Richard Behan-Howell

unread,
Sep 17, 2020, 8:02:03 PM9/17/20
to py4web
Andrew,

I am really impressed. The design is really crisp and clean. 
I am also using Bootstrap 4 with an Admin LTE type design. 

I really like your auth profile. I would like to see this being the default py4web version. :)

What was your final conclusion Django vs py4web?

I am keen to hear your thoughts, as I have started writing an article describing the differences, in terms of Enterprise applications: initial development, maintenance, ease of use, ease of deployment, testing, learning curve etc.
In the enterprise or industrial worlds, there seems to be a misnomer that you "must" use what everyone else is using, because then there is lots of support. But I have found in practice that the simplest to deploy, test and maintain which also has a low learning curve provides much more longevity and sustainability vs the complex popular option that "everyone knows".

Rich.

Massimo DiPierro

unread,
Sep 17, 2020, 8:05:23 PM9/17/20
to Andrew Gavgavian, py4web
Excellent job Andrew!

Savas imzalı

unread,
Sep 18, 2020, 2:07:05 AM9/18/20
to py4web
tanks a lot Anrew,

in this type education project, password create may be simple, not strong,
I dont registered because of that strong password,
and  we too look forward to Coreys's like video tutorial  

18 Eylül 2020 Cuma tarihinde saat 01:57:48 UTC+3 itibarıyla andre...@gmail.com şunları yazdı:

Andrew Gavgavian

unread,
Sep 18, 2020, 2:34:06 AM9/18/20
to py4web
I'm fine with doing that, I don't think I can think of any vulnerabilities that could happen with the app, but I'm not a security expert.

Kevin Keller

unread,
Sep 18, 2020, 4:36:28 AM9/18/20
to Andrew Gavgavian, py4web
Great work Andrew! 

Super clean code and super nide app!

Thank you for sharing! 

What kind of design are you using Richard?

:)

--
You received this message because you are subscribed to the Google Groups "py4web" group.
To unsubscribe from this group and stop receiving emails from it, send an email to py4web+un...@googlegroups.com.

Richard Behan-Howell

unread,
Sep 18, 2020, 9:04:14 AM9/18/20
to py4web
I have an experimental proof of concept here, http://rbehanhowell.pythonanywhere.com/SSMES/growercontract where I have parent child linked tables a PDF and a map.  I use Datatables with Editor (licensed) using Ajax. I wrote my own API for this, which I may share, if anyone is interested, and if I can get around to cleaning up the code, - its custom written for each table - need to make it generic. 

I really should have tried to do it in the RESTAPI but that was yet another learning curve.

I really like the Admin LTE design menus on the left side. So I am using that style in my layout.html with Bootstrap 4. I have a Bulma version, https://github.com/RichardBH/py4web_admin_template, but I prefer the Bootstrap 4 look and feel and it allows me to copy the examples from the AdminLTE.

I really like Editor as it works well out of the box, you have options for inline editing, the license is really reasonable and it supports the excellent free Datatables library. It is very geared toward PHP and ASP.net, but now that I have the API working, it works really well.

And the best part about using an API, is that it decouples the front end, so I can start to play with Vue as I learn it.

Richard.

Kevin Keller

unread,
Sep 18, 2020, 10:39:19 AM9/18/20
to Richard Behan-Howell, py4web
I d interested in your API code. 

And thanks for the feedback. 

I am already squeezed for time with getting the IDM solution for py4web running, still adding endpoints to the solution I shared last week. 

I think with your API I would also consuder buying the plugin, seems worth it, but I am not gonna buy it and sit down and figure out how to write a compatbile API
whike working on the IDM piece, as that would delay it too long. 

Yet I think its something great to have under our belt, how to work with datatables. 

I like your idea of writing an aritcule of django vs py4web or in general the concept of "well hung frameworks" vs more niche but more producive frameworks. 

I have never worked with the Django community and I find Django way too verbose for 99% of the projects I will ever work on. 
This community here is smaller, but I think its very helpful and respsonsive. 

I dont think that is always the case, even with a bigger community, there is usually only a handful of people helping. 

Yet I am happy to stand corrected, since I have never enganged with the Django community. 

Jim Steil

unread,
Sep 18, 2020, 2:35:59 PM9/18/20
to py4web
I'm very excited to see these to samples.  

I've been through all of Corey Schafer's Flask videos and learned a lot from them.  I love what you did by showing how you can do the same in py4web.

Richard - great work with Datatables.net.    I think it will be great to have a simple way to implement Datatables.net with py4web.

-Jim
To unsubscribe from this group and stop receiving emails from it, send an email to py4web+unsubscribe@googlegroups.com.

klaus z

unread,
Oct 19, 2020, 5:15:50 AM10/19/20
to py4web
I went to Github, downloaded and followed the instructions. 

"The source code for the app can be found [here](https://github.com/agavgavi/py4web-blog-app), as well as links to [py4web's repo](https://github.com/web2py/py4web) and [Corey's repo](https://github.com/CoreyMSchafer/code_snippets/tree/master/Django_Blog) for all proper credit.
..
To use this program, just download the repo to the `apps` folder and navigate to `localhost:8000/blog`"

It worked. Thank you very much Andrew for the good sample where I can play around and learn,
 
Klaus  

Erich Meyer

unread,
Feb 3, 2021, 5:41:59 PM2/3/21
to py4web
I installed the application. At first I got an error message that PIL was missing.
After installing Pillow in the virtual environment, everything went fine.

However, I would like to give a note to the developers: the application cannot be deleted from the dashboard;
You will be asked
Do you really want to delete py4web-blog-app-master?
but nothing happened.

Erich

klaus z

unread,
Feb 5, 2021, 8:28:31 AM2/5/21
to py4web
When I remember correct a deletion of an individual application makes a *.zip file. Yes. I made some on Jan 12th 2021 with a most tecent application. Is this zip file there?
It seems nothing has happened at your side when you pressed the delete button. Make a py4web restart. Try again. (Possibly you did already). Then do the zip creation manually, delete the original structure and see what happens?
~Klaus

Nico Zanferrari

unread,
Feb 7, 2021, 12:10:31 PM2/7/21
to py4web
Thank you Andrew,
I'm referring your excellent work on the manual.

BTW: if you have an existing py4web installation, this blog example app can be simply uploaded within the Dashboard by using "Installed Applications" -> "Create/Upload App". Then give a "new app name" like Blog, and finally insert https://github.com/agavgavi/py4web-blog-app.git on the  "clone from web (git or zip)" line.

Currently the app is not running on PythonAnywhere, maybe your free account has expired. Also, I have no problem deleting the app inside the Dashboard.

Nico

--
You received this message because you are subscribed to the Google Groups "py4web" group.
To unsubscribe from this group and stop receiving emails from it, send an email to py4web+un...@googlegroups.com.

Massimo DiPierro

unread,
Feb 7, 2021, 12:13:58 PM2/7/21
to Erich Meyer, py4web
Thanks for letting us know. We can fix that today. Plan a new release tonight because many small changes

--
You received this message because you are subscribed to the Google Groups "py4web" group.
To unsubscribe from this group and stop receiving emails from it, send an email to py4web+un...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages