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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T15:42:47+00:00 2026-05-17T15:42:47+00:00

I recently setup a deployment solution for my Django project using Fabric . The

  • 0

I recently setup a deployment solution for my Django project using Fabric. The basic workflow being:

  1. Check out the latest source from git on the server.
  2. Copy it to a ‘releases’ directory and add a timestamp to the directory name.
  3. Update the ‘current’ symlink to point to the latest build.

This works just fine, only problem is, since the top level directory is a symlink called ‘current’ and that points to a folder like ‘project_name_2010_10_04’ ALL of the following Import statements will fail:

from project_name.app import models

…

INSTALLED_APPS = (
    'project_name.app'
)

…

urlpatterns = patterns('',
    (r'^$', 'project_name.app.views.index'),
)

So the solution I’ve found is to remove EVERY single reference to ‘project_name’ in my project, and the app seems to deploy and work just fine (for now). But this doesn’t seem like the right way to solve the problem… mostly because in a newly created Django project the ‘urls.py’, ‘settings.py’ all reference the project name by default and also various Django documentation mentions using the project name for various things.

So to sum up my problem, is there a way to specify a package name that differs from the actual directory name?

  • 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-17T15:42:47+00:00Added an answer on May 17, 2026 at 3:42 pm

    Simply put, you really shouldn’t be using your project name hard-coded anywhere, especially in specific apps, as it just completely breaks their portability and re-usability.

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

Sidebar

Related Questions

I'm using Core data in an iOS project. I have the data model setup
Starting recently, some of my new web pages (XHTML 1.1) are setup to do
I've recently inherited a fairly large web site. The project is set up as
Recently I had to develop a SharePoint workflow, and I found the experience quite
My situation: I've recently joined on the front-end side of an established project that
Came across this curiosity recently. One solution, with two projects within it (ORM and
I have recently started a new C++ project and I intend to make it
I've recently installed VS 2010 Ultimate, and decided to move a project to TeamCity,
Recently Jeff has posted regarding his trouble with database deadlocks related to reading. Multiversion
Recently I have been investigating the possibilities of caching in ASP.NET. I rolled my

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.