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

  • Home
  • SEARCH
  • 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 7193865
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T20:15:21+00:00 2026-05-28T20:15:21+00:00

I have a Django app called fstore. It’s registered in INSTALLED_APPS as foo.bar.fstore. When

  • 0

I have a Django app called “fstore”. It’s registered in INSTALLED_APPS as “foo.bar.fstore”. When I run all of my django tests via “manage.py test”, I see results from its test, eg.:

FAIL: testFilesWithDuplicatePathsDoNotOverwriteEachOther
(foo.bar.fstore.tests.fileRecTests.TestFunctionality)

However, when I try to specifically run tests for this app, via “manage.py test fstore”, Django tells me:

Ran 0 tests in 0.000s

If I had the app name wrong or something it would give me an error, but it clearly recognizes the app … it just fails to find the tests for it (even though they’re inside a “tests” folder with an __init__.py inside that app’s folder). So my basic question is: what gives? Or more specifically, how do I get just the tests from this app to run without running all of the rests?

Oh, and just to rule out the easy answer, yes this app has both a models.py and an __init__.py.

* EDIT *

I just ran “manage.py shell” and it turned out something was fishy:

from django.db.models import get_app, get_apps
get_app("fstore")
<module 'foo.bar.search.models' from '/baz/python/foo/bar/search/models.pyc'>

Which of course was the compiled form of the completely wrong model (no clue how that happened). So I removed the .pyc file, and now I get a more normal error:

django.core.exceptions.ImproperlyConfigured: App with label fstore
could not be found

which is progress … but it still doesn’t explain why Django can’t find my app.

One more note: even though Django works fine (I can “manage.py runserver”, browse around my app, etc.), at the command line I apparently have no apps at all. For instance, trying to run “manage.py test debug_toolbar” gives me a similar ImproperlyConfigured error. Hopefully this means something to someone …

  • 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-28T20:15:22+00:00Added an answer on May 28, 2026 at 8:15 pm

    Wow, this was terrible. So I guess I’ve been editing Django core files in my sleep or something, because there was a file (models/loading.py) which had been modified to have that foo.bar.search app hard-coded in to it. I don’t have any bash history of editing this file, nor do I have an Eclipse history, and I would have had no reason to edit the file, but … since no one else could have done it, I guess I must have (or else there is a REALLY weird django bug that results in it editing source code).

    I guess I’ll leave this question/answer here on the freak chance that someone else does something similar and this helps them, but this is such a freak occurrence that I doubt it will.

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

Sidebar

Related Questions

I have a model called Activity in my django app. in the admin interface,
I have a model in my dJango app called event . I want users
Suppose I have a Django app named blog. There's a model called Post and
I have created a permission system in django. It is inside an App called
I have a simple class in a Django app called project from django.test import
In a Django app, I have an extra module. So my app is called
I'm new to Django... I have installed a Django external App called Haystack, this
I have a Django project with one app called subscribe . In root urls.py
I have a django application, with a module called app Now this module has
I'm new to Django. I have created a new App called Directorio and now

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.