move project folder

42 views
Skip to first unread message

podio

unread,
May 19, 2011, 5:36:31 PM5/19/11
to django-lfs
I have the folder project created by the installation, but when I copy
and move it to another directory and run
the development server I get the following error


mariano@note01:/media/Archivos/eclipse_workspace/shop/src/shop$ python
manage.py runserver
/usr/local/lib/python2.6/dist-packages/django/db/__init__.py:19:
DeprecationWarning: settings.DATABASE_* is deprecated; use
settings.DATABASES instead.
DeprecationWarning
/usr/local/lib/python2.6/dist-packages/django/db/__init__.py:60:
DeprecationWarning: Short names for ENGINE in database configurations
are deprecated. Prepend default.ENGINE with 'django.db.backends.'
DeprecationWarning
/usr/local/lib/python2.6/dist-packages/django/db/__init__.py:19:
DeprecationWarning: settings.DATABASE_* is deprecated; use
settings.DATABASES instead.
DeprecationWarning
/usr/local/lib/python2.6/dist-packages/django/db/__init__.py:60:
DeprecationWarning: Short names for ENGINE in database configurations
are deprecated. Prepend default.ENGINE with 'django.db.backends.'
DeprecationWarning
Validating models...

0 errors found
Django version 1.3, using settings 'shop.settings'
Development server is running at http://127.0.0.1:8000/
Quit the server with CONTROL-C.


zodman

unread,
May 19, 2011, 6:32:46 PM5/19/11
to djang...@googlegroups.com
django works with django 1.1 and not with django1.3

> --
> 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.
>
>

--
Andres Vargas
www.zodman.com.mx

Matuschek

unread,
May 19, 2011, 6:50:22 PM5/19/11
to djang...@googlegroups.com
On Thu, 19 May 2011 14:36:31 -0700 (PDT)
podio <ven...@podiodeportes.com.ar> wrote:

> but when I copy
> and move it to another directory and run

Wouldn't it be easier to install it to the directory where you want to
use it in the first place.


> /usr/local/lib/python2.6/dist-packages/django/db/__init__.py:19:

> Django version 1.3, using settings 'shop.settings'

You are not using the version of Django installed by the LFS
buildout. LFS isn't currently compatible with Django 1.3.

For development (or production use) I would suggest you make use of the
structure created by the buildout - it will save you a lot of bother.

http://packages.python.org/django-lfs/introduction/installation.html

Regards,
M.

podio

unread,
May 19, 2011, 7:09:20 PM5/19/11
to django-lfs
I want to put it on apache2, I have to downgrade my django version

Matuschek

unread,
May 20, 2011, 6:34:39 AM5/20/11
to djang...@googlegroups.com
On Thu, 19 May 2011 16:09:20 -0700 (PDT)
podio <ven...@podiodeportes.com.ar> wrote:

> I want to put it on apache2, I have to downgrade my django version

No, you don't.

You can have multiple Django versions running each in their own
virtualenv. You then create separate Apache VirtualHosts pointing to
your individual apps.

I would recommend you follow the LFS install document and get a
development version running first before attempting integration with
Apache.

Regards,
M.

podio

unread,
May 20, 2011, 9:09:59 AM5/20/11
to django-lfs
I already have the devolopment version running, modified the template,
css, add categories, products, I now wanted to put that on the apache2
server, to test it.

Thanks

Matuschek

unread,
May 20, 2011, 1:46:06 PM5/20/11
to djang...@googlegroups.com
On Fri, 20 May 2011 06:09:59 -0700 (PDT)
podio <ven...@podiodeportes.com.ar> wrote:

> I now wanted to put that on the apache2
> server, to test it.

There are lots of ways to deploy the LFS shop. One way is to have
Gunicorn run the shop (you need to edit
lfs-installer/bin/django-gunicorn.sh to suit your needs). Then run
Gunicorn using this same script bin/django-gunicorn.sh.

Then use either a rewrite rule or ProxyPass from your Apache
VirtualHost to the Gunicorn server. Simple example:

ProxyPass / http://localhost:8000
ProxyPassReverse / http://localhost:8000


Regards,
M.

Reply all
Reply to author
Forward
0 new messages