django-mptt

2014-08-07 Thread Akshay Mukadam
Is there any way that I can install django-mptt for django 1.4. Currently django-mptt is available for django1.4.2. But I require it for my old project which is based onn django 1.4 Please help Thank you -- You received this message because you are subscribed to the Google Groups "Django users

Re: Atomic request

2014-08-07 Thread Akshay Mukadam
Thanks it worked -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@goo

Re: admin site not available after modifying base_site.html

2014-08-07 Thread Lee
You shouldn't need to run runserver.py directly. You should change into your project directory (where manage.py lives) and use: python manage.py runserver On Thursday, 7 August 2014 03:10:44 UTC+1, Eric G wrote: > > Yeah, I tried running the runserver.py script from the django-trunk file, > an

Re: How to cache a dynamic web page in django

2014-08-07 Thread Avraham Serour
you can use http headers to cache the whole page On Thu, Aug 7, 2014 at 9:22 AM, Chen Xu wrote: > Hi Everyone, > I have a dynamic page which generates some data from the database, but the > content in the database might be the same for everyone or for a long time, > so I wonder what is the best

Re: How to cache a dynamic web page in django

2014-08-07 Thread Erik Cederstrand
Den 07/08/2014 kl. 08.22 skrev Chen Xu : > Hi Everyone, > I have a dynamic page which generates some data from the database, but the > content in the database might be the same for everyone or for a long time, so > I wonder what is the best way to cache the page so that it won't be talking > to

Re: admin site not available after modifying base_site.html

2014-08-07 Thread Collin Anderson
seems to me it should be 'myproject.settings' instead of 'myproject.settings.admin'. what does it say in manage.py? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email

Re: django-mptt

2014-08-07 Thread Collin Anderson
It should be pretty easy to upgrade your project from 1.4 to 1.4.2, as not much changed between those versions. On Thursday, August 7, 2014 3:38:15 AM UTC-4, Akshay Mukadam wrote: > > Is there any way that I can install django-mptt for django 1.4. > Currently django-mptt is available for django1.

Re: How to cache a dynamic web page in django

2014-08-07 Thread Collin Anderson
> > a) Find a cheap way of detecting data changes by looking at e.g. a > timestamp in the database. Then, render the page from scratch if there was > a change, or serve a cached version using the Django cache framework if > there was no change. You could, for example, have any change in the a

Re: How to cache a dynamic web page in django

2014-08-07 Thread Chen Xu
Actually, in my case, my dynamic page includes a template where the template is what I want to cache, can I just cache that template I want to include? Thanks On Thu, Aug 7, 2014 at 8:45 AM, Collin Anderson wrote: > a) Find a cheap way of detecting data changes by looking at e.g. a >> timestam

Re: How to cache a dynamic web page in django

2014-08-07 Thread Collin Anderson
You can put {% cache %} template tags around the included template. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To

deploying djnago on apache

2014-08-07 Thread ngangsia akumbo
nano bluepearlhotel.wsgi import os import sys sys.path = ['/var/www/bluepearlhotel'] + sys.path os.environ['DJANGO_SETTINGS_MODULE'] = 'bluepearlhotel.settings' import django.core.handlers.wsgi application = django.core.handlers.wsgi.WSGIHandler() yems@yems /etc/apache2/sites-available $

Re: deploying djnago on apache

2014-08-07 Thread Collin Anderson
add: Require all granted -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this grou

Re: deploying djnago on apache

2014-08-07 Thread ngangsia akumbo
ahouls i add it like this GNU nano 2.2.6 File: bluepearlhotel.conf WSGIScriptAlias / /home/yems/bluepearlhotel.wsgi ServerName bluepearlhotel.com Alias /static /var/www/bluepearlhotel/static/ Order allow,deny Allow from all Require all granted

Re: deploying djnago on apache

2014-08-07 Thread Collin Anderson
yeah did that work? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@

Re: deploying djnago on apache

2014-08-07 Thread Collin Anderson
sorry, my bad, should be: not py -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to

multiple projects on same database

2014-08-07 Thread Héctor Urbina
Hello, I'm developing a django project for my office, a small project management system. I'm doing some tries to incorporate a third party document management system, namely mayan-edms, by making use of the same database, so that users maintain theirs credentials. Is that good practice?. Gree

Radio Fields with associated data

2014-08-07 Thread stony
So I have an issue here. I'm trying to render a form, a product form with associated credit card collection, etc. The problem is this: The client wants the product to be rendered like so: Choice item priceitem setup fee (can be edited) So I've got a series of products that are outpu

multiple projects on same database

2014-08-07 Thread Camilo Torres
Hello. You can use the same DB, but different schema or different user. You can also use the same schema as long as table names (and other objects names) din't match. I recomend to use diferent schemas for different web apps. Camilo. -- You received this message because you are subscribed to

Django POST Arrays

2014-08-07 Thread G Z
I'm doing some query and database stuff outside of what django is capable of and I need some help with how I get all the values of a POSTED Dictionary list. here is the POST values because im using a multiple select box that are send to django u'licenses': [u'26.0', u'16.0', u'13.0', u'166.0']

Re: Django POST Arrays

2014-08-07 Thread Tom Evans
On Thu, Aug 7, 2014 at 10:27 PM, G Z wrote: > I'm doing some query and database stuff outside of what django is capable of > and I need some help with how I get all the values of a POSTED Dictionary > list. > > here is the POST values because im using a multiple select box that are send > to djang

Re: Radio Fields with associated data

2014-08-07 Thread Collin Anderson
If nothing else, you can use a form in the view for validation, but still render the radio inputs completely manually. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an ema

Problem with profile picture and mysql ( URGENT !!!)

2014-08-07 Thread Swathi Rajanna
My app does not use south as it keeps me django.core.management Improperly configured error. hence I have to syncdb everytime. I wanted to add the image element to the user profile models.py already created. This gives me a unknown element image in fieldlist error, How can I fix this ? p.s. I a