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 already tried creating a new app, differnet class in models.py. none 
of them are working.
Thanks !!

-- 
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@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/c3dc3562-3f35-46e9-9702-c80c27e3b85c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/d34504e0-cf9d-48e5-9e1d-e7ab0d38fb75%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 django
> u'licenses': [u'26.0', u'16.0', u'13.0', u'166.0'],
>
> I need to insert these licenses for the vm that was selected. Thus, I need
> to be able to get at each one and save into a list.
> However all I can seem to get to is the very last one. This has something to
> do with the way django is parsing the information.
>
> So here is my code:
> I've tried teh following:
>
>> selected_lic.append(selected_customer['licenses'])
>
>
> This will output the following
> [u'166.0']
>
>> for license in selected_customer['licenses']:
>>   selected_lic.append(license)
>
> This will out put the following
> [u'1','6','6','.','0']
>
> Why can't i get to the rest of the data? Why does it only take the last
> value. Even if I just set a var to the selected post value it will only take
> the last one.
>
> [u'166.0']
>

QueryDict objects do not work like that, if you simply index the
QueryDict by keyname, and the key refers to a list of values, then the
last value in the list is returned. It is a string, and you are then
iterating through that character by character.

https://docs.djangoproject.com/en/1.6/ref/request-response/#django.http.QueryDict.__getitem__

Use QueryDict.getlist() instead:

https://docs.djangoproject.com/en/1.6/ref/request-response/#django.http.QueryDict.getlist

Cheers

Tom

-- 
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@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAFHbX1Ldqjg_aPu%2B6HLrwJc8tPFiueuQvKGrzk-qhEd6ByzrdQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


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'],

I need to insert these licenses for the vm that was selected. Thus, I need 
to be able to get at each one and save into a list. 
However all I can seem to get to is the very last one. This has something 
to do with the way django is parsing the information.

So here is my code:
I've tried teh following:

selected_lic.append(selected_customer['licenses'])

 
This will output the following 
[u'166.0']

for license in selected_customer['licenses']:
>   selected_lic.append(license)

This will out put the following
[u'1','6','6','.','0']

Why can't i get to the rest of the data? Why does it only take the last 
value. Even if I just set a var to the selected post value it will only 
take the last one.

[u'166.0']

-- 
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@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/0fbfd5e2-4f8b-49b3-81bc-61b6aef49465%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 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@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/a463b1a0-5596-4b42-92c7-853243d277c8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 output as a choice field using a 
radio widget.  How do I output the item price as well as a item setup fee 
for each line?  

My solution right now has been to almost ignore Django's forms and just do 
it manually--but that means I'm skipping Django's validation and having to 
do it manually, and trying to output initial values for all three fields on 
failed validation is baffling me.  

Current template snippet:  

> {% for radio in products %} 
>
> 
>  selectedProduct == radio.item %} checked="true" {% endif %}> {{ radio.item 
> }} 
> ${{ radio.price }}
> Setup Fee:  name="setup-{{ 
> radio.item }}" value="{{ radio.setup_fee }}">
> 
> {% endfor %} 
>
>
View Code (slightly edited)
category = Product.objects.filter(category__name="bubba")
products = ProductItem.objects.filter(product=category)
products = products.order_by('pk')
selectedProduct = False
if request.method == 'POST':  # If the form has been submitted...

bubba = bubbaForm(request.POST)
payment = PaymentForm(request.POST)  # A form bound to the POST data
if 'product' in request.POST:
validProduct = True
selectedProduct = request.POST['product']
else:
validProduct = False
# print bubba
print request.POST
# All validation rules pass
if bubba.is_valid() and payment.is_valid() and validProduct:
# Process the data in form.cleaned_data
# print "in post"
from datetime import date
from django.template.defaultfilters import slugify
cart = Cart()
cart.client_email = bubba.cleaned_data['client_email']
cart.client_name = bubba.cleaned_data['client_name']
cart.client_phone = bubba.cleaned_data['client_phone']
cart.salesman = request.user
product = InvoiceItem()
setup = InvoiceItem()
item = ProductItem.objects.get(item=request.POST['product'])
product.item = item
product.price = item.price
product.description = "The product the client selected"
product.slug = slugify(product.item)
product.recurring = True
product.recurring_interval = "monthly"
product.recurring_start_date = date.today()


setupName = 'setup-' + request.POST['product']


setup.item = "Setup Fee"
setup.price = Decimal(request.POST[setupName])  # item.setup_fee
setup.description = "Setup Fee"
setup.slug = "setup-fee"
setup.recurring = False


cart.order_total = product.price + setup.price


# print bubba.cleaned_data
ccData = dict(bubba.cleaned_data.items() + payment.cleaned_data.
items())
ccData['product'] = request.POST['product']
ccData['price'] = item.price
ccData['setup_fee'] = setup.price
print ccData
processCC(request, ccData)

# this code relies on responses from processCC:
if request.session.get('transaction_status') != "Approved":
return HttpResponseRedirect('/sales/bubba/error/')
else:
return HttpResponseRedirect('/sales/bubba/thanks/')  # 
Redirect after POST
else:  # we didn't pass validation, so we need to rebind products
pass
else:
bubba = bubbaForm()  # An unbound form
payment = PaymentForm()


data = {'bubba': bubba, 'payment': payment, 'products': products,
'selectedProduct': selectedProduct}
# print 'selectedProduct' + str(selectedProduct)


return render(request, "sales/salesCart.html", data)

-- 
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@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/b6c86088-76cb-4d26-9357-a1686f3d3110%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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

Greetings,
Héctor.

-- 
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@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/998fbaf8-0dde-479b-931e-3ccd9bc71671%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAFO84S5-XyiShN5KA0Tge%2B%3D%3DJtAw3DLZNXN7UFsyt5Q%2B7KosCQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


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@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAFO84S44qHXaykgHZpH%3Dh_07wybhZLPNtALydtJwv-rAO7aedQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


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






On Thursday, August 7, 2014 7:14:46 PM UTC+1, Collin Anderson wrote:
>
> 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 group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/05bd51fe-c778-455f-88e9-3a66d5920790%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAFO84S7X7b3N%2BaS0Ss57k5f8Ug87W3SvKHcdZ2JVfURwYY7-3A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


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 $ 




WSGIScriptAlias / /home/yems/bluepearlhotel.wsgi

ServerName  bluepearlhotel.com

Alias /static /var/www/bluepearlhotel/static/


Order allow,deny
Allow from all



i created the project 


so when i type bluepearlhotel.com

it gives me this error

Forbidden

You don't have permission to access / on this server.
Apache/2.4.7 (Ubuntu) Server at bluepearlhotel.com Port 80





-- 
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@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/93622b41-afdf-4ee1-8265-12290fbc2e83%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/edfa0121-5e5b-4884-bf16-4dab5fbf9090%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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
>> 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 admin clear the cache
>
> b) Put the fully rendered page in cache server-side using the Django cache
>> framework (or Varnish), and add a hook into the code that updates the
>> database, which invalidates the cache on updates. You can either update the
>> cache eagerly (force a cache insertion after the invalidation) or lazily
>> (when a user requests the page), depending on your needs.
>
> I personally use nginx's proxy_cache for this.
>
> --
> 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@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/750fc613-0e7e-4917-ba3f-2753aab01d04%40googlegroups.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
⚡ Chen Xu ⚡

-- 
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@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CACac-qYYW5T%3D%2BGmukeeivUp1YTCVsAYfvRacu2iEkh3kGWNJrg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


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 admin clear the cache

b) Put the fully rendered page in cache server-side using the Django cache 
> framework (or Varnish), and add a hook into the code that updates the 
> database, which invalidates the cache on updates. You can either update the 
> cache eagerly (force a cache insertion after the invalidation) or lazily 
> (when a user requests the page), depending on your needs. 

I personally use nginx's proxy_cache for this.

-- 
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@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/750fc613-0e7e-4917-ba3f-2753aab01d04%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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.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" 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@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/6b28a67b-64e9-4420-835e-11d0d8daf523%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAFO84S4txU0fsRtcH4cAn6BTQGY575yvb1bwnfiDU%3DYy3dXfuA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


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 the database every time?

The answer depends on what kind of changes to the data you will encounter. You 
can cache either client-side or server-side.

If you know in advance when the next update is, or that it at least won't 
change (or you can accept serving stale data) for the next x seconds (hours, 
days, weeks), then you can use standard HTTP cache headers to tell the client 
to cache the content locally.

If you don't know when the next change is, then you can do one of two things;

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.

b) Put the fully rendered page in cache server-side using the Django cache 
framework (or Varnish), and add a hook into the code that updates the database, 
which invalidates the cache on updates. You can either update the cache eagerly 
(force a cache insertion after the invalidation) or lazily (when a user 
requests the page), depending on your needs.


The performance gain will naturally depend on the rate of database updates vs. 
page requests.


Erik

-- 
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@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/F80EBD91-56AC-4AC4-8824-2D423E41C8C0%40cederstrand.dk.
For more options, visit https://groups.google.com/d/optout.


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 way to cache the page so that it won't be
> talking to the database every time?
>
>
> Thanks
>
>
>
> --
> ⚡ Chen Xu ⚡
>
> --
> 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@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CACac-qZUVO289z3Z9s7DziMOhbwYES_Jtv_7tpjH8xMp9-oEEw%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAFWa6tJJhDxr9MDv6LO5bcOs9HnKLiJa0y4nwBprijzO_LgEiw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


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, 
> and the error message was:
>
> ImportError: Could not import settings 'myproject.settings.admin' (Is it 
> on sys.path? Is there an import error in the settings file?): No module 
> named myproject.settings.admin
>
> On Wednesday, August 6, 2014 5:41:55 PM UTC-7, Collin Anderson wrote:
>>
>> Is there an error message on the runserver console? Or is it possible to 
>> start a new one?
>>
>

-- 
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@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/d896def0-9228-4dd8-80c1-e2804a26889f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/c47a7c49-6eeb-4e57-b2f0-0e651d1db946%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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" 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@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/d3f7267a-813d-4e82-9233-144e3d74f27c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


How to cache a dynamic web page in django

2014-08-07 Thread 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 the database every time?


Thanks



-- 
⚡ Chen Xu ⚡

-- 
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@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CACac-qZUVO289z3Z9s7DziMOhbwYES_Jtv_7tpjH8xMp9-oEEw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.