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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T14:37:35+00:00 2026-06-18T14:37:35+00:00

I could not figure out what I’m doing wrong. Could you please help me?

  • 0

I could not figure out what I’m doing wrong. Could you please help me?
I have the following directory structure:

project-repository
  \-- my-project
       \--manage.py
       \--my-project
             \--__init__.py
             \--urls.py
             \--wsgi.py
             \--settings
                    \--__init__.py
                    \--local.py
                    \--base.py

In the local.py I import base.py. In base.py I have from unipath import Path. When I try to run django-admin shell --settings=my-project.settings.local it shows me an error:

Error: Could not import settings 'my-project.settings.local' (Is it on sys.path?): No module named unipath

When I do pip freeze it shows me:

Unipath==0.2.1

and I can easily import it in python console. Also I have project-repository and my-project on PYTHONPATH.

Here is unipath.__file__ output:

/home/User/.virtualenvs/django.1.4/local/lib/python2.7/site-packages/unipath/__init__.pyc

And here is one of the lines from sys.path output:

/home/User/.virtualenvs/django.1.4/local/lib/python2.7/site-packages

Could you please point me to what I’m doind wrong?

  • 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-18T14:37:37+00:00Added an answer on June 18, 2026 at 2:37 pm

    It seems like I figured out the problem. The think was that I did a lot of mess. I had django and other apps installed globaly (long before I started developing the project). Then I installed virtualenvwrapper and created virtualenv. Working in the virtualenv I installed the required dependencies and the django. But when I was trying to run that I ran the globally installed version of django. As a result there were some incompatibilities.
    After I uninstalled global packages, everithing is ok.

    How I figured out it? Thanks a lot to Jeff Knup and his post Starting a Django 1.4 Project the Right Way. I walked through the described steps and when I ran

    (my-virtualenv)$ which django-admin.py
    

    it showed me the following path:

    /usr/local/bin/django-admin
    

    while it should have:

    $HOME/.virtualenvs/
    

    that was a sign that something is wrong.

    Thanks a lot for everybody for trying to help me.

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

Sidebar

Related Questions

I have a piece of code and I could not figure out why it
I have been trying this for some time but could not figure out yet.
I think on the following examples; but could not figure out what the importance
I have searched many explanations, but I think I could not figure out how
I have a quick question that I could not figure out in the docs
This might be very simple..but could not figure out. I need to have a
i have tried to do that but could not figure it out , lets
I have googled enough but could not figure out what the bracket () means.
Recently I came across following question. I could not figure out the reason.Could anyone
I could not figure out how to get the white fill for this ggplot2

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.