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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T06:21:59+00:00 2026-05-13T06:21:59+00:00

I have a python/django application that runs on the google app engine. My views.py

  • 0

I have a python/django application that runs on the google app engine.

My views.py file has some imports…

from commands.userCommands import RegisterUserCommand
from commands.accountCommands import CreateNewAccountCommand, RenameAccountCommand

These imports work fine on my development environment (local machine). But when I upload to the google app engine, views.py fails with a “Could not import views. Error was: No module named userCommands” error.

Any idea why I can’t import my commands.userCommands module?

My file structure looks as follows…

- app.yaml
- urls.py
- views.py
- etc...
- commands/__init__.py
- commands/userCommands.py

Note: I did try to append my application name to the module name/path. No luck.

Note: I did do an update with the –noisy argument, and it does appear to upload my commands folder successfully.

  • 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-05-13T06:21:59+00:00Added an answer on May 13, 2026 at 6:21 am

    You could be running into a clash with Python’s own commands module (which doesn’t have submodules like yours) — naming your own modules and packages in ways that are meant to hide ones in the standard library (just like naming your variables in ways that are meant to hide builtin names, like list or file) is always a perilous undertaking, even though it “should” work there’s always potential for confusion.

    Could you try renaming that commands package and its uses to something unambiguous and free from danger, such as mycommands, and see if that just makes the problem disappear? If that’s the case you can then open a ticket on GAE’s tracker (because it would show a minor but undeniable bug in GAE’s runtime) but meanwhile your problem is solved!-) If the problem stays, ah well, at least we’ve eliminated one likely cause and can keep digging…

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

Sidebar

Related Questions

I have a App Engine/Python/Django application which has grown and been modified over the
I have a Python web application (Django, specifically). I'm reading in some data from
I have an application that uses Django 1.3 installed in python's site-packages. I want
I have a web application build in Django + Python that interact with web
I have written a Django app that makes use of Python threading to create
I have a small application that I wrote in python. Did some research on
hi i am working on a django python application using sqlite3 database. I have
I have a Python program (with Django - does this matter?) that I want
I need to have an at-home project now that I'm working on Python/Django at
I am writing a Python/Django web application that uses OAuth (for the TwitterAPI, not

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.