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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T06:10:15+00:00 2026-06-09T06:10:15+00:00

I am developing a Django app on Mac OS 10.8. The production server is

  • 0

I am developing a Django app on Mac OS 10.8. The production server is an Ubuntu server. On the production server, I created symlinks to the directory below:

(On Ubuntu)
/var/virtualenvs/some_virtualenv/lib/python2.6/site-packages/django/contrib/admin/media

But those symlinks obviously don’t work in my local OS X dev environment:

(On OS X)
/Users/username/Webdev/.virtualenvs/some_virtualenv/lib/python2.7/site-packages/django/contrib/admin/media

The symlink apparently made it into the git repo. Django deployment really is a bit of a pain! Can someone tell me how to deal with deployment in two different environments?

UPDATE: Is it simply a matter of making sure the symlinks are excluded from the git?

  • 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-09T06:10:16+00:00Added an answer on June 9, 2026 at 6:10 am

    Django deployment really isn’t too hard, but there are a couple of patterns that are useful. The first, is to split out your production and development settings. There are a number of different ways to do this, most of which are described in the django documentation.

    Also, if you’re using Django >= 1.4, you don’t need to symlink to admin media anymore since it has been converted to using staticfiles.

    I use this template when creating any new django 1.4 projects, which includes generating your production and local settings.

    Symlinks shouldn’t be included in your git repo IMO. There are better ways of managing how to access your media.

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

Sidebar

Related Questions

I'm currently developing an iOS app that interacts with a server (in django) via
Does it exist? Basically I'm developing a Django app on my local machine, when
I am developing a django (1.4) app on my local machine. I am running
I am developing a website using Google App Engine and Django 1.0 (app-engine-patch) A
I'm developing a web app in Python 2.7 using Django 1.4 with PyCharm 2.5
I'm on developing iphone app that uses backend web service(django). To login the web
I am developping a django app on Windows, SQLite and the django dev server
I'm currently developing my Django projects on both: Mac OS X 10.5, 32 bit
We are developing a django app for several restaurants, it's like a shopping chart.
I am developing an application on the Google App Engine using Python (and Django,

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.