Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8244467
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T21:51:37+00:00 2026-06-07T21:51:37+00:00

Im working on a CMS for appengine using python, I have a form page

  • 0

Im working on a CMS for appengine using python, I have a form page much like how wordpress works where you enter a Title, content and other meta data for the page. Lets say this is AddPage

Once the page is saved the data is stored and a link is shown on the article index page. Just like wordpress when you click on posts. What Im trying to do is once a link is clicked on the index page the user is redirected to a page which is exactly like the AddPage but it already has data filled in ready for editing.

How would I do this am I missing something:

class EditPageHandler(webapp2.RequestHandler):
    def get(self, articleID):
        page_details = db.GqlQuery("SELECT * FROM TitlePage WHERE key_name = '" + articleID + "'" )
    pageDetails_list = page_details.fetch(10)
    template = jinja_environment.get_template('templates/editcourse.html')
    self.response.out.write(template.render({'page_details':pageDetails_list}))

the html template would display something like:

<input id="author" type="text" name="author" maxlength="120" value="{{ page_details.Author }}">

Im not getting any errors and this does not work so something is not right here:

I have also tried outputting it like so:

Still nothing any help please.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T21:51:40+00:00Added an answer on June 7, 2026 at 9:51 pm

    I managed to solve this the approach I was using above was all wrong instead what worked was this:

    class EditPageHandler(webapp2.RequestHandler):
        def get(self, articleID):
              page_details = TitlePage.get_by_key_name(articleID)
              template = jinja_environment.get_template('templates/editcourse.html')
              self.response.out.write(template.render({'detail':page_details}))
    

    and as for the html I just did:

    <input id="author" type="text" name="author" value="{{ detail.Author }}">
    

    And it worked 🙂

    Thanks to gwynhowell for the suggestion to improve the code I made the changes and many thanks to you Sebastian Kreft for the suggestion that got me moving in the right track.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working with a CMS that parses variables into content using placeholders, e.g. <td>
I am working on a CMS using wordpress 3.3.1. With my previous question, in
I have some HTML I'm working on using programming from a CMS I didn't
I am working on a CMS using CakePHP and I want to create a
I am working on a cms and there are some simple parameters like number
I'm working on a CMS using VB.NET 3.5 and I'm stuck on a concept.
I'm working on a CMS with Widgets. On my localhost the followong code works
I am working on a CMS project using ASP.Net 3.5/Visual studio 2008.This is the
I am working with a CMS like system, phpBMS, which defines a certain way
I am working with a CMS system, and using a kind of smartform am

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.