Re: How to pass a value from a Django View to a JQuery Slider bar.

2013-03-06 Thread 7equivalents
Now that I have that part working, I would like to make since of what was 
going on and why it didn't work in the first place. I have a question...

Let's say
(1) a page is requested, and the View renders_to_response  a template
(2) this template uses a {% include 'second_template.html' %}

Does the second_templates View get executed or does the Html just get added?


-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: How to pass a value from a Django View to a JQuery Slider bar.

2013-03-06 Thread 7equivalents
 Hey, Thanks alot I tried to do that before and it didn't work(the 
slider bar disappeared) and on your suggestion tried again, still didn't 
work, however since you suggested it, I knew it had to be the right track, 
so I got rid of the variable in the Javascript and the slider bar came 
back, so from there I played with the the variables in the Views and got it 
to work.

So thank you so much for the help 

I am trying to implement control of GPIO pins and UART modules on a 
Raspberry Pi via a web interface.

Here's a short youtube video of my App and hardware, Thanks again!

http://www.youtube.com/watch?v=ebkxEL30bno

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




queryset minimization

2013-03-06 Thread Fatih Tiryakioglu
Hi all,

Is there any shortcut (minimum db hit) for the following querysets:

p = Person.objects.get(mail="pers...@ex.com")
p.password & form.password comparison and it is ok.

#reversing to the person's groupregisteration, for example:
reg = p.groupregistration_set.all() #groupregistratin model is simply 
person (foreign key) and group (foreign key)

#evaluating group of reg list.
g = reg.group (for the every member of reg list)

#and finally group name
n = g.name (for the every member of g list)

Which queryset or querysets hits the db, and how can I minimize it.



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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: reverse foreign key relationship usage

2013-03-06 Thread Fatih Tiryakioglu
Thank you Robert, I got it.


--


6 Mart 2013 Çarşamba 12:06:06 UTC+2 tarihinde Roberto López López yazdı:
>
>
> Hi Fatih, 
>
> This is extremely useful in case you have two different relations 
> between the same model. As a rough example, consider the two following 
> models: 
>
> class Person(models.Model): 
> name = models.CharField(max_length=30) 
>
> class Car(models.Model): 
> model = models.CharField(max_length=20) 
> owner = models.OneToOne(Person, related_name='owned_car') 
> users = models.ForeignKey(Person, related_name='used_car') 
>
> In case of not having a different related_name for each of those two 
> relations, you wouldn't be able to get the person's car or the car this 
> person uses. (This person may own a car but use his company car, or a 
> friend's, a rental one...) 
>
>
>
>
>
> On 03/06/2013 08:30 AM, Fatih Tiryakioglu wrote: 
> > Hello all, 
> > 
> > In Appendix B:Database API, it says "related_name (keyword) is 
> > particularly useful if a model has two foreign keys to the same second 
> > model." which is about 'related_name' keyword used reverse foreign key 
> > relationships. 
> > e.g. blog = ForeignKey(Blog, related_name='entries'). 
> > 
> > What does it mean? Where should I use related_name instead of simply 
> > reversing by "x_set" keyword. 
> > 
> > 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...@googlegroups.com . 
> > To post to this group, send email to 
> > django...@googlegroups.com. 
>
> > Visit this group at http://groups.google.com/group/django-users?hl=en. 
> > For more options, visit https://groups.google.com/groups/opt_out. 
> >   
> >   
>
>
> -- 
> Kind regards, 
>
> Roberto L�pez L�pez 
>
>
> System Developer 
> Parallab, Uni Computing 
> H�yteknologisenteret, Thorm�hlensgate 55 
> N-5008 Bergen, Norway 
> Tel:(+47) 555 84091 
>

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: dynamic form fields in admin?

2013-03-06 Thread galgal
Hm, but you use 1 Form in save method. I need to show/hide/change Form 
while generating change view.
save() method is just to late for me.

On Thursday, March 7, 2013 1:51:36 AM UTC+1, Bulkan-Savun Evcimen wrote:
>
> Hi,
>
> I've done something similar just recently where I generate a "key" field 
> in a ModelAdmin to display in django admin. 
>  
>
>> from django  import forms
>> from django.contrib import admin
>
>  
>
> class MyForm(forms.ModelForm):
>> key = forms.CharField(max_length=256)
>> def __init__(self, *args, **kwargs):
>> super(MyForm, self).__init__(*args, **kwargs)
>> self.fields['key'].initial = self.instance.key
>>
>> class MyModelAdmin(admin.ModelAdmin):
>>  form = MyForm
>>  def save(self, request, obj, form, change):
>>   # save
>>   if "key" in self.form.cleaned_data:
>> del self.form.cleaned_data['key']
>>   super(MyModelAdmin, self).__init__(request, obj, form, change)
>> admin.site.register(MyModel, MyModelAdmin)
>
>
>
> In the save method of MyModelAdmin you can do your logic that you have 
> mentioned. 
>
> Hope that helps
>
>
> http://bulkan-evcimen.com
>
>
> On Thu, Mar 7, 2013 at 3:43 AM, galgal  > wrote:
>
>> I want to make some advanced customization of admin form.
>>
>> While editing an object, I want to show, dynamically, different fields 
>> depending of 1 obj field (they are not visible while adding the obj.). 
>> There can be a situation, to validate that extra fields. For example, when 
>> object has a 'temporary' type, I must show 2 fields with dates, and 
>> validate them. If object is 'renewable' I need to show 2 different fields 
>> with different validation.
>>
>> What is the best approach to do that?
>>
>>- Make separate Form for each object type and set form attrib of 
>>ModelAdmin? If yes, in whichModelAdmin method do that (change_view()
>>?)? 
>>- Dynamically update 
>> fields
>> in get_form() method? 
>>
>> What is the best approach to do that?
>>  
>> -- 
>> 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...@googlegroups.com .
>> To post to this group, send email to django...@googlegroups.com
>> .
>> Visit this group at http://groups.google.com/group/django-users?hl=en.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>  
>>  
>>
>
>

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: error- IntegrityError at /register/

2013-03-06 Thread Avnesh Shakya
thanks i got it
regards,
Avnesh shakya

On Thu, Mar 7, 2013 at 10:09 AM, Avnesh Shakya wrote:

> hi i have got error- IntegrityError at /register/
>
> lrntkr_student.contact_no may not be NULL
>
> ,when i was trying to input data through html page(register.html), but
> data is not updating in database and generating that error. please help me
> i m unable to find this error.
>
> 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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




error- IntegrityError at /register/

2013-03-06 Thread Avnesh Shakya
hi i have got error- IntegrityError at /register/

lrntkr_student.contact_no may not be NULL

,when i was trying to input data through html page(register.html), but data
is not updating in database and generating that error. please help me i m
unable to find this error.

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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


{%extends "homepage/index.html"%}
{%block title%}
 Login
{%endblock%}

{%block content%}
	
{% if not success %}

Registration
		
			
Name:
			
			

{% if name_error == "" %}
 Name will contain first name and last name character.
{% else %}
	{{ name_error }}
{% endif %}
			
		
		
			
Email id:
			
			

{% if emailid_error == "" %}
 Example : u...@mail.com
{% else %}
 {{ emailid_error }}
{% endif %}
			
		
	   		
			
User Name:
			
			

{% if username_error == "" %}
 User name contain 6-8 letter combination of alphabet and digit no special character.
{% else %}
	{{ username_error }}
{% endif %}
			
		
		
			
Password:
			
			

{% if password_error == "" %}
Password Must contain 8-15 Character.
{% else %}
 {{ password_error }}
{% endif %}
			
		
		
			
Re-password:
			
			

{% if rpassword_error == "" %}
password is not matching
{% else %}
 {{ rpassword_error }}
{% endif %}
			
		
	
	
		
Date Of Birth:
		
		
		
			Month
			1
			2
			3
			4
			5
			6
			7
			8
			9
			10
			11
			12
		

		
			Day
			1
			2
			3
			4
			5
			6
			7
			8
			9
			10
			11
			12
			13
			14
			15
			16
			17
			18	
			19
			20
			21
			22
			23
			24
			25
			26
			27
			28
			29
			30
			31
		
	
		
			Year
			2009
			2008
2007
2006
2005
2004
2003
2002
2001
2000
1999
1998
1997
1996
1995
1994
1993
1992
1991
1990
1989
1988
1987
1986
1985
1984
1983
1982
1981
1980
1979
1978
1977
1976
1975
1974
1973
1972
1971
1970
1969
1968
1967
1966
1965
1964
1963
1962
1961
1960
1959
1958
1957
1956
1955
1954
1953
1952
1951
1950
1949
1948
1947
1946
1945
1944
1943
1942
1941
1940
1939
1938
1937
1936
1935
1934
1933
1932
1931
1930
1929
1928
1927
1926
1925
1924
1923
1922
1921
1920
1919
1918
1917
1916
1915
1914
1913
1912
1911
1910
1909


	
	

		
			Gender:
		
		
		Male
Female
		
	
 
 
		
			Address:
		
		
		
		{% if address_error == "" %}
need correct address
{% else %}
 {{ address_error }}
{% endif %}
		
	
	
	
		
			Contact no.:
		
		

		{% if contact_error == "" %}
take only 11 digit
{% else %}
 {{ contact_error }}
{% endif %}
		
	
	
	
  

	
	
	
  
{% else %}
Hi Thank you for your Registraton.
{% endif %}

{%endblock%}

models.py
Description: Binary data


views.py
Description: Binary data


Re: Django + Raspberry PI

2013-03-06 Thread Tim Chase
On 2013-03-06 18:43, dgregor...@gmail.com wrote:
> I am developing a pinewood derby race manager to run on Django on
> the RPi. I am using sqlite.

With an intro sentence like that and the lilliputian dimensions of the
RPI, I half expected you to say that you ran it *on the pinewood
derby race car itself*. :-)

-tkc



-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Django + Raspberry PI

2013-03-06 Thread dgregory46
I am developing a pinewood derby race manager to run on Django on the RPi. 
I am using sqlite.

It is show-stopping slow if I browse to it locally, so I use my desktop 
system for testing. I also set it up to export the files so I can do all of 
my editing on my main system. I log out of raspbian and do everything via 
ssh. When I do that it is quite quick.

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Django with FastCGI doesn't works

2013-03-06 Thread Tim Johnson
* Stephan Hassenpflug  [130306 11:45]:
> Hi,
> 
> I have the same problem, but I can not see what to change.
> I can not change the setup of apache as described.
  Me too (similarly)
  I kind of feel like fastcgi and shared hosting environments
  have been abandoned by django (or never _really_ supported).
  See my ticket at 

  https://code.djangoproject.com/ticket/19970

  and the reference at that page to another ticket.  I haven't got
  the time right now to pursue this further as I have failed (thus
  far) as well. However, I am going to give it another try, when my
  work slacks off because I think there are additional directives
  necessary for .htaccess. If I can get django working with fastcgi
  on hostmonster, I will post the .htaccess file to this ML.

> Am Samstag, 25. Juni 2011 18:01:06 UTC+2 schrieb bruno desthuilliers:
> >
> > On Jun 25, 10:24 am, geonomos  wrote: 
> > > Hi, 
> > > I'm new in django frameworck and I'm tring to develop a simple 
> > application. 
> > > I've a free account in alwaysdata and I've follow instruction in 
> > > "https://docs.djangoproject.com/en/dev/howto/deployment/fastcgi/?from=...;
> > >  
> >
> > > but if I point with the browser to the  application's url I see only the 
> > > content of django.fcgi: 
> >
> > Apache configuration problem. 
> >
> > https://docs.djangoproject.com/en/dev/howto/deployment/fastcgi/#apache-setup
> 
> -- 
> 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?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
> 
> 

-- 
Tim 
tim at tee jay forty nine dot com or akwebsoft dot com
http://www.akwebsoft.com

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: dynamic form fields in admin?

2013-03-06 Thread Bulkan
Hi,

I've done something similar just recently where I generate a "key" field in
a ModelAdmin to display in django admin.


> from django  import forms
> from django.contrib import admin



class MyForm(forms.ModelForm):
> key = forms.CharField(max_length=256)
> def __init__(self, *args, **kwargs):
> super(MyForm, self).__init__(*args, **kwargs)
> self.fields['key'].initial = self.instance.key
>
> class MyModelAdmin(admin.ModelAdmin):
>  form = MyForm
>  def save(self, request, obj, form, change):
>   # save
>   if "key" in self.form.cleaned_data:
> del self.form.cleaned_data['key']
>   super(MyModelAdmin, self).__init__(request, obj, form, change)
> admin.site.register(MyModel, MyModelAdmin)



In the save method of MyModelAdmin you can do your logic that you have
mentioned.

Hope that helps


http://bulkan-evcimen.com


On Thu, Mar 7, 2013 at 3:43 AM, galgal  wrote:

> I want to make some advanced customization of admin form.
>
> While editing an object, I want to show, dynamically, different fields
> depending of 1 obj field (they are not visible while adding the obj.).
> There can be a situation, to validate that extra fields. For example, when
> object has a 'temporary' type, I must show 2 fields with dates, and
> validate them. If object is 'renewable' I need to show 2 different fields
> with different validation.
>
> What is the best approach to do that?
>
>- Make separate Form for each object type and set form attrib of
>ModelAdmin? If yes, in whichModelAdmin method do that (change_view()?)?
>- Dynamically update 
> fields
> in get_form() method?
>
> What is the best approach to do that?
>
> --
> 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?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: TemporaryFileUploadHandler leaving tempfiles behind on disk

2013-03-06 Thread Scott White
After experimenting the only way I could reliably detect and delete the 
stuck temp files is a bit of a hack to implement a post_save signal to 
delete the file, but I have to attach an attribute to the model object 
being saved to determine the name of the file in /tmp.

def save(self, *args, **kwargs):
if hasattr(self.sample_file.file, 'temporary_file_path'):
# A hack to avoid accumulating temp files in /tmp
# Done before parent save() or else the FileField file is no longer 
a TemporaryUploadFile
self.temp_file_path = self.sample_file.file.temporary_file_path()
super(Sample, self).save(*args, **kwargs)

# Crazy hack ahead...needed for some weird behaviour where temp upload 
files are getting stuck in /tmp
def remove_temp_sample_file(sender, **kwargs):
obj = kwargs['instance']
if hasattr(obj, 'temp_file_path'):
os.unlink(obj.temp_file_path)

# connect crazy hack to post_save
post_save.connect(remove_temp_sample_file, sender=Sample)


This is working for now, but I'd really like to know why sometimes the temp 
file gets stuck and sometimes it gets removed.

Thanks,
Scott

On Wednesday, March 6, 2013 1:53:09 PM UTC-5, Scott White wrote:
>
> I'm seeing this same issue with a slight twist...
>
> When uploading a files >2.5MB via a regular Django view or the Django 
> Admin, the file uploads and the temp copy in /tmp is removed. When I upload 
> using django-rest-framework via POST, the file uploads but the temporary 
> copy remains in /tmp. I posted on the django-rest-framework but I'm not 
> sure the issue is in the framework. Here's that post with some more info:
>
>
> https://groups.google.com/forum/?fromgroups=#!topic/django-rest-framework/AdfJuZ6ay-0
>
> Hopefully someone can clarify how the Django code is working, because I've 
> seen some odd behaviour. Quoting the Django relevant info from the above 
> post:
>
> Also, there's something in the Django code I do not understand. The only 
>> place I've found where the temporary file is moved to it's final location 
>> is within django/core/files/storage.py. This is in 
>> FileSystemStorage._save():
>> # This file has a file path that we can move.
>> if hasattr(content, 'temporary_file_path'):
>> file_move_safe(content.temporary_file_path(), 
>> full_path)
>> content.close()
>> When I set a breakdance point on the file_move_safe method call, it never 
>> gets triggered even when Django removes the temp file successfully using 
>> the ModelForm regular view. Eeks! If I set the break point on the if 
>> statement, code execution stops. Then I can see the 'temporary_file_path' 
>> attribute is not present, explaining why the method wasn't called, but not 
>> why the file was removed. Double-eeks! Even stranger is that just by 
>> setting the break point on the if statement, the temp file gets stuck in 
>> /tmp using the ModelForm based method...have I found a true Heisenbug? I 
>> digress, this part is more a question for django-users, and I plan on 
>> posting there so I have a better understanding of what is happening.
>
>
> I'm overriding clean() in my model to do some extra validation, and I can 
> see the TemporaryUploadedFile within clean and it is open. However, if I 
> try to close the file at the end of clean I get a Value Error stating "I/O 
> operation on closed file". So I tried overriding the save method to call 
> the parent save and then hopefully close or delete the temp file, but the 
> FileField.file is no longer the temp version there.
>
> Any ideas?
>
> It was mentioned to write a custom file upload handler, but I'm a little 
> unclear on how to do this or whether I could safely delete the temp file 
> from there. 
>
> Thanks,
> Scott
>
> On Monday, March 4, 2013 12:12:00 PM UTC-5, msoulier wrote:
>>
>> On 04/03/13 Emiliano Dalla Verde Marcozzi said: 
>>
>> > method from my own class that subclass TemporaryFileUploadHandler and 
>> do 
>> > something like: 
>>
>> Yeah, I'm doing that, but it seems odd to me that the handler leaves the 
>> file 
>> around, when it's supposed to be temporary, no? 
>>
>> Mike 
>>
>

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: empty static_url

2013-03-06 Thread Phil
Hi Tom,

Thanks a million for the reply, you helped solve my issue.

Technically speaking, if that is your template, and you end up with 
"/css/style.css", then STATIC_URL is not empty, it is '/'. 

Yeah sorry, I should have just had "css/style.css" as I wasn't even getting 
the forward slash.

Yes thats correct, 1 project with 3 apps etc. I just changed the last line 
in my view(that wasn't working, not the 2 generic view ones) from...

return render_to_response('sales/index.html', {'sales_list': sales_list})

to...

return render_to_response('sales/index.html', {'sales_list': 
sales_list},context_instance=RequestContext(request))

and that did the job. Thanks again.





On Monday, March 4, 2013 2:33:50 PM UTC, Tom Evans wrote:
>
> On Sat, Mar 2, 2013 at 4:47 PM, Phil  
> wrote: 
> > Hi, 
> > 
> > I'm using django1.4.3 
> > 
> > I have a django project with 3 apps. All 3 apps templates extend 
> 'app.html'. 
> > On 2 of my projects the CSS loads fine, but on third one the CSS doesn't 
> get 
> > loaded because it's not adding '/static/' to the url to the CSS. So 
> instead 
> > of '/static/css/style.css' I'm getting '/css/style.css' ... 
> > 
> >  
>
> Technically speaking, if that is your template, and you end up with 
> "/css/style.css", then STATIC_URL is not empty, it is '/'. 
>
> > 
> > STATIC_URL is working on the 2 projects that use generic views, but not 
> on 
> > the other one. So how can 'STATIC_URL' be blank and how can this be 
> fixed? I 
> > tried adding the following to my index.html template but no joy... 
> > 
> > {% load static %} 
> > {% get_static_prefix as STATIC_PREFIX %} 
> > 
>
> To clarify - you only have one project, with three apps in it. In two 
> of the apps, which only use generic views, STATIC_URL works correctly, 
> but in third app it does not. 
>
> Do these views in the third app use RequestContext to render the 
> templates? Generic views do… 
>
> 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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Changing SECRET_KEY for a project that was already launched

2013-03-06 Thread Shawn Milochik
Are you using it as the key for any encrypted fields, or anything
other than the built-in stuff Django does with session cookies?

If not, I don't think you'll have a problem. Of course, back up your
database first as a precaution, and use version control on your code
so you can revert if necessary.

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Changing SECRET_KEY for a project that was already launched

2013-03-06 Thread cool-RR
Hi guys,

I have a project online whose SECRET_KEY was compromised. I obviously want 
to change it. Would anything bad happen if I change it? Would some things 
not work? Is it safe to just change it? Anything I should do?


Thanks,
Ram.

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Django with FastCGI doesn't works

2013-03-06 Thread Stephan Hassenpflug
Hi,

I have the same problem, but I can not see what to change.
I can not change the setup of apache as described.

Am Samstag, 25. Juni 2011 18:01:06 UTC+2 schrieb bruno desthuilliers:
>
> On Jun 25, 10:24 am, geonomos  wrote: 
> > Hi, 
> > I'm new in django frameworck and I'm tring to develop a simple 
> application. 
> > I've a free account in alwaysdata and I've follow instruction in 
> > "https://docs.djangoproject.com/en/dev/howto/deployment/fastcgi/?from=...; 
>
> > but if I point with the browser to the  application's url I see only the 
> > content of django.fcgi: 
>
> Apache configuration problem. 
>
> https://docs.djangoproject.com/en/dev/howto/deployment/fastcgi/#apache-setup

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: TemporaryFileUploadHandler leaving tempfiles behind on disk

2013-03-06 Thread Scott White
I'm seeing this same issue with a slight twist...

When uploading a files >2.5MB via a regular Django view or the Django 
Admin, the file uploads and the temp copy in /tmp is removed. When I upload 
using django-rest-framework via POST, the file uploads but the temporary 
copy remains in /tmp. I posted on the django-rest-framework but I'm not 
sure the issue is in the framework. Here's that post with some more info:

https://groups.google.com/forum/?fromgroups=#!topic/django-rest-framework/AdfJuZ6ay-0

Hopefully someone can clarify how the Django code is working, because I've 
seen some odd behaviour. Quoting the Django relevant info from the above 
post:

Also, there's something in the Django code I do not understand. The only 
> place I've found where the temporary file is moved to it's final location 
> is within django/core/files/storage.py. This is in 
> FileSystemStorage._save():
> # This file has a file path that we can move.
> if hasattr(content, 'temporary_file_path'):
> file_move_safe(content.temporary_file_path(), 
> full_path)
> content.close()
> When I set a breakdance point on the file_move_safe method call, it never 
> gets triggered even when Django removes the temp file successfully using 
> the ModelForm regular view. Eeks! If I set the break point on the if 
> statement, code execution stops. Then I can see the 'temporary_file_path' 
> attribute is not present, explaining why the method wasn't called, but not 
> why the file was removed. Double-eeks! Even stranger is that just by 
> setting the break point on the if statement, the temp file gets stuck in 
> /tmp using the ModelForm based method...have I found a true Heisenbug? I 
> digress, this part is more a question for django-users, and I plan on 
> posting there so I have a better understanding of what is happening.


I'm overriding clean() in my model to do some extra validation, and I can 
see the TemporaryUploadedFile within clean and it is open. However, if I 
try to close the file at the end of clean I get a Value Error stating "I/O 
operation on closed file". So I tried overriding the save method to call 
the parent save and then hopefully close or delete the temp file, but the 
FileField.file is no longer the temp version there.

Any ideas?

It was mentioned to write a custom file upload handler, but I'm a little 
unclear on how to do this or whether I could safely delete the temp file 
from there. 

Thanks,
Scott

On Monday, March 4, 2013 12:12:00 PM UTC-5, msoulier wrote:
>
> On 04/03/13 Emiliano Dalla Verde Marcozzi said: 
>
> > method from my own class that subclass TemporaryFileUploadHandler and do 
> > something like: 
>
> Yeah, I'm doing that, but it seems odd to me that the handler leaves the 
> file 
> around, when it's supposed to be temporary, no? 
>
> Mike 
>

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: How to customize Django Admin interface with custom urls and views?

2013-03-06 Thread Tomas Ehrlich
Hello John,
welcome in Django, hope you'll find it useful as I did.

Extend Django admin is a little bit tricky, but not impossible.

You can add your own views to admin simply by extending your ModelAdmin
subclass.
See
https://docs.djangoproject.com/en/1.5/ref/contrib/admin/#django.contrib.admin.ModelAdmin.get_urls
for more info.

It's good practice to name your url pattern according to django
standard, otherwise it can get messy.
See
https://docs.djangoproject.com/en/1.5/ref/contrib/admin/#reversing-admin-urls
where you can find how to reverse admin urls and get the idea about
naming conventions. It's not mandatory, though.

Basicaly, you always need to have *view* and define *url*. There's no
*generic* pattern, like /module/controller/action/, you have to define
everything by yourself.

You can also create your own Admin site, subclass it, replace it,
whatever you want. You can have more than one admin site running along,
both for different tasks. There's more info at
https://docs.djangoproject.com/en/1.5/ref/contrib/admin/#hooking-adminsite-instances-into-your-urlconf

Final note: Django *is* MVC framework, but instead of controllers,
there are view and insted of views, there are templates. It works the same 
though.
See
https://docs.djangoproject.com/en/dev/faq/general/#django-appears-to-be-a-mvc-framework-but-you-call-the-controller-the-view-and-the-view-the-template-how-come-you-don-t-use-the-standard-names
 
for more info.


Hope I answered your questions. If you need more information, feel free to ask.

Cheers,
  Tom


Dne Wed, 6 Mar 2013 08:36:06 -0800 (PST) John James
 napsal(a):

> Hi to all!
> 
> I'm completely new in Django. All I done is read one Introduction Book by 
> Adrian Holovaty. 
> When I finished I thought I knew enough to build even something simple, 
> because the book is real good and clear.
> 
> Maybe I could create something simple, but I wanna create my own 
> Administration interface with bunch of widgets, a lot of JS/AJAX nevermind.
> 
> Anyway, when I tried to create one link by click on which an AJAX request 
> should be sent to specific url. For example /admin/page/untouchData
> 
> I have the *Page* model, and I need to perform some action named 
> *untouchData. 
> *But I dont know where should I define untouchData method, neither
> how could I make the Django know about my specific URL *untouchData*, 
> because it's not the standard action, neither CRUD. 
> 
> For now I can't realize the concept of Django architecture, I mean MTV 
> seems. I came from Yii  PHP framework, it has MVC concept, so there I could
> create specific action in a Controller and all staff is done. Of course URL 
> routing exists there too, but it's quite simple.
> 
> I'm sure for Django it's not enough to create only one rule:
> *url(r'^admin/', include(admin.site.urls)),*
> 
> So guys, could you please tell me where to read about this? Because I can't 
> find an answer in three books and in Django Official Documentation too =(
> 
> Thanks for advice anyway.
> 

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: django-stdimage admin TemplateSyntaxError

2013-03-06 Thread Judy Ng
Hi Randa,

You can create a directory called stdimage in your TEMPLATE_DIR, and create 
a file called admin_widget with the following contents (or modify it 
according to your needs):



Currently: 

{{value}}



Change: 

{{ input }}


{% if show_delete_button %}

Delete: 




{% endif %}


Judy

On Wednesday, March 7, 2012 10:29:21 AM UTC-5, randa hisham wrote:
>
> i use django-stdimage package and when i display the object n the admin i 
> found this error
>
> Caught TemplateDoesNotExist while rendering: stdimage/admin_widget.html
>
>
> -- 
> Randa Hesham
> Software Developer
>
> Twitter:@ro0oraa 
> FaceBook:Randa Hisham 
>
> ٍ
>
> 

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Converting Django app into a Desktop app

2013-03-06 Thread Kevin London
Just to follow up on this, I wound up using py2app, although it made things
considerably more complicated. I made a Github repo during testing which
can be found here.  It's
incomplete as I moved from testing into using py2app on the intended
application, but it should at least provide some clues.

*Kevin London*
**Light Iron
6381 De Longpre Avenue
Los Angeles, CA 90028
t: 323-472-8300
c: 858-603-9037
www.lightiron.com


On Wed, Mar 6, 2013 at 12:30 AM, Loai Ghoraba  wrote:

> thanks a lot, I will look at them if I have time :)
>
>
> On Sat, Mar 2, 2013 at 3:00 AM, Czarek Tomczak 
> wrote:
>
>> Hi Loai,
>>
>> Have a look at CEF Python that embeds Chrome browser:
>> https://code.google.com/p/cefpython/
>> You will need to run a web server to convert it into a desktop
>> application, have a look
>> at CefBottleDesktop that 
>> embeds CEF and runs a python web server along with
>> bottle.py  framework.
>>
>> Also have a look at Python Desktop that embeds Internet Explorer browser
>> and
>> Mongoose web server:
>> https://code.google.com/p/phpdesktop/wiki/EmbeddingOtherScriptingLanguages
>>
>> I am the author of both projects.
>>
>> Cheers,
>> Czarek.
>>
>>
>> On Tuesday, December 18, 2012 8:06:19 AM UTC-8, Loai Ghoraba wrote:
>>
>>> Hi
>>>
>>> I am very comfortable with Django, and I was wondering about whether
>>> there is some way to convert a Django web app into a Desktop app (may be
>>> not 100%), so that I can distribute it to users. May be wrapping it in a
>>> light web server "if there is something like this".
>>>
>>> Thanks
>>>
>>  --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "Django users" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/django-users/-VGqvHew35g/unsubscribe?hl=en
>> .
>> To unsubscribe from this group and all its topics, 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?hl=en.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>
>
>  --
> You received this message because you are subscribed to a topic in the
> Google Groups "Django users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/django-users/-VGqvHew35g/unsubscribe?hl=en
> .
> To unsubscribe from this group and all its topics, 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?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
This e-mail is the property of LightIron Digital LLC. It is intended only 
for the person or entity to which it is addressed and may contain 
information that is privileged, confidential, or otherwise protected from 
disclosure. Distribution or copying of this e-mail, or the information 
contained herein, to anyone other than the intended recipient is prohibited.

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Extending the base file depending on User type

2013-03-06 Thread Sam Solomon
Tom Evans has probably the correct answer for you, but another thing that 
I've done (maybe not 100% applicable in this case) is to have a default 
base and then make it extendable from views when necessary:

{% extends base_template|default:"base.html" %}

This sounds like it isn't applicable in your case though since it sounds 
like you want the same logic on every page.

An addition to Tom's suggestion is making your own context manager to 
automatically insert the variable into all template contexts.

In some context_processors.py file somewhere in your project:
def base_template(request):
if not request.user.is_active:
return {"base_template": "base_noclient.html"}
if not request.user.is_staff:
return {"base_template": "base_client.html"}
return "base.html"
# I changed the ordering of your logic just because my tendency is to put 
the most common cases towards the top.

After you have that file you need to add it to your settings.py:
In TEMPLATE_CONTEXT_PROCESSORS = (

"project.app.path.context_processors.base_template", # make sure this 
is the actual path to the file.
)

Finally, make sure you use RequestContext instead of just context. The 
easiest way is to use `render` instead of render_to_response:

from django.shortcuts import render

def some_view(request):
return render(request, "path/to/template.html", {"view_context": ...}) 
# The "render(request" portion will automatically send the base_template 
variable into your template.

On Wednesday, March 6, 2013 2:43:10 AM UTC-8, Tom Evans wrote:
>
> On Tue, Mar 5, 2013 at 9:06 PM, Sandeep kaur 
>  
> wrote: 
> > I want to extend the base template file into the child file depending 
> > on the condition, like if the user is superuser or staff or active 
> > user, the file to extended should ll be different. 
> > For Eg : 
> > 
> > {% if user.is_superuser %} 
> > {% extends "base.html" %} 
> > {% else if user.is_active %} 
> > {% extends "base_client.html" %} 
> > {% else %} 
> > {% extends "base_noclient.html" %} 
> > 
> > 
> > However this code doesn't work. 
> > What should be done. Your help will be highly appreciated. 
> > Thank you. 
> > 
>
> {% extends %} can either take a string literal, or a variable. Move 
> the logic to decide which base template to use into your view, pass 
> the variable to the template in the context, and use that as the 
> argument to {% extends %}. 
>
> 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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




How to customize Django Admin interface with custom urls and views?

2013-03-06 Thread John James
Hi to all!

I'm completely new in Django. All I done is read one Introduction Book by 
Adrian Holovaty. 
When I finished I thought I knew enough to build even something simple, 
because the book is real good and clear.

Maybe I could create something simple, but I wanna create my own 
Administration interface with bunch of widgets, a lot of JS/AJAX nevermind.

Anyway, when I tried to create one link by click on which an AJAX request 
should be sent to specific url. For example /admin/page/untouchData

I have the *Page* model, and I need to perform some action named *untouchData. 
*But I dont know where should I define untouchData method, neither
how could I make the Django know about my specific URL *untouchData*, 
because it's not the standard action, neither CRUD. 

For now I can't realize the concept of Django architecture, I mean MTV 
seems. I came from Yii  PHP framework, it has MVC concept, so there I could
create specific action in a Controller and all staff is done. Of course URL 
routing exists there too, but it's quite simple.

I'm sure for Django it's not enough to create only one rule:
*url(r'^admin/', include(admin.site.urls)),*

So guys, could you please tell me where to read about this? Because I can't 
find an answer in three books and in Django Official Documentation too =(

Thanks for advice anyway.

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Conditionally defined model field in abstract model

2013-03-06 Thread Alan Johnson
(cross-posted from 
StackOverflow,
 
answer there if you prefer, but I thought it might be too low level to get 
much help there alone)

I've got an abstract model in my project that I want to use to define a 
field by default on concrete subclasses, but also to allow that field to be 
redefined as something other than the default dynamically.  All of this 
works right now:  

class classproperty(object):
"""
Decorator for making class properties
"""
def __init__(self, fget):
self.fget = fget

def __get__(self, owner_self, owner_cls):
return self.fget(owner_cls)

class BaseModel(models.Model):
class Meta(object):
abstract = True

@classproperty
def _special_attribute_field(self):
return getattr(self, '_bm_special_attribute_field', 'default')

@property
def bm_special_attribute(self):
return getattr(self, self._special_attribute_field)

...and then there are a bunch of methods that use the latter two functions 
to figure out which field to access.  

The problem is that right now, classes inheriting from `BaseModel` have to 
define the `default` field explicitly, even if they don't use 
`_bm_special_attribute_field` to specify something other than the default.  
What I'd like to do is add code to `BaseModel` to programmatically define 
`default` on concrete submodels *only if* those models don't use 
`_bm_special_attribute_field` to change it to something else, in which 
case, they should bring their own field.  Is there a way to do this, 
perhaps with metaclasses?  The key thing being that it has to not muck up 
the Django machinery.


-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




dynamic form fields in admin?

2013-03-06 Thread galgal


I want to make some advanced customization of admin form.

While editing an object, I want to show, dynamically, different fields 
depending of 1 obj field (they are not visible while adding the obj.). 
There can be a situation, to validate that extra fields. For example, when 
object has a 'temporary' type, I must show 2 fields with dates, and 
validate them. If object is 'renewable' I need to show 2 different fields 
with different validation.

What is the best approach to do that?

   - Make separate Form for each object type and set form attrib of 
   ModelAdmin? If yes, in whichModelAdmin method do that (change_view()?)?
   - Dynamically update 
fields
in get_form() method?

What is the best approach to do that?

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[JOB] Looking for a bunch of great Python/Django developers to work in the District

2013-03-06 Thread Andy
We are looking to add a bunch of great Python (would be great if they have 
solid Django skills) developers to our direct clients team 
in Northwest DC (not far from Metro Center). This is not some boring 
government contract, this is a cool company in the Media space, 
doing great consumer facing stuff on the web. We really need super solid 
Python folks who have a solid understanding of Object Oriented development.

Our firm is not like all the big body shops/head hunting firms. We are a 
small nitche contracting/consulting/placement company that does almost all 
of our work in the 
local DC area - and most of the work is in the Media/Web space.  These jobs 
are mostly full time employee positions working directly for our client, 
but they can also be contract, or temp-to-hire ... but all will require you 
to be on-site almost full time in the district.

Below is the more formal job req - but you know who you are. If you're a 
great Python developer, looking to do cool web development, on a site that 
will be viewed by a ton of people (one you'll be excited to tell people you 
are working for), then you should get back to me asap.

Hope to hear from you soon,
Andy Nussbaum
Partner
AAJ Interactive Technologies
www.aajinteractive.com
j...@aajinteractive.com

===

*Python/Django Developers*

Our client is a well known brand name company in the consumer media 
industry.  For this client we are looking for Python/Django application 
developers to help build out their existing web site, and support the 
creation of new functionality. The ideal candidate will have experience 
working with consumer facing websites, would not be afraid of Web Services, 
and has experience with CMS’s. The ideal candidate should be comfortable 
working within a team, as well as working independently to develop great 
code.

 

These are full time employee positions working directly as an employee of 
our client.  There is also the opportunity to contract, and/or go contract 
to hire.  However, all positions require the developers to be on-site full 
time.  Some remote work is possible in the future, but the majority of the 
work will need to be done on-site at the clients facilities in NW DC.

 

Experience:

 

   - Python, Django, Linux/UNIX, PostgreSQL, vi editors, Jira, AJAX, 
   JQuery, Perl

 

   - Successful design, implementation, deployment and maintenance of 
   high-traffic multi-server environment

 

   - Actively participation in design and code reviews

 

   - Ability to troubleshoot and fix production issues

 

   - Development of new software to support business initiatives

 

   - A high degree of initiative and the ability to work independently

 

   - The Application Developer will contribute to application solutions.  
Selected 
   candidate must have strong web development and software architecture 
   skills, and be highly collaborative in exciting and agile project 
   environments

 

   - Provide early architectural feedback on feasibility and estimation of 
   business requirements in conjunction with architect.

 

   - Push code deployments to production

 

   - Develop Django web applications to meet stated business requirements.

 

   - Participate in peer reviews, critiques, and knowledge sharing by 
   pushing the boundaries in application development.

 

   - Maintain existing content management systems, including technical 
   troubleshooting to diagnose production or application issues.

 

   - BS/BA degree in Computer Science, Information Technology, Software 
   Engineering or related field, or equivalent work experience with a minimum 
   of two (2) years of experience.

 

   - Exceptional experience and proficiency with the Django framework is 
   nice to have, utilizing both Python and PostgreSQL or MySQL databases.

 

   - Knowledgeable about the latest trends in application development, 
   including python packages, message queues, GIS and NoSQL databases, 
   continuous integration testing, building solution stacks from front to 
   back, multilayer caching methods, API's, and device-specific solutions.

 

   - The ability to write clean, well-documented code.

 

   - The ability to work on multiple concurrent projects is essential. 
   Strong self motivation and the ability to work with minimal supervision.

 

   - Experience working on large-scale web media-based solutions, 
   especially in regards of scaling large production environments.

 

   - Must be a team-oriented individual, energetic, result & delivery 
   oriented, with a keen interest on quality and the ability to meet 
   deadlines. Selected candidate will be required to handle multiple tasks 
   simultaneously, and requires the ability to accurately gauge project 
   duration, deliver on deadlines, and switch rapidly between projects in a 
   fast paced environment.

 

 

If this sounds like you, please respond with your salary 

Re: models i18n

2013-03-06 Thread Roberto López López

Thanks for your suggestion Johan.

Just another question, which I've not seen answered in the
documentation: is there any custom filter/tag to access those translated
fields from a template? Thanks

Best,

Roberto

On 03/05/2013 10:39 PM, Johan ter Beest wrote:
> 
> On Mar 5, 2013, at 10:31 PM, Roberto López López  > wrote:
> 
>> Hi guys,
>>
>> I am developing a django application and between my requirements there
>> is being able to set the model fields into different languages.
>>
>> For example:
>>
>> class Employee(models.Model):
>>position = models.CharField()
>># etc.
>>
>> The employee position won't be the same in English and Spanish. Ideally,
>> when an user fills in the data for an employee using the admin, there
>> will be one tab for each language defined in the settings file.
>>
>> Do you have any suggestion about how to deal with this issue?
> 
> Django-modeltranslation: https://github.com/deschler/django-modeltranslation
> 
> Very nice and easy, I use it all the time, works like a charm. You can
> do the tabs with some custom CSS and JS in the Admin through a Media
> class like this:
> 
> class Media:
> js = (
> 'modeltranslation/js/force_jquery.js',
>
> 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.24/jquery-ui.min.js',
> 'modeltranslation/js/tabbed_translation_fields.js',
> )
> css = {
> 'screen':
> ('modeltranslation/css/tabbed_translation_fields.css',),
> }
> 
> Johan
> 
>>
>> 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?hl=en.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
> 
> -- 
> 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?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>  
>  

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Suggestion for using distinct on django 1.4+ in your unit tests?

2013-03-06 Thread Brad Pitcher
I believe sqlite supports "distinct" just not "distinct on". I have always
managed to find workarounds using "distinct" anywhere I formerly used
"distinct on".
On Mar 6, 2013 7:01 AM, "Toran Billups"  wrote:

> I recently upgraded to django 1.4 and found that my "distinct" queries
> don't work anymore in my test code because sqlite doesn't support it -how
> is everyone using this for integration testing?
>
> Thank you in advance
>
> --
> 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?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Suggestion for using distinct on django 1.4+ in your unit tests?

2013-03-06 Thread Toran Billups
I recently upgraded to django 1.4 and found that my "distinct" queries 
don't work anymore in my test code because sqlite doesn't support it -how 
is everyone using this for integration testing? 

Thank you in advance

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




i18n

2013-03-06 Thread Roberto López López

Hi,

I am setting up i18n in my django app. I have added the following to my
settings.py:

PROJECT_PATH = os.path.abspath(os.path.dirname(__file__))

LOCALE_PATHS = (
os.path.join(PROJECT_PATH, 'locale'),
)

LANGUAGES = [
('en', _('English')),
('nb', _('Norwegian')),
]

And created a locale/ directory into my project root.

Then I've run the command:

django-admin.py makemessages --all

...without any error, but it doesn't generate anything into locale/. I
know I've created locale/ in the correct location, as I got some errors
running the command until I created it there.

myprojectroot$ find . -iname '*.po'
myprojectroot$  ### NONE!!!

Any suggestions please? 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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: OverflowError while trying python manage.py syncdb

2013-03-06 Thread 陶克k . tao
Sorry, I had made a mistake while editing the configuration file. The
problem has been solved.


2013/3/6 陶克k.tao 

> Hi,
>
> I'm new to Django. I was trying to follow the tutorial to set up Django.
> When I was trying to do "syncdb" operation, I got an error message to which
> I had no solution.
>
> *$ python manage.py syncdb*
> *OverflowError: Python int too large to convert to C long*
>
> I'm using OS X 10.8, and Django 1.5, Python 2.7.2.
>
> Could you help me?
>
> Thanks,
> Ke
>

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




OverflowError while trying python manage.py syncdb

2013-03-06 Thread 陶克k . tao
Hi,

I'm new to Django. I was trying to follow the tutorial to set up Django.
When I was trying to do "syncdb" operation, I got an error message to which
I had no solution.

*$ python manage.py syncdb*
*OverflowError: Python int too large to convert to C long*

I'm using OS X 10.8, and Django 1.5, Python 2.7.2.

Could you help me?

Thanks,
Ke

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Extending the base file depending on User type

2013-03-06 Thread Sandeep kaur
On Wed, Mar 6, 2013 at 2:39 AM, Shawn Milochik  wrote:
> Instead of extends, you could use the "include" directive.
>
"include" worked but destroyed all the structure of the template. :-/

-- 
Sandeep Kaur
E-Mail: mkaurkha...@gmail.com
Blog: sandymadaan.wordpress.com

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: How to order queries by exact match first

2013-03-06 Thread Gabriel
I'm not sure this is the right way, but you could drop the Q objects, use
only icontains and sort by the length of 'name'

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: How to order queries by exact match first

2013-03-06 Thread Tom Evans
On Wed, Mar 6, 2013 at 11:58 AM, Alexander Todorov
 wrote:
> Hi guys,
> I have this type of query:
>
> .filter(name__icontains='celery')
>
> and will possibly replace it with
>
> .filter(Q(name='celery') | Q(name__icontains='celery'))
>
>
> I want to get the results ordered by exact match first. Is this possible or
> I need to sort the results in my code?
>

Use .extra() to additionally select out 'name = "celery"' and order by
that extra field (followed by whatever else you wanted to order by).

Eg, something like:

q = 'Broken'
TVEpisode.objects.filter(
Q(title=q) | Q(title__contains=q)
  ).extra(
  select={'match': 'title = %s'},
  select_params=(q,)
  ).order_by('-match', 'title')

=>

[, , , , , ,  .. ]

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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




ANN: django-admin-tools 0.5.0 released

2013-03-06 Thread David Jean Louis
Hello,

I'm happy to announce the availability of the version 0.5.0 of
django-admin-tools:
https://pypi.python.org/pypi/django-admin-tools/0.5.0

Django-admin-tools is a collection of extensions/tools for the default
django administration interface, it includes:
 * a full featured and customizable dashboard,
 * a customizable menu bar,
 * tools to make admin theming easier.

This version fixes many issues and adds support for newer Django versions.
The app is now compatible with Django 1.3, 1.4, 1.5 and python 2.6, 2.7.
Thanks to all the people who contributed to this release.

The project is hosted on Bitbucket:
https://bitbucket.org/izi/django-admin-tools/

Django-admin-tools is generously documented, you can browse the
documentation online here:
https://django-admin-tools.readthedocs.org/

Regards,

-- 
David Jean Louis

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




How to order queries by exact match first

2013-03-06 Thread Alexander Todorov
Hi guys,
I have this type of query:

.filter(name__icontains='celery') 

and will possibly replace it with 

.filter(Q(name='celery') | Q(name__icontains='celery'))


I want to get the results ordered by exact match first. Is this possible or 
I need to sort the results in my code? 

Regards,
Alex
--
http://atodorov.org


-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Extending the base file depending on User type

2013-03-06 Thread Tom Evans
On Tue, Mar 5, 2013 at 9:06 PM, Sandeep kaur  wrote:
> I want to extend the base template file into the child file depending
> on the condition, like if the user is superuser or staff or active
> user, the file to extended should ll be different.
> For Eg :
>
> {% if user.is_superuser %}
> {% extends "base.html" %}
> {% else if user.is_active %}
> {% extends "base_client.html" %}
> {% else %}
> {% extends "base_noclient.html" %}
>
>
> However this code doesn't work.
> What should be done. Your help will be highly appreciated.
> Thank you.
>

{% extends %} can either take a string literal, or a variable. Move
the logic to decide which base template to use into your view, pass
the variable to the template in the context, and use that as the
argument to {% extends %}.

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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: reverse foreign key relationship usage

2013-03-06 Thread Roberto López López

Hi Fatih,

This is extremely useful in case you have two different relations
between the same model. As a rough example, consider the two following
models:

class Person(models.Model):
name = models.CharField(max_length=30)

class Car(models.Model):
model = models.CharField(max_length=20)
owner = models.OneToOne(Person, related_name='owned_car')
users = models.ForeignKey(Person, related_name='used_car')

In case of not having a different related_name for each of those two
relations, you wouldn't be able to get the person's car or the car this
person uses. (This person may own a car but use his company car, or a
friend's, a rental one...)





On 03/06/2013 08:30 AM, Fatih Tiryakioglu wrote:
> Hello all,
> 
> In Appendix B:Database API, it says "related_name (keyword) is
> particularly useful if a model has two foreign keys to the same second
> model." which is about 'related_name' keyword used reverse foreign key
> relationships. 
> e.g. blog = ForeignKey(Blog, related_name='entries').
> 
> What does it mean? Where should I use related_name instead of simply
> reversing by "x_set" keyword.
> 
> 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?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>  
>  


-- 
Kind regards,

Roberto López López


System Developer
Parallab, Uni Computing
Høyteknologisenteret, Thormøhlensgate 55
N-5008 Bergen, Norway
Tel:(+47) 555 84091

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: How to pass a value from a Django View to a JQuery Slider bar.

2013-03-06 Thread Tom Evans
On Tue, Mar 5, 2013 at 6:48 PM,  <7equivale...@gmail.com> wrote:
> Alright guys, thanks for the input, I need something a bit more specific to
> my case due to my ignorance on the subject at hand, so I am posting the code
> for my View, Template, and JQuery.  So, basically I want to take the slider1
> object value in the View, and place it in the Javascript where value = 37
> has been coded.
>
> // Here is my view
> //
> def slider_page(request):
>
>   slider1 = Slider.objects.get(sliderID=1)
>   variables = RequestContext(request, {'slider1': slider1})
>   return render_to_response('slider_page.html', variables)
>
> / Here is my Template
> //
>
> {% block external %}
>   
> {% endblock %}
>
> {% block content %}
>   
>   
> Intensity:
> 
>   
>   
>   
> {% endblock %}
>
> // Here is my JQuery
> //
>
>   $(function (){
> $( "#slider_1" ).slider({
>   range: "min",
>   value: 37,
>   min: 0,
>   max: 100,
>   slide: function( event, ui ) {
> $( "#power" ).val(ui.value );
>   }
> });
> $( "#power" ).val($( "#slider_1" ).slider( "value" ) );
> return false;
>   });
>

Er, just put your jquery into your template. The JS is specific to
that page (or pages with a #slider_1 on it, I suppose), so simply
include it into the page:

{% block content %}
  
  
Intensity:

  
  
  
  

Re: Impossible? Django with NTLM SSO auth on windows?

2013-03-06 Thread Tom Evans
On Tue, Mar 5, 2013 at 9:45 PM, Anton  wrote:
> Hmmm
>
> the bad support (as you mention "it hasn't been updated in quite some time")
> seems to be a major problem in this domain.

The NTLM/SSPI protocols haven't changed in a long time. Why should the
projects that support this tech need 'activity' on something that
works?

>
> I just looked at (for apache)
> http://mod-auth-sspi.sourceforge.net/docu/mod_ntlm/
>
> Here they say mod_ntlm is obsolete and
> " mod_auth_sspi is the version of mod_ntlm for Apache-2.0"
>
> but on the other side mod_auth_sspi seems to be dead too,

Indeed. There is more to life as an apache module than authentication,
in Apache 2.2 there is optionally authorization, and in 2.4 there is
no 'optional' about it. So mod_auth_sspi will never exist for Apache
2.4. Instead, there is (alpha) mod_authnz_sspi

https://www.apachehaus.net/modules/mod_authnz_sspi/

which seems to be supplied as a binary module, with no source code...

> so actually I am still not sure if its possible,
> if you don't want to use pure Microsoft technologies
> (like asp.net IIS server & other tools from ms)
>
> I am looking ..
>

The software you want is not compatible with your choice of web
server. The way I see it, you have four choices:

1) Use Apache 2.2 and mod_auth_sspi
2) Use Apache 2.4, port mod_auth_sspi to Apache 2.4
3) Use Apache 2.4, use binary mod_authnz_sspi, live with the security issues
4) Continue looking!

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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Setting Django to not quote table names

2013-03-06 Thread Ian Kelly
On Wed, Mar 6, 2013 at 1:38 AM, Ian  wrote:
> In the meanwhile, the commonly used workaround for this is to include the
> schema in the db_table declaration like so:

The other workaround which is mentioned in the ticket I linked but
which I completely neglected to include in my reply, and which I
heartily recommend, is to create private synonyms within the Django
schema to the tables in other schemas.  This works perfectly fine
(it's what we do at my work) and allows you to avoid having
ugly-looking db_table names or having to patch Django.  The only real
issue again is that syncdb will not recognize the synonyms and will
try to create the tables if run.

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Setting Django to not quote table names

2013-03-06 Thread Ian
On Tuesday, March 5, 2013 2:14:04 PM UTC-7, Steven Githens wrote:
>
> Hello Django Users,
>
> I have an app that uses Oracle and cx_Oracle for the db, and I've made the 
> models from an existing schema with inspectdb.
>
> The database schema also contains a number of sub-schemas, so they must be 
> accessed with schema dot table name.  Looking at the SQL used for model 
> access, I believe Django's automatic quoting of table names in the SQL is 
> causing issues with table name lookup.
>
> I can verify using cursor.execute in the shell, that if I leave off the 
> quotes, the queries work fine.  Is there an easy way to disable table name 
> quoting? (or other facility that gets around this? )
>
>
There is a long-standing ticket to add explicit schema declarations to 
models -- see https://code.djangoproject.com/ticket/6148
Unfortunately the most recent patch is almost a year old at this point, so 
I have no idea how well it would work.

In the meanwhile, the commonly used workaround for this is to include the 
schema in the db_table declaration like so:

db_table = 'my_schema"."my_table'

Note that quotes are included at the end of the schema name and the start 
of the table name, but not at the extremities of the string, since they 
will be added by the backend.  A couple of warnings about this approach:

1) This will break syncdb.  If you're not using syncdb, then this probably 
doesn't matter to you.

2) The oracle backend performs automatic name mangling on table names 
longer than 30 characters.  Since it considers the above to be all one 
table name, this effectively reduces the allowed table name length before 
name manging is applied by the number of extra characters.



On Tuesday, March 5, 2013 3:45:36 PM UTC-7, Shawn Milochik wrote:On Tue, 
Mar 5, 2013 at 5:41 PM, Johan ter Beest  wrote: 
>> Not an Oracle expert at all but maybe this SO answer explains some 
things?: 
>> 
>> 
http://stackoverflow.com/questions/563090/oracle-what-exactly-do-quotation-marks-around-the-table-name-do
 
>> 
>
> So if it's down to case-sensitivity then everything should be fine, 
> because all the queries are generated by the ORM and aren't going to 
> mix case. 

It's not just about case sensitivity.  The quotes are also required for 
names that happen to be Oracle keywords.  If you're controlling all the 
names though, then this is fairly easy to avoid.

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Converting Django app into a Desktop app

2013-03-06 Thread Loai Ghoraba
thanks a lot, I will look at them if I have time :)

On Sat, Mar 2, 2013 at 3:00 AM, Czarek Tomczak wrote:

> Hi Loai,
>
> Have a look at CEF Python that embeds Chrome browser:
> https://code.google.com/p/cefpython/
> You will need to run a web server to convert it into a desktop
> application, have a look
> at CefBottleDesktop  that
> embeds CEF and runs a python web server along with
> bottle.py  framework.
>
> Also have a look at Python Desktop that embeds Internet Explorer browser
> and
> Mongoose web server:
> https://code.google.com/p/phpdesktop/wiki/EmbeddingOtherScriptingLanguages
>
> I am the author of both projects.
>
> Cheers,
> Czarek.
>
>
> On Tuesday, December 18, 2012 8:06:19 AM UTC-8, Loai Ghoraba wrote:
>
>> Hi
>>
>> I am very comfortable with Django, and I was wondering about whether
>> there is some way to convert a Django web app into a Desktop app (may be
>> not 100%), so that I can distribute it to users. May be wrapping it in a
>> light web server "if there is something like this".
>>
>> Thanks
>>
>  --
> You received this message because you are subscribed to a topic in the
> Google Groups "Django users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/django-users/-VGqvHew35g/unsubscribe?hl=en
> .
> To unsubscribe from this group and all its topics, 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?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Django payment gateway with subscription management

2013-03-06 Thread Pankaj Singh
Hey Jaimin,
For recurring submissions managed by Stripe, have a look at
https://github.com/eldarion/django-stripe-payments

Sincerely,
Pankaj Singh
http://about.me/psjinx


On Wed, Mar 6, 2013 at 2:27 AM, Jaimin Patel  wrote:

> Yes, we are USA based and I come across stripe. It seems very developer
> friendly. Is there any example on setting up recurring payments using
> stripe?
>
>
> On Tuesday, March 5, 2013 3:47:06 PM UTC-5, Mayukh Mukherjee wrote:
>
>> Stripe if you're in the us (am not sure which other countries they've
>> rolled out to).
>>
>>
>> On Tue, Mar 5, 2013 at 3:34 PM, Jaimin Patel  wrote:
>>
>>> Hello,
>>>
>>> We are evaluating different payment gateways for subscription management
>>> for one of the app which requires the subscription based model (monthly, 6
>>> months, year).
>>>
>>> I checked different packages available here -
>>> https://www.djangopackages.**com/grids/g/payment-**processing/
>>>
>>> Though I am confuse which one I should be using, can someone recommend
>>> which one is actively maintained and most commonly used for subscription
>>> based model where users can signup for free and if they want they can
>>> subscribe later on. We don't required to store the credit card details and
>>> it can be taken care by the payment gateway.
>>>
>>> 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...@**googlegroups.com.
>>> To post to this group, send email to django...@googlegroups.com.
>>>
>>> Visit this group at 
>>> http://groups.google.com/**group/django-users?hl=en
>>> .
>>> For more options, visit 
>>> https://groups.google.com/**groups/opt_out
>>> .
>>>
>>>
>>>
>>
>>
>>
>> --
>> Mayukh Mukherjee
>> http://www.linkedin.com/in/**mayukhmmukherjee
>>
>>
>>   --
> 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?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.