Hi Everyone I am an absolute newbie to Pylons, frameworks and dynamic sites. I have been trying to follow along with The Definitive Guide to Pylons and the MyBlog online tutorial. I am making progress but I am getting tripped up with stupid things like how to link in images. These sorts of things seemed to be assumed to be known by the user and are not covered, I am however quite dumb. Is there an example App anywhere that is suitable for 0.9.7 and that would provide examples of everything needed for a publishable site, such as images etc?
Thanks in advance-Patrick Akira Kitada wrote: > Hi, > > A few comments on that tutorial. > > I've just started learning Pylons. > The doc (http://beta.pylonshq.com/docs/en/0.9.7/) was good, until I went to > That Quickwiki tutorial, which seems to be written for 0.9.6. > I guess the changes between 0.9.6 and 0.9.7 are so big that > It's almost impossible for me, a Pylons newbie to follow the tutorial. > > Here's the list of things I think should be fixed/updated. > > - Now "paster create -t pylons QuickWiki" ask you what template engine > to use and need to use SQLAlchemy and need some tweaks for GAE. > (during this phase, it says "Include SQLAlchemy 0.4 configuration". > maybe this msg should fixed, too?) > - Don't have to add "from sqlalchemy import Column, MetaData, Table, > types" to page.py > - In page.py, tutorial uses sets.Set but sets module is now deprecated > since Python 2.6 (http://docs.python.org/library/sets.html) > - In config/environment.py, "from sqlalchemy import > engine_from_config" is already in environment.py, so you don't need to > add it yourself. > - s/sqlalchemy\.default\./sqlalchemy./ > - In websetup.py, setup_config() is now replaced with setup_app(). > -- Don't need to add "conf = appconfig('config:' + filename)" > -- paster setup-app' logic should be in setup_app > -- model.Session -> model.meta.Session > -- model.Session.save() -> model.meta.Session.add() > > # websetup.py looks like below > """ > def setup_app(command, conf, vars): > """Place any commands to setup quickwiki here""" > load_environment(conf.global_conf, conf.local_conf) > > # Load the models > from quickwiki.model import meta > meta.metadata.bind = meta.engine > > # Create the tables if they aren't there already > import quickwiki.model as model > log.info("Creating tables...") > meta.metadata.create_all(checkfirst=True) > log.info("Successfully set up.") > log.info("Adding front page data...") > page = model.Page() > page.title = 'FrontPage' > page.content = 'Welcome to the QuickWiki front page.' > model.meta.Session.add(page) > model.meta.Session.commit() > log.info("Successfully set up.") > """ > - In development.ini, sqlalchemy.default.url -> sqlalchemy.url > > > > > > On Mon, Jan 12, 2009 at 8:13 PM, Mike Orr <[email protected]> wrote: > >>> On Jan 8, 12:59 pm, mk <[email protected]> wrote: >>> >>>> Hello everyone, >>>> >>>> I'm sad to report that QuickWiki as installed from pypi doesn't work >>>> with Pylons 0.9.7. I installed it using easy_install, followed the >>>> >> On Thu, Jan 8, 2009 at 10:52 AM, Thomas G. Willis <[email protected]> >> wrote: >> >>> My first guess would be Quickwiki is for 0.9.6 nad has not been >>> upgraded to be useful in 0.9.7 yet. >>> >> I just saw this. QuickWiki is out of date. The specific problem >> probably means the three new middlewares are missing, as described in >> "What's New in Pylons 0.9.7?" >> >> http://docs.pythonweb.org/pages/viewpage.action?pageId=11174779 >> >> -- >> Mike Orr <[email protected]> >> >> > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~----------~----~----~----~------~----~------~--~---
