Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

147
Views
Django create app error

I want to create the app in django 1.8.12

and I type `python manage.py startapp fb_weatherbot

and the traceback:

File "C:\Users\User\Anaconda3\lib\importlib\__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 986, in _gcd_import
  File "<frozen importlib._bootstrap>", line 969, in _find_and_load
  File "<frozen importlib._bootstrap>", line 956, in _find_and_load_unlocked
ImportError: No module named 'fb_weatherbot'

What part I missed?

I have added the app in INSTALLED_APPS in the settings.py

thank you.

about 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Add it to INSTALLED_APPS after running startapp, not before.

Explanation: running manage.py imports settings.py, so it tries to find fb_weatherbot app which doesn't exist (yet).

Example (error output truncated):

INSTALLED_APPS = [
    …
    'fb_weatherbot'
]

$ ./manage.py startapp fb_weatherbot
Traceback (most recent call last):
…
ImportError: No module named 'fb_weatherbot'

INSTALLED_APPS = [
    …
    # 'fb_weatherbot'
]

$ ./manage.py startapp fb_weatherbot
$ # outputs nothing, app is created

Uncomment it again after running startapp, of course.

about 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!