login community faq
1
1

I have a django app that is being served at:

1
user.webfactional.com

As per the webfaction static files guide I am trying to serve the static content from:

1
user.webfactional.com/static

I have added the static-only app. When I attempt to follow step #2 of the static files guide linked above:

With the control panel, modify or create a website entry which maps an unused path from your domain name (e.g. www.mydomain.com/media) to your new Static-only application

I get the following error:

user.webfactional.com is already used in another site record with the same IP address so you can't re-use it here. If you want to change what gets served for this subdomain you need to edit the existing site record

I understand the error, but according to the static files guide, it should be possible to map the user.webfactional.com/static/ URL to the static-only app instead of django.

What is wrong here?

asked Dec 08 '10 at 17:28

awesomo's gravatar image

awesomo
215

edited Dec 08 '10 at 17:38


What you will need to do is edit the website record that is currently serving your Django application. If you look at the bottom, you will Site Apps with Django at URL Path of /. Add a new site app. Select your new static application and set it to the url path of /static.

If you prefer to have your content at static.user.webfactional.com you could create a new subdomain called static for your user.webfactional.com address. You would then create a new site record, select your new static.username.webfactional.com address, and select your static only application at the url path of /.

answered Dec 08 '10 at 17:37

aaronh's gravatar image

aaronh ♦♦
12743

Thanks for the prompt and helpful response! I was mistakenly trying to add a new site under >Home>Sites on the control panel rather than editing the existing site record.

(Dec 08 '10 at 17:45) awesomo awesomo's gravatar image

I am a new user so I cannot up vote yet, but this is really clear. thank you!

(Dec 31 '12 at 21:51) kira kira's gravatar image
Your answer
If you have an answer to the above question, then use the form below. Otherwise, use the appropriate 'add new comment' button above to post your feedback.
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

Tags:

×643
×90

Asked: Dec 08 '10 at 17:28

Seen: 1,157 times

Last updated: Dec 31 '12 at 21:51

Plans & prices    Sign up    Why WebFaction?    Contact us    Affiliate program    Support    Legal    Jobs    Blog    Control panel login
Powered by OSQA
© Copyright 2003-2012 Swarma Limited - WebFaction is a service of Swarma Limited