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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T23:10:36+00:00 2026-05-20T23:10:36+00:00

Project name : pro Project location : /home/cha0s/pro/ Applications location : /home/cha0s/pro/apps/ , where

  • 0
  1. Project name: pro
  2. Project location : /home/cha0s/pro/
  3. Applications location: /home/cha0s/pro/apps/ , where are folders of different apps like blog, comments etc…

Apache configuration:

 <Location "/">
        SetHandler python-program
        PythonHandler django.core.handlers.modpython
        SetEnv DJANGO_SETTINGS_MODULE pro.settings
        PythonDebug On
        PythonPath "['/home/cha0s/','/home/cha0s/pro/apps/']
+ sys.path"  </Location>

So the question is : with following configuration , to import an app in INSTALLED_APPS , for example blog i need to write just

INSTALLED_APPS = (
    .....
    'blog',
    'gallery',
    ......
)

but if i take this line ‘/home/cha0s/pro/apps/’ away from python path , by my logic then to install a module for example blog , i need to write full path like pro.apps.blog and it should work , but it doesn’t . How come ?

SOLUTION:

Thanks Lam . Don’t know how to mark Thierry Lam answer correct , so i’ll just write it here.

init.py file must be created in apps directory even if it is just a directory with no files. Then there is no need for ‘/home/cha0s/pro/apps/’ line in apache configuration , and modules can be declared like pro.apps.blog

  • 1 1 Answer
  • 1 View
  • 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-20T23:10:37+00:00Added an answer on May 20, 2026 at 11:10 pm

    Do you have the following file apps/__init__.py?

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

Sidebar

Related Questions

I have .NET project using VS 2010 Pro, Some of the class name in
So i've got something like this for a repository atm. D-Hewards-MacBook-Pro:project dheward$ git branch
In sql server 2005 I have a table like this empno name project --------
If my project name is ABC and the DLL currently outputs as ABC.DLL, how
I have my project name, but not the numeric Project Id. The latter is
I've created a simple Project model with four attributes: Project name:string description:text complete:boolean user_id:integer
I have three projects 1)unmanaged c++ containing full business logic 2)C++/CLI ( Project name
By default settings are stored at: C:\Documents and Settings\\Local Settings\Application Data\<Project Name> How can
When i create new project with the name MyNewProject with a single view application
I've been working on a project in Netbeans. Now I'd like to submit it

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.