Deploying lfs in a subdirectory on webfaction

84 views
Skip to first unread message

Andreas

unread,
May 12, 2012, 5:55:19 AM5/12/12
to django-lfs
Hello,

I'm trying to install the lfs shop on webfaction in a subdirectory of
my domain.
So I want it to be installed at my-domain.com/lfs.
I followed the instruction given at

http://community.webfaction.com/questions/6397/django-lfs-lightning-fast-shop-deployment-issue

I also followed the instructions here

http://docs.webfaction.com/software/django/config.html#mounting-a-django-application-on-a-subpath

and changed some variables in the settings.py file to

FORCE_SCRIPT_NAME="/lfs"
LOGIN_URL = "/lfs/login/"
LOGIN_REDIRECT_URL = "/lfs/manage/"

STATIC_URL = '/lfs/static/'
MEDIA_URL = '/lfs/media/'

and restarted apache afterwards.
However this doesn't work completely.
When I browse to the main page of my installation at my-domain/lfs
I can see that some urls are generated correctly, e.g
/lfs/cart
/lfs/imprint
/lfs/pages
/lfs/login
But some urls on the main page are still not correct and don't work,
like
/manage
/contact
Also the home button doesn't work correctly. It links to my-domain
instead of my-domain/lfs.

What am I missing?
Can you help me?

Andreas

prajwal suhas p

unread,
May 12, 2012, 7:47:48 AM5/12/12
to djang...@googlegroups.com

Can I know, for what reason you want your site to shown at - my-domain.com/lfs Instead of my-domain.com?
----
Cheers,
Prajwal Suhas P




Andreas

--
You received this message because you are subscribed to the Google Groups "django-lfs" group.
To post to this group, send email to djang...@googlegroups.com.
To unsubscribe from this group, send email to django-lfs+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-lfs?hl=en.


Andreas

unread,
May 12, 2012, 8:29:28 AM5/12/12
to django-lfs
I have already another web application installed at
the root folder / and I do not want to to change that.

But I want to additionally install LFS anyway and thought
it should be easy to do that in a subdirectory of my domain.

On May 12, 1:47 pm, prajwal suhas p <prajwalp...@gmail.com> wrote:
> Can I know, for what reason you want your site to shown at -
> my-domain.com/lfs Instead of my-domain.com?
> ----
> Cheers,
> Prajwal Suhas P <http://twitter.com/#%21/prajwalps>
>
>
>
>
>
>
>
> On Sat, May 12, 2012 at 3:25 PM, Andreas <andi...@web.de> wrote:
> > Hello,
>
> > I'm trying to install the lfs shop on webfaction in a subdirectory of
> > my domain.
> > So I want it to be installed at my-domain.com/lfs.
> > I followed the instruction given at
>
> >http://community.webfaction.com/questions/6397/django-lfs-lightning-f...
>
> > I also followed the instructions here
>
> >http://docs.webfaction.com/software/django/config.html#mounting-a-dja...

prajwal suhas p

unread,
May 12, 2012, 9:29:54 AM5/12/12
to djang...@googlegroups.com

You could have easily done this by creating a new sub-domain in the web-faction control panel.
i.e say -
lfs.yourdomain.com or dev.yourdomain.com and link it to your lfs-app in your web-faction control panel. 

Also you could keep separate copies of lfs say -
lfstruck.yourdomain.com and lfs07.yourdomain.com for Development purposes.

This process is much straightforward :)

----
Cheers,
Prajwal Suhas P



prajwal suhas p

unread,
May 12, 2012, 9:32:06 AM5/12/12
to djang...@googlegroups.com

----
Cheers,
Prajwal Suhas P



On Sat, May 12, 2012 at 6:59 PM, prajwal suhas p <prajw...@gmail.com> wrote:

You could have easily done this by creating a new sub-domain in the web-faction control panel.
i.e say -
lfs.yourdomain.com or dev.yourdomain.com and link it to your lfs-app in your web-faction control panel. 

Also you could keep separate copies of lfs say -
lfstruck.yourdomain.com and lfs07.yourdomain.com for Development purposes.

**typos - this must be read as '
Reply all
Reply to author
Forward
0 new messages