WebFaction
Community site: login faq

Hi,

I've followed the instructions to create a static application / symbolic link. This works properly.

I can access files at: username.webfaction.com/static/myfile.txt

Folder structure: - Static App - static files - Django App

However, I'd like to have sub-folders, for organizational purposes. - Static App - directory 1 - directory 2 - file 1 - file 2 - etc. - etc.

When I try to reference files in sub directories, this does not work. How do I handle this?

Thanks, David

asked 19 Oct '11, 04:07

learntango
111
accept rate: 0%

There shouldn't be any reason why subdirectories are not working. Can you provide an actual example so we can take a look? Thanks!

(19 Oct '11, 04:20) ryans ♦♦

Hi Ryan,

Here is an example:

My Unix Path Structure: learntango - webapps - - django - - staticapp - - - test file - - - video - - - - video 1 - - - - video 2

I would expect you could access the videos by going to: http://learntango.webfactional.com/static/video/video1

This Works: learntango.webfactional.com/static/test

This Does Not: http://learntango.webfactional.com/static/video/body_as_one_480.flv.flv

Hope this helps ...

Thanks! David

(19 Oct '11, 04:26) learntango

Here is the file structure again, as it distorted it:

My Unix Path Structure:

learntango

  • webapps

    • django
    • staticapp
      • test file
      • video
        • video 1
        • video 2
(19 Oct '11, 04:26) learntango

According to your directory structure listed, this should definitely work.

Are you certain that you have spelled each filename correctly? (for example, it's body_as_one_480.flv.flv, not body_as_one_480.flv, yes? And it's video and not Video)

(19 Oct '11, 04:33) ryans ♦♦

Crap. You're right - it is Videos rather than Video. Spelling error. My mistake - thank you!

David

permanent link

answered 19 Oct '11, 04:36

learntango
111
accept rate: 0%

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
×22
×4
×2

question asked: 19 Oct '11, 04:07

question was seen: 2,580 times

last updated: 19 Oct '11, 04:36

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