WebFaction
Community site: login faq
0
1

Hello, I've created a simple index.html ( An intro page ).

I've a structure like this

/MySite

-css

-js

-img

-pages

index.html

I've to create another page yet, a form, and I don't know if I can do it in django or I can go through a simple php page. I would like to stick with django.

I don't know how I should organize Domains/Applications ore something else. Could you help me find the road ? :) Thank you.

ps: Sorry for my mighty non correct English.

Have a nice day.

asked 11 Apr '11, 03:26

emt
524
accept rate: 0%

edited 11 Apr '11, 04:14


Sure, you can do this with Django!

On WebFaction, you can combine different types of applications. That means a website doesn't have to be "only" Django, or "only" Wordpress. You can have a single website that uses all of them.

This is all done with Website Records.

Let's say you have a website using a Static/CGI/PHP application for your "base" site. Then, you want to have a form made with Django, a blog with Wordpress, and some "static-only" media like images, video, javascript, CSS, and raw (unchanging) HTML.

Here is your website in URL Space (how the pages appear laid out to the user, and not related to filesystem):

http://mydomain.com/          --   Static/CGI/PHP App
http://mydomain.com/form      --   Django App
http://mydomain.com/blog      --   Wordpress App
http://mydomain.com/static    --   Static-Only App

This could be created with a single website record which mounts four applications.

First, you would create 4 separate applications (they can have any name):

my_static_php
my_django
my_wp
my_static_media

Then, you would "mount" these 4 applications using the following URL Paths in a website record:

  -- App --           -- URL Path --
my_static_php           /
my_django               /form
my_wp                   /blog
my_static_media         /static
           *(A URL Path of something like /blog/new is valid as well)*

The URL Paths are "inclusive", so a URL like this:

http://mydomain.com/form/p1/

Would still be part of the Django application. Something like this:

http://mydomain.com/info

Would be part of the "base" Static/CGI/PHP application, since it didn't fall under any other application.

So, yes, you can do this on WebFaction. In fact, the ability to combine application was the primary motivation behind creating Website Records in the first place :)

Hope that helps!

permanent link

answered 11 Apr '11, 04:34

ryans ♦♦
5.0k93360
accept rate: 43%

edited 11 Apr '11, 04:35

1

excellent answer. Also doing folders is much better for SEO and PageRanks than going with sub-domains AFAIK.

@ryan I badly wanted to upvote; but can't. Karma threshold's are high here? :D Someone give me Karma.

Worth mentioning; Webfaction is one of the best Infrastructure designs I've come across and powered by the top-notch support.

And I've worked with many numerous other hosting providers but nothing comes close to webfaction. #Webfaction #love :)

(17 Sep '12, 08:39) Prajwal
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×125
×37
×8
×2

question asked: 11 Apr '11, 03:26

question was seen: 5,031 times

last updated: 17 Sep '12, 08:42

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM