Python for Entrepreneurs Transcripts
Chapter: Build web apps with Pyramid: Applied web development
Lecture: Demo: Remember the site we built? It's back!
Login or
purchase this course
to watch this video and the rest of the course contents.
0:01
Let’s just do a quick refresher on the web app that we built that we are going to use for this entire chapter and continue building on afterwards.
0:08
This is a website that comes from the very first Pyramid section that we did,
0:13
we just created a new site and this is the one that we did with the command line, and you can look over here and you can see I've made the copy,
0:20
this is the demos GitHub repository, come over here you can see I've made a 4-applied-web dev and here is our app.
0:29
I just copied this over but I just wanted to make sure that you guys had separate versions so you could see it in different stages.
0:35
Now, because I copied this over here, this one also had this local registration, this development registration of the package that is the website,
0:44
so you are going to want to make sure when you come over here and run this one that you overwrite that,
0:50
we could do that really easily, we can say "Tools, Run setup.py Task, Develop", it looks like everything is good, and if you notice,
1:00
I am using the blueyellow Python environment that we created also in the previous section,
1:06
you can use the global one, you can use a different virtual environment, but just be aware of which one you are using.
1:13
Now let's go and run the app, just see where we are starting from. So this is basically the empty starter project, from Pyramid.
1:19
Now, remember our static caching that we had talked about before? Now this project doesn't have that because when we started out,
1:26
we wanted to focus on Pyramid and then come back to some of this CSS ideas and design ideas,
1:32
so what I am going to do is I am going to make a quick folder, copy that code over and add it in here.
1:42
OK, so I've done a little reorganization, added the "css" and "image" folders, as well as a "js", even though technically that is still empty,
1:50
and now our CSS files have this build_cache_id, so we don't have to worry about them being stale
1:55
as we talked about previously in the web design section, for ourselves while we are developing but especially for our users,
2:01
so everything is setup and ready to roll, now we are ready to start working with Pyramid handlers
2:06
and develop our web app for the Blue / Yellow Rockets.