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 7806895
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T02:40:43+00:00 2026-06-02T02:40:43+00:00

I’ve created an app on my local computer with Web2py and it is running

  • 0

I’ve created an app on my local computer with Web2py and it is running via WSGI with SQLite. I can successfully deploy my app to Google App Engine, using my own domain and doing all url rewrites I need.

Now I need a way to create specific administrative users that will be responsible for update some tables.

Specific questions:

  1. Is there a way I can use Web2py admin interface when my appliation is running on GAE ?
  2. Even if I do not want create news applications nor edit files, is it possible to use Web2py admin interface just to manage the database of an application running on Google App engine?
  3. If not, how this kind of user management is done when using Web2py on GAE?
  • 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-02T02:40:46+00:00Added an answer on June 2, 2026 at 2:40 am

    I’ve never used GAE before, but I usually do something like this in my db.py to create an initial administrative user:

    def check_initialize():
        if not db().select(db.auth_user.ALL).first():        
            db.auth_user.insert(
                username = 'administrator',
                password = db.auth_user.password.validate('admin1234')[0],
                email = 'null@null.com',
                first_name = 'System',
                last_name = 'Administrator',
                is_admin = True,
            )
    
    # do initialization check
    cache.ram('db_initialized', lambda: check_initialize(), time_expire=None)
    

    Note that “is_admin” is a field I added to the auth_user table, but I could have just as easily added a new auth_group record called “administrators”, and then added the new user to the “administrators” group using “auth.add_membership(1, 1)”.

    For administrative functions, if you can’t get the web2py admin working (which should be possible if you set up web2py to run over HTTPS), then you can always create your own editor using something like this:

    def users():
        form = SQLFORM.grid(db.auth_user)
        return dict(form=form)
    

    That will create a grid control listing all users, and allowing you to add and remove users. You could do the same thing for db.auth_group and db.auth_membership. You may need to tweak it a bit though. Alternatively, you could always use something like this: Instant Admin or Badmin

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

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a jquery bug and I've been looking for hours now, I can't
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I have a French site that I want to parse, but am running into
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build
Does anyone know how can I replace this 2 symbol below from the string
I am currently running into a problem where an element is coming back from
I am writing an app with both english and french support. The app requests
I am using Paperclip to handle profile photo uploads in my app. They upload

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.