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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T08:26:17+00:00 2026-06-01T08:26:17+00:00

I would like to deplay a django application/project, which i have created within Aptana.

  • 0

I would like to deplay a django application/project, which i have created within Aptana. It is a simple hello world. I can run the application locally and everything works fine, but how to deploy it to a webserver. The deploy button is grey and not working in the PyDev Perspective.
If i switch to perspective “Web Perspective” i can download(check out from a specific path with password) django applications from a webserver, edit files, and upload again. I would like to use the functionality from the web perspective in my pydev perspective where i write my django code.

But when i create my own django project, the button deploy is grey.

  • 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-01T08:26:18+00:00Added an answer on June 1, 2026 at 8:26 am

    This is now my solution to deploy django 1.3 with aptana to Apache Server:

    https://i.stack.imgur.com/wHiME.jpg

    • Start Aptana, select PyDev Perspective (right corner) and just create a simple Django Project
    • Create a views.py ane a method index()
    def index(request):
    return HttpResponse("Hello world")
    
    • Edit your urls.py so that django can find the method index()
    • Run Sync DB (rightclick your project in PyDev Package Explorer, at bottom click Django, and click Sync DB). I am using here a local sqlite3 db
    • if everything work,s you will see within Aptana Console: Finished “/home/xy/workspace/test1/test1/manage.py syncdb” execution.
    • Now Run local your django app: rightclick your project on left side of aptana (PyDev Package Explorer) somewhere in the middle you can see RUN AS: 1 PyDev:Django
    • Now open your browser: http://127.0.0.1:8000/index or http://127.0.0.1:8000
    • U see now your “Hello World”

    If this worked, now lets deploy to apache:

    • switch to Web Perspective (right corner of Aptana)
    • switch to App Explorer (left side of Aptana) IMPORTANT!!!!!
    • there is a little dropdown menu: select there your application (e.g. test1), BUT do not select any of the packages or modules inside of your project!!
    • you will see now your app and nothing is selected/clicked=> you see also a little box above!
    • click it and Run Web Deployment Wizard!!! if anything in your package is selected, you will not see “Run Web Deployment Wizard”…. (strange)
    • Select SFTP Protocol; Fill out form
    • Remote Path: before you can select the directory you want to have your app uploaded, you should create it on the server
    • After you have selected the directory where you want to have your app deployed to server (ubuntu) you can again click on the little box and select deploy app
    • Now you get a new window SYNCHRONIZE
    • Your data/app have been now uploaded to server in the chosen directory
    • I use wsgi so i have to edit 2 files
    • the first one is a file called test1.wsgi in the wsgi directory

    import os

    import sys

    path = “/home/username/”

    if path not in sys.path:
    sys.path.append(path)

    path = “/home/username/somedirectory/test1/test1/”

    if path not in sys.path:
    sys.path.append(path)

    os.environ[‘DJANGO_SETTINGS_MODULE’] = ‘settings’

    import django.core.handlers.wsgi application =
    django.core.handlers.wsgi.WSGIHandler()

    • now go as sudo -s to cd /etc/apache2/conf.d/
    • create a file test1
    • write

    WSGIScriptAlias /rofltest /home/username/wsgi/test1.wsgi

    • /rofltest means http://www.youraddress.org/rofltest will be the url
    • /home/username/wsgi/test1.wsgi means where to look for a file which will tell where to look for your django app on the server

    • restart apache (/etc/init.d/apache2 restart) and browse to http://www.youraddress.org//rofltest/index

    • You see Hello World or an error because you have to adjust the paths.
    • Start with settings.py and edit ROOT_URLCONF = ‘test1.urls’ maybe just to ‘urls’
    • now it works 🙂

    Try it, if it fails, write a comment and maybe i read it and help. If this helped, upvote it.

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

Sidebar

Related Questions

I have a Django application that I would like to deploy to the desktop.
I would like to deploy a very simple DLL with my C# application, but
I would like to try out Capistrano to deploy a PHP application but can't
I have an object animating, which I would like to start fading out, after
I have a multi module maven project which looks something like: main component_one subcomponent_bob
So I have a jar file created by Netbeans. I would like to deploy
I have built an MSI that I would like to deploy, and update frequently.
I would like to set up an error page which will diplay a message
I would like to deploy two separate Django applications to Heroku. Two applications, with
We would like to deploy an application via ClickOnce but you really do need

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.