Re: Django manage.py returns ValueError: zero length field name in format

2014-01-06 Thread Jaimin Patel
Its highly recommended that you use Python 2.7. It should resolve the issue.

Thanks.

On Sunday, January 5, 2014 8:50:06 PM UTC-5, Carlos Quiros wrote:
>
> Hi,
>
> I am trying to run a Django application in Python 2.6.6 Django==1.5.5 . 
> But when I try to run
>
> *python manage.py*
>
> I get:
>
> *Traceback (most recent call last):
>   File "manage.py", line 12, in 
> print('Your environment 
> is:"{}"'.format(os.environ['DJANGO_SETTINGS_MODULE']))
> ValueError: zero length field name in** format*
>
> Any idea what is wrong? I am also running the same application in another 
> server but with Python 2.7.5 and it works ok.
>
> Note: DJANGO_SETTINGS_MODULE is an environmental variable in both systems
>
> Thanks,
>
> Carlos
>
>
>
>

-- 
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/e5af3bfe-9a1f-4948-b8c8-5dabf69bcbe4%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Django manage.py returns ValueError: zero length field name in format

2014-01-06 Thread Jaimin Patel
Here you can read it, 
https://docs.djangoproject.com/en/dev/releases/1.5/#python-compatibility

though I agree that is should be working fine with your current setup as it 
does mention that its compatible with 2.6.5+. However, if its not too much 
trouble just update to 2.7 and it should work fine. (I had come across this 
issue in past and python version upgrade fixed for me.)

On Monday, January 6, 2014 10:13:47 AM UTC-5, Jaimin Patel wrote:
>
> Its highly recommended that you use Python 2.7. It should resolve the 
> issue.
>
> Thanks.
>
> On Sunday, January 5, 2014 8:50:06 PM UTC-5, Carlos Quiros wrote:
>>
>> Hi,
>>
>> I am trying to run a Django application in Python 2.6.6 Django==1.5.5 . 
>> But when I try to run
>>
>> *python manage.py*
>>
>> I get:
>>
>> *Traceback (most recent call last):
>>   File "manage.py", line 12, in 
>> print('Your environment 
>> is:"{}"'.format(os.environ['DJANGO_SETTINGS_MODULE']))
>> ValueError: zero length field name in** format*
>>
>> Any idea what is wrong? I am also running the same application in another 
>> server but with Python 2.7.5 and it works ok.
>>
>> Note: DJANGO_SETTINGS_MODULE is an environmental variable in both systems
>>
>> Thanks,
>>
>> Carlos
>>
>>
>>
>>

-- 
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/b8874d4e-d8e7-4f17-8a64-66397424fda6%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: DJANGO and SOAP

2013-10-16 Thread Jaimin Patel
Does any of two library mentioned in this SO answers helps 
- http://stackoverflow.com/questions/5167122/django-as-soap-web-service-server?

On Wednesday, October 16, 2013 5:59:21 AM UTC-4, Domagoj Kovač wrote:
>
> Hi everyone,
>
> I have a problem. For the past few days i have been looking for some good 
> SOAP client library and i did not found anything that works properly. The 
> problem is that i have some recursive SOAP function and as i saw, suds has 
> the problem with this types of things, some other libraries brake on that 
> part.
>
> So, is there any really good library that has proper documentation and 
> also can work with wsdl? 
>

-- 
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/8e624d1d-42b0-499c-908e-b66cad509418%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: DJANGO and SOAP

2013-10-16 Thread Jaimin Patel
This might help 
- http://stackoverflow.com/questions/5167122/django-as-soap-web-service-server

On Wednesday, October 16, 2013 5:59:21 AM UTC-4, Domagoj Kovač wrote:
>
> Hi everyone,
>
> I have a problem. For the past few days i have been looking for some good 
> SOAP client library and i did not found anything that works properly. The 
> problem is that i have some recursive SOAP function and as i saw, suds has 
> the problem with this types of things, some other libraries brake on that 
> part.
>
> So, is there any really good library that has proper documentation and 
> also can work with wsdl? 
>

-- 
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/d3966ac8-e4bf-47ae-b201-808ffd34f134%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Registration in django

2013-10-16 Thread Jaimin Patel
you will need to update the registration/forms.py in order to add any 
additional field. When you adding organization name or any other field you 
must be creating some kind of profile for the user, so you should be able 
to store and retrieve the information to display on dashboard or anywhere 
else.

Also using django-registration doesn't restrict you from modifying and 
adding more forms for your application.

On Wednesday, October 16, 2013 9:48:23 AM UTC-4, Harjot Mann wrote:
>
> I am using django-registration in my app and I implemented it 
> correctly but I want to add an another field in it like I want to have 
> the organization name from user and that name I want to display in the 
> dashboard of user. What should I need to do for it? 
> and what if I dont want to use the django-registration module and I 
> want to make my own code for registration and login? 
>
> -- 
> Harjot Kaur Mann 
> Blog: http://harjotmann.wordpress.com/ 
> Daily Dairy: http://harjotmann.wordpress.com/daily-diary/ 
>

-- 
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/2de0b8c9-9b25-48d7-bdfe-052974c25360%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


App which relies on collecting data from different APIs

2013-09-18 Thread Jaimin Patel
Hi - Its may or may not be Django specific question. I am wondering if I 
want to develop something which consumes json/xml/csv data from different 
sources like news RSS feed, Sports data api for scores or restaurant menu 
price. is there any good architecture workflow one can recommend to do it 
in Django/Python? 

I am looking for somewhat generic solution, which provides code 
reusability, instead of brute force way would be parse each of the dataset 
individually and on-board to the application with required format, but in 
that case each will follow their code base which will hardly work for other 
type of dataset. 

Happy to provide more information if one finds it confusing. Again the 
question is, How can I design the app so that adding new sources and new 
format is easy going forward.

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


Re: django auth user - difference between last login and now

2013-04-16 Thread Jaimin Patel
Any suggestion on this question? 

On Friday, April 12, 2013 10:35:54 AM UTC-4, Jaimin Patel wrote:
>
> Hello,
>
> I would like to provide some instructions if user come after gap of 1 week 
> or so. I was hoping that I can do that by -
>
> (datetime.now()-user.last_login) > timedelta(days=7)
>
> Though by the time it comes to my view last login is already updated by 
> auth user model of django, so in my application code when I try to find 
> this difference it always comes 0 day because last_login time is already 
> updated with now datetime. 
>
> Is there any other way to get this information? 
>
>
>

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




Django - Tracking Usage by each registered user and anonymous user

2013-04-16 Thread Jaimin Patel
Hello,

I would like to gather the information on how many minutes/hours spent by 
anonymous users and registered users on my app. On quick google I found few 
ways to do it -

1. Django-tracking : https://github.com/codekoala/django-tracking
2. Django-tracking2 : https://github.com/bruth/django-tracking2
(Though I am little confused on difference between this two apart from 
one (tracking2) keeps history and activity or user and other(tracking) also 
shows geo location, and real time information etc.)

3. mixpanel-celery:  http://weswinham.com/mixpanel-celery/introduction.html#

Can someone suggest which one will be better to use? or any other better 
solution?

- django-tracking2 seems good enough with minimum configuration.
- I am not interested in realtime details on where the users are active, If 
I can get cumulative number of hours spent by particular user on the 
app/per page, its good enough.

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.




django auth user - difference between last login and now

2013-04-12 Thread Jaimin Patel
Hello,

I would like to provide some instructions if user come after gap of 1 week 
or so. I was hoping that I can do that by -

(datetime.now()-user.last_login) > timedelta(days=7)

Though by the time it comes to my view last login is already updated by 
auth user model of django, so in my application code when I try to find 
this difference it always comes 0 day because last_login time is already 
updated with now datetime. 

Is there any other way to get this information? 


-- 
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: Integrity Error: column username is not unique

2013-03-28 Thread Jaimin Patel
If the user is marked as deleted and we want to do soft delete.What can we 
do to have the username available again for use.

Can we just mask the deleted usernames with some random string so that the 
actual username can be used?

On Sunday, June 24, 2012 10:36:02 AM UTC-4, Dhivya wrote:
>
> Hi,
> username field in django.contrib.auth.User model  is unique. 
> Probably, the username you are trying to save already exists. 
> In your view, you might want to check,
> try:
> username = User.objects.get(username=form.cleaned_data['username'])
> except ObjectDoesNotExist:
>   #create user new object here
>
> -Dhivya
> On Sunday, June 24, 2012 9:36:48 AM UTC-4, Nikhil Verma wrote:
>>
>>
>> Hi 
>>
>> I got this error when i was making a post after filling the details from 
>> the user.
>>
>> Can somebody throw a light in this where i am going wrong.
>>
>> models.py
>>
>> class UserProfile(models.Model):
>> user = models.ForeignKey(User, blank=True, null=True, unique=True)
>> first_name = models.CharField(max_length=30, blank=True)
>> last_name = models.CharField(max_length=30, blank=True)
>> gender = models.CharField(max_length=1, choices=GENDER_CHOICES, 
>> blank=True)
>> birth_date = models.DateField(auto_now_add=True)
>> street = models.CharField(max_length=75, blank=True)
>> state = models.CharField(max_length=30, blank=True)
>> zip_code = models.IntegerField(max_length=7, blank=True, null=True)
>> country = models.CharField(max_length=30, blank=True)
>> mobile = models.CharField(max_length=15, blank=True)
>> home_phone = models.CharField(max_length=15, blank=True)
>> primary_email = models.EmailField(max_length=60, blank=True)
>> institution_name = 
>> models.CharField(max_length=100,blank=True,null=True)
>> institution_website = 
>> models.CharField(max_length=100,blank=True,null=True)
>>
>>
>> forms.py
>>
>> class UserProfileForm(forms.Form):
>> 
>> username = forms.CharField(label='Username', max_length=20)
>> first_name = forms.CharField(label="First Name", max_length=40, 
>> required=True)
>> last_name = forms.CharField(label="Last Name", max_length=40, 
>> required=True)
>> gender = forms.CharField(max_length=1, 
>> widget=Select(choices=GENDER_CHOICES), required=True)
>> date_of_birth = CustomDateField(label='Date of Birth', required=False)
>> telephone = forms.CharField(label='Mobile Phone', max_length=40, 
>> required=False) 
>> institution_name = forms.CharField(label='Institute Name', 
>> max_length=80, required=False)
>> street = forms.CharField(label='Street', max_length=100, 
>> required=False)
>> zip_code = forms.CharField(label='Zip Code', max_length=40, 
>> required=False)
>> state = forms.CharField(label='State', max_length=80, required=False)
>> country = forms.CharField(label='Country', max_length=80, 
>> required=False)
>> institue_name = forms.CharField(label='Institute Name', 
>> max_length=80, required=False)
>> institue_website = forms.URLField(label='Institute Website', 
>> max_length=80, required=False)
>>
>>
>> views.py
>> def createprofile(request):
>> """
>> Creating Profile
>> """
>> 
>> if request.method == "POST":
>> form = UserProfileForm(request.POST)
>> if form.is_valid():
>> user = User(
>> username = form.cleaned_data['username'],
>> first_name = form.cleaned_data['first_name'],
>> last_name = form.cleaned_data['last_name'],
>> )
>> user.save()
>> userprofile_obj = UserProfile(
>> user = 
>> user.username,  
>> first_name = user.first_name,
>> last_name = user.last_name,
>> gender = form.cleaned_data['gender'],
>> birth_date = form.cleaned_data['date_of_birth'],
>> mobile = form.cleaned_data['telephone'],
>> institution_name = form.cleaned_data['institution_name'],
>> street = form.cleaned_data['street'],
>> zip_code = form.cleaned_data['zip_code'],
>> state = form.cleaned_data['state'],
>> country = form.cleaned_data['country'],
>> )
>> userprofile_obj.save()
>>
>>
>> Any help how can i solve this problem ?
>>
>>
>> -- 
>> Regards
>> Nikhil Verma
>> +91-958-273-3156
>>
>>

-- 
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: Restful User Authentication for Ember/Backbone client with Tastypie

2013-03-11 Thread Jaimin Patel
Not sure about your first questions.

For right way to authenticate is solely depends on your requirement. 
If you don't care about who is using the data > you can turn off the data, 
if you want only your application users to use it > you can use 
DjangoAuthentication
if you want minimal security > use Dajngo API key Authentication
More secure > use OAuth mechanism

hope it helps!

On Sunday, March 10, 2013 4:54:10 PM UTC-4, Pratik Mandrekar wrote:
>
> Hello,
>
> I'm trying to figure out what would be the best way to integrate django 
> with ember.js/backbone from the user authentication point of view. I'm 
> using Tastypie for creating RESTful resources.
>
> I have no problem creating APIs once a user has been authenticated using 
> the Session based authentication but I am wondering what is the best 
> RESTful way to create  a user authentication API that can confirm to 
> Session based authentication.
>
> Also if I'm not mistaken the right way to authenticate the client is via 
> the API key authentication right?
>
> Thanks,
> Pratik
>

-- 
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-11 Thread Jaimin Patel
Thanks Pankaj.

Is there any step by step tutorial to integrate this. I tried to follow the 
documentation, and not sure how to integrate from this step 
- http://django-stripe-payments.readthedocs.org/en/latest/templatetags.html

Thanks.

On Wednesday, March 6, 2013 3:09:00 AM UTC-5, psjinx wrote:
>
> 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 <jaimi...@gmail.com
> > 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 <jaimi...@gmail.com> 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/<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<http://groups.google.com/group/django-users?hl=en>
>>>> .
>>>> For more options, visit 
>>>> https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out>
>>>> .
>>>>  
>>>>  
>>>>
>>>
>>>
>>>
>>> -- 
>>> Mayukh Mukherjee
>>> http://www.linkedin.com/in/**mayukhmmukherjee<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...@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: How to display large data by scrolling html page using python and django?

2013-03-11 Thread Jaimin Patel
you can use - http://django-endless-pagination.readthedocs.org/en/latest/

Its easy to integrate with jQuery, Django plugin.

On Monday, March 11, 2013 10:47:43 AM UTC-4, Avnesh Shakya wrote:
>
> ya i m trying  to display data from database on html page, but it's 
> showing 20-25 rows of data from database..Actually i want to display 25 
> rows of data after that i want show 25 rows of data,that time last 20 rows 
> should be flushed by scrolling and it should be repeat again-2
> thanks 
>
> On Mon, Mar 11, 2013 at 7:53 PM, Jaimin Patel <jaimi...@gmail.com
> > wrote:
>
>> What control you are using to display? What do you mean by you want to 
>> show all data using scrolling? Is your query restricting top 20 records 
>> only, and you want to override that to get more?
>>
>>
>> On Monday, March 11, 2013 12:41:05 AM UTC-4, Avnesh Shakya wrote:
>>>
>>> hi,
>>>  i have stored data in database,but it has large data,so it's 
>>> showing only 20-25 rows of data on html page. I want to show all data using 
>>> scrolling. how is it possible?
>>> Please help me  
>>> 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.
>>  
>>  
>>
>
>

-- 
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 display large data by scrolling html page using python and django?

2013-03-11 Thread Jaimin Patel
What control you are using to display? What do you mean by you want to show 
all data using scrolling? Is your query restricting top 20 records only, 
and you want to override that to get more?

On Monday, March 11, 2013 12:41:05 AM UTC-4, Avnesh Shakya wrote:
>
> hi,
>  i have stored data in database,but it has large data,so it's showing 
> only 20-25 rows of data on html page. I want to show all data using 
> scrolling. how is it possible?
> Please help me  
> 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: cannot find unique constraint on easy_thumbnails_thumbnails while running jenkins

2013-03-08 Thread Jaimin Patel
Also while running I get this out put -

$ python manage.py jenkins
Creating test database for alias 'default'...
Got an error creating the test database: (1007, "Can't create database 
'test_abc'; database exists")
Destroying old test database 'default'...
Could not remove foreign key contraint: Cannot find a FOREIGN KEY 
constraint on table easy_thumbnails_source, column storage_new_id
Could not remove foreign key contraint: Cannot find a FOREIGN KEY 
constraint on table easy_thumbnails_thumbnail, column storage_new_id
EE..E.....EE.EE.EEE...EE...EEE..EE..E...EE..E.EEE..EE.F.

and it keeps going..

what does it mean? Is this got stuck somewhere?

On Friday, March 8, 2013 1:28:19 PM UTC-5, Jaimin Patel wrote:
>
>
> I am running into below error while running jenkins for my django project -
>
> File 
> "/Library/Python/2.7/site-packages/easy_thumbnails/migrations/0015_auto__del_unique_thumbnail_name_storage_hash__add_unique_thumbnail_sou.py",
>  
> line 12, in forwards
> db.delete_unique('easy_thumbnails_thumbnail', ['name', 'storage_hash'])
>   File "/Library/Python/2.7/site-packages/south/db/generic.py", line 479, 
> in delete_unique
> raise ValueError("Cannot find a UNIQUE constraint on table %s, columns 
> %r" % (table_name, columns))
> ValueError: Cannot find a UNIQUE constraint on table 
> easy_thumbnails_thumbnail, columns ['name', 'storage_hash']
>
> you can find the details error message -
>
> https://github.com/SmileyChris/easy-thumbnails/issues/208
>
> Any idea what might be wrong?
>
> 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.




cannot find unique constraint on easy_thumbnails_thumbnails while running jenkins

2013-03-08 Thread Jaimin Patel

I am running into below error while running jenkins for my django project -

File 
"/Library/Python/2.7/site-packages/easy_thumbnails/migrations/0015_auto__del_unique_thumbnail_name_storage_hash__add_unique_thumbnail_sou.py",
 
line 12, in forwards
db.delete_unique('easy_thumbnails_thumbnail', ['name', 'storage_hash'])
  File "/Library/Python/2.7/site-packages/south/db/generic.py", line 479, 
in delete_unique
raise ValueError("Cannot find a UNIQUE constraint on table %s, columns 
%r" % (table_name, columns))
ValueError: Cannot find a UNIQUE constraint on table 
easy_thumbnails_thumbnail, columns ['name', 'storage_hash']

you can find the details error message -

https://github.com/SmileyChris/easy-thumbnails/issues/208

Any idea what might be wrong?

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: Django payment gateway with subscription management

2013-03-05 Thread Jaimin Patel
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 <jaimi...@gmail.com
> > 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.




Django payment gateway with subscription management

2013-03-05 Thread Jaimin Patel
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+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: I want to check for new orders in the background?

2013-03-05 Thread Jaimin Patel
Take a look at django-notifications app 
- https://github.com/pinax/django-notification

I think it should be able to help you.

you can check the example of it on this SO thread 
- 
http://stackoverflow.com/questions/1609775/how-do-i-display-notifications-from-django-notification

On Tuesday, March 5, 2013 8:38:14 AM UTC-5, frocco wrote:
>
> Hello,
>
> I want to query the orders database every 5 minutes and alert admins that 
> new orders have arrived.
> Would I use signals for this?
>
> Anyone have an example?
>
> 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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: django generate pdf with tables and charts

2013-02-14 Thread Jaimin Patel
Sorry I posted the answer on wrong thread, 

Sure.

I had tried to render PDF with pisa,

template = get_template(template_src)
context = Context(context_dict)
html  = template.render(context)
result = StringIO.StringIO()

pdf = pisa.pisaDocument(StringIO.StringIO(html.encode("ISO-8859-1")), 
result, link_callback=fetch_resources)
if not pdf.err:
return HttpResponse(result.getvalue(), mimetype='application/pdf')
return HttpResponse('Errors%s' % escape(html))

Also tried with wkhtmltopdf -

from wkhtmltopdf.views import PDFTemplateResponse
..
return PDFTemplateResponse(request, 'pdf/pdftemplate.html', {
'pagesize':'A4',
   'user': results['user'],
   'question': results['question_obj'],
   })

In both cases it doesn't render the elements which I am populating with 
help of onload javascript function.

On Wednesday, February 13, 2013 10:45:40 PM UTC-5, ovnicraft wrote:
>
>
>
>
> On Sun, Feb 10, 2013 at 11:10 AM, Jaimin Patel 
> <jaimi...@gmail.com
> > wrote:
>
>> I am trying to generate pdf using django template, also need some support 
>> of javascript code. I have tried PISA, ReportLib and wkhtmltopdf but it 
>> seems that it doesn't wait for Javascript. 
>
>
> Hello, can you explain us better what you means with *does not wait for 
> JS* ? 
> I understand you say: pdf is rendered w/o running JS code.
>
> Regards, 
>
>>
>> Can someone suggest good solution or example?
>>
>> -- 
>> 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.
>>  
>>  
>>
>
>
>
> -- 
> Cristian Salamea
> @ovnicraft 
>

-- 
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 generate pdf with tables and charts

2013-02-14 Thread Jaimin Patel
Sure.

I had tried to render PDF with pisa,

template = get_template(template_src)
context = Context(context_dict)
html  = template.render(context)
result = StringIO.StringIO()

pdf = pisa.pisaDocument(StringIO.StringIO(html.encode("ISO-8859-1")), 
result, link_callback=fetch_resources)
if not pdf.err:
return HttpResponse(result.getvalue(), mimetype='application/pdf')
return HttpResponse('Errors%s' % escape(html))

Also tried with wkhtmltopdf -

from wkhtmltopdf.views import PDFTemplateResponse
..
return PDFTemplateResponse(request, 'pdf/pdftemplate.html', {
'pagesize':'A4',
   'user': results['user'],
   'question': results['question_obj'],
   })

In both cases it doesn't render the elements which I am populating with 
help of onload javascript function.

On Wednesday, February 13, 2013 10:45:40 PM UTC-5, ovnicraft wrote:
>
>
>
>
> On Sun, Feb 10, 2013 at 11:10 AM, Jaimin Patel 
> <jaimi...@gmail.com
> > wrote:
>
>> I am trying to generate pdf using django template, also need some support 
>> of javascript code. I have tried PISA, ReportLib and wkhtmltopdf but it 
>> seems that it doesn't wait for Javascript. 
>
>
> Hello, can you explain us better what you means with *does not wait for 
> JS* ? 
> I understand you say: pdf is rendered w/o running JS code.
>
> Regards, 
>
>>
>> Can someone suggest good solution or example?
>>
>> -- 
>> 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.
>>  
>>  
>>
>
>
>
> -- 
> Cristian Salamea
> @ovnicraft 
>

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




django generate pdf with tables and charts

2013-02-10 Thread Jaimin Patel
I am trying to generate pdf using django template, also need some support 
of javascript code. I have tried PISA, ReportLib and wkhtmltopdf but it 
seems that it doesn't wait for Javascript. 

Can someone suggest good solution or example?

-- 
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: plz help me i have checked many time but i could not find error place.....

2013-02-06 Thread Jaimin Patel
Do you see polls_poll table in your database? How does your db settings 
looks?

On Wednesday, February 6, 2013 9:02:53 AM UTC-5, Avnesh Shakya wrote:
>
> ya i have executed python manage.py syncdb...but still it's giving 
> error...
>
> On Wed, Feb 6, 2013 at 7:01 PM, Thomas Weholt 
>  > wrote:
>
>> Have you executed python manage.py syncdb?
>>
>> Thomas
>>
>> On Wed, Feb 6, 2013 at 2:22 PM, Avnesh Shakya 
>>  
>> wrote:
>> >
>> > I have checked many time, even i have deleted my project n i have 
>> created
>> > new project again and create new model but error is occurred again n 
>> again..
>> > i m beginner so plz help me
>> >
>> > C:\mysite>python manage.py shell
>> > Python 2.7.3 (default, Apr 10 2012, 23:31:26) [MSC v.1500 32 bit 
>> (Intel)] on
>> > win32
>> > Type "help", "copyright", "credits" or "license" for more information.
>> > (InteractiveConsole)
>>  from polls.models import Poll,Choice
>>  Poll.objects.all()
>> > Traceback (most recent call last):
>> >   File "", line 1, in 
>> >   File "C:\Python27\lib\site-packages\django\db\models\query.py", line 
>> 72,
>> > in __repr__
>> > data = list(self[:REPR_OUTPUT_SIZE + 1])
>> >   File "C:\Python27\lib\site-packages\django\db\models\query.py", line 
>> 87,
>> > in __len__
>> > self._result_cache.extend(self._iter)
>> >   File "C:\Python27\lib\site-packages\django\db\models\query.py", line 
>> 291,
>> > in iterator
>> > for row in compiler.results_iter():
>> >   File "C:\Python27\lib\site-packages\django\db\models\sql\compiler.py",
>> > line 763, in results_iter
>> > for rows in self.execute_sql(MULTI):
>> >   File "C:\Python27\lib\site-packages\django\db\models\sql\compiler.py",
>> > line 818, in execute_sql
>> > cursor.execute(sql, params)
>> >   File "C:\Python27\lib\site-packages\django\db\backends\util.py", line 
>> 40,
>> > in execute
>> > return self.cursor.execute(sql, params)
>> >   File 
>> "C:\Python27\lib\site-packages\django\db\backends\sqlite3\base.py",
>> > line 344, in execute
>> > return Database.Cursor.execute(self, query, params)
>> > DatabaseError: no such table: polls_poll
>> 
>> >
>> > --
>> > 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.
>> >
>> >
>>
>>
>>
>> --
>> Mvh/Best regards,
>> Thomas Weholt
>> http://www.weholt.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...@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.