Django: DatabaseError: database is locked

2011-07-09 Thread pankaj
Hi, Can someone please help to fix this issue? Traceback (most recent call last): File "/ot/w/u/django-s/django/core/handlers/base.py", line 80, in get_response response = middleware_method(request) File "/ot/w/u/django-s/django/contrib/auth/middleware.py", line 98, in process_request

Django: MemoryError

2011-07-09 Thread pankaj
Hi, I am frequently getting this error, but could not identify the root cause of this issue. Traceback (most recent call last): File "/ot/w/u/django-s/django/core/handlers/base.py", line 100, in get_response response = callback(request, *callback_args, **callback_kwargs) File "/ot/w/u/

Django: AssertionError: The Django RemoteUserAuth middleware requires authentication middleware to be installed

2011-07-09 Thread pankaj
Hi, Can someone please help to fix this issue? Please let me know if you need any more info. Traceback (most recent call last): File "/ot/w/u/django-s/django/core/handlers/base.py", line 80, in get_response response = middleware_method(request) File "/ot/w/u/django-s/django/contrib/auth

Re: Django: AssertionError: The Django RemoteUserAuth middleware requires authentication middleware to be installed

2011-07-09 Thread pankaj
son - reason > being for you to read. > And sometimes, they also mention how to fix it . > > > > > > > > On Sat, Jul 9, 2011 at 5:59 PM, pankaj wrote: > > Hi, > > > Can someone please help to fix this issue? Please let me know if you > > need an

Re: Django: MemoryError

2011-07-09 Thread pankaj
gt; 2) what application server are you using (uwsgi / fcgi etc) mod_wsgi/3.3 > 3) what os are you running? Unix > 4) what is your ulimit? Not sure about the limit. What does it mean? > > Cal > > > > > > > > On Sat, Jul 9, 2011 at 1:27 PM, pankaj wrote: > >

bad request(400)

2017-09-11 Thread Pankaj -
I am getting below error while launching host ip -- 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

Value Error in Pyfacebook

2010-08-07 Thread Pankaj Singh
elf.get_or_create(id=int(facebook.uid)) ValueError: invalid literal for int() with base 10: 'None' *** need help to get out of this -- -- -- Thanking You, Pankaj Kumar Singh, 3rd Year Undergraduate Student, Departmen

Re: Value Error in Pyfacebook

2010-08-07 Thread Pankaj Singh
problem got solved 1292 if params.get('expires'): 1293 self.session_key_expires = int(params['expires']) I've just changed it to: 1292 if params.get('expires'): 1293 try: 1294 self.session_key_expires = int(params['expires']) 1295

__init__() got an unexpected keyword argument 'core'

2010-08-20 Thread Pankaj Singh
I am gettign this error but as per documentation http://www.djangoproject.com/documentation/0.96/model-api/#core this should not be a problem http://code.google.com/p/django-openid-auth/source/browse/trunk/openid_auth/models.py pan...@pankaj-laptop:~/django_projects/mysite$ ./manage.py syncdb

Re: __init__() got an unexpected keyword argument 'core'

2010-08-20 Thread Pankaj Singh
I am using django 1.2.1 -- -- -- -- Thanking You, Pankaj Kumar Singh, 3rd Year Undergraduate Student, Department of Agricultural and Food Engineering, Indian Institute of Technology, Kharagpur Website - http://www.IamPankaj.in <http://www.iampankaj.in/> Email - cont...@iampan

CMS based Website using Django

2010-04-09 Thread Pankaj Singh
( for whom I will be working) does not know web designing. I have read Django Tutorials from Internet. -- -- -- Thanking You, Pankaj Kumar Singh, 2nd Year Undergraduate Student, Department of Agricultural and Food Engineering, Indian Institute of Technology, Kharagpur Mobile - (+91) 8001231685

Re: CMS based Website using Django

2010-04-09 Thread Pankaj Singh
m/p/django-mptt/ No local packages or download links found for django-mptt>0.2.1 error: Could not find suitable distribution for Requirement.parse('django-mptt>0.2.1') thanks Pankaj -- You received this message because you are subscribed to the Google Groups "Django users

invalid literal for int() with base 10

2010-04-13 Thread Pankaj Singh
10: 'About' Exception Location: /usr/lib/pymodules/python2.6/django/db/models/fields/__init__.py in get_db_prep_value, line 361 Python Executable: /usr/bin/python Python Version: 2.6.5 Python Path: ['/home/pankaj/bio_envision', '/usr/local/lib/python2.6/dist-packages/html5l

Re: invalid literal for int() with base 10

2010-04-13 Thread Pankaj Singh
ok i resolved .. primary key was the problem i was using name as pk instead of id -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email t

Not able to resolve this error

2010-04-15 Thread Pankaj Singh
?[-\w]+)/$ The current URL, weblog/2010/apr/14/how-it-functions/, didn't match any of these. You're seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard 404 page. please help -- -- -- Thanking You, Pa

Re: Not able to resolve this error

2010-04-15 Thread Pankaj Singh
Thanx Problem resolved :) -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more opt

Error: App with label forum could not be found. Are you sure your INSTALLED_APPS setting is correct?

2010-05-16 Thread Pankaj Singh
Error: App with label forum could not be found. Are you sure your INSTALLED_APPS setting is correct? how to get out of this ? -- -- -- Thanking You, Pankaj Kumar Singh, 2nd Year Undergraduate Student, Department of Agricultural and Food Engineering, Indian Institute of Technology, Kharagpur

Re: Error: App with label forum could not be found. Are you sure your INSTALLED_APPS setting is correct?

2010-05-16 Thread Pankaj Singh
I am geetting thi error when using ./manage.py sqlall forum On Sun, May 16, 2010 at 11:16 PM, Felippe Bueno wrote: > when are you getting this error ? > > On Sun, May 16, 2010 at 5:38 PM, Pankaj Singh < > singh.pankaj.iitkg...@gmail.com> wrote: > >> Error: App wi

Error was: cannot import name validators

2010-05-17 Thread Pankaj Singh
I am getting this error .. did a lot of googe search but not able to find a solution .. help please ViewDoesNotExist at /register/ Could not import user_registration.views. Error was: cannot import name validators Request Method: GET Request URL: http://127.0.0.1:/register/ Exception Type

Re: Error was: cannot import name validators

2010-05-18 Thread Pankaj Singh
pan...@pankaj-laptop:~/django_projects/pankaj$ python Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56) [GCC 4.4.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from django.core import validators Traceba

password reset getting error - 'function' object is not iterable

2010-05-27 Thread Pankaj Singh
ython Version: 2.6.5 ** -- -- -- Thanking You, Pankaj Kumar Singh, 2nd Year Undergraduate Student, Department of Agricultural and Food Engineering, Indian Institute of Technology, Kharagpur Mobile - (+91) 8001231685 -- You received this message because you are subscribed to the Google G

django-registration custom fields

2010-05-29 Thread Pankaj Singh
Hi I want to extend django-registration form by adding fields like first name last name date of birth country languages you speak etc. for my project .. how should i proceed for this .. -- -- -- Thanking You, Pankaj Kumar Singh, 2nd Year Undergraduate Student, Department of Agricultural and

Re: django-registration custom fields

2010-05-29 Thread Pankaj Singh
I tried extending RegistrationFormUniqueEmail class CustomRegistrationFormUniqueEmail(RegistrationFormUniqueEmail): first_name = forms.CharField(label=_('First name'), max_length=30,required=True) last_name = forms.CharField(label=_('Last name'), max_length=30, required=True) def save(

Re: django-registration custom fields

2010-05-31 Thread Pankaj Singh
I am using django-profiles with django-registration as per tutorial from http://praveensunsetpoint.wordpress.com/2009/04/21/django-registration-and-django-profile But after the submitting the form I am getting this error AttributeError at /accounts/register/ 'RegistrationForm' object has no att

Re: django-registration custom fields

2010-05-31 Thread Pankaj Singh
Thanks my problem has been resolved :) -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com.

PLEASE HELP ME IN ADDING A CATEGORY IN THE ADMIN SITE

2011-03-08 Thread pankaj sharma
same as categories i have to add affiliation to every college. so i added class Affiliation(models.Model): title = models.CharField(max_length=100) def __unicode__(self): return self.title to models.py and added one more field to class of colleges class College(models.Model):

problem using ManyToMany Field in admin

2011-03-22 Thread pankaj sharma
Environment: Request Method: GET Request URL: http://127.0.0.1:8000/admin/college/college/3/ Django Version: 1.3 rc 1 Python Version: 2.6.5 Installed Applications: ['django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messag

Advanced Search

2011-05-02 Thread pankaj sharma
i am new on django, i want to know how can we make advanced search on our website. i have database of colleges. and i want to provide the user to search the colleges by : city and name i have made single search where user can enter the query and it will show only those colleges having the query

Re: Advanced Search

2011-05-02 Thread pankaj sharma
thanks. On May 2, 1:52 am, Ankit Rai wrote: > Hi, > > Are city and name are the fields of your models?If yes than you can write > your custom search using queryset , refer search implementation in django > admin > > On Mon, May 2, 2011 at 1:41 PM, pankaj sharma > wrote:

django searching

2011-05-02 Thread pankaj sharma
hello all, i am trying to have an advanced search.. i have college list where there are many tables in college like college.name, collge.city college.state etc. so i have taken two strings from the user like Q1 and Q2. now i want to show all the colleges which have Q1 string in name and Q2 stri

stop repetition in template

2011-05-04 Thread pankaj sharma
hello friends, i have database of colleges. i want to show all cities so what is did is.. in template.. {% for college in list %} {{college.city}} {% endfor %} in views.py def list(request): college_list=College.objects.all() return render_

Re: stop repetition in template

2011-05-04 Thread pankaj sharma
actually i want both.. like LIST OF ALL COLLEGES: college1 city1 college2 city2 college3 city3 LIST OF CITIES city1 city2 city3 {but is city2 = city3} then it would show : LIST OF ALL COLLEGES: college1 city1 college2 city2 college3 city3 LIST OF CITIES city1 city2 --

ajax select box

2011-05-07 Thread pankaj sharma
hello everybody... i want to have an advanced search option... i have a college database.. which has city state and other things .. now i want to provide a search system to user such that they can search colleges by city and states and names i have given select box for states and city.. now

Re: ajax select box

2011-05-08 Thread pankaj sharma
but i dont know about jquery or ajax, can i get any example from any site , can u provide any link which has such code written On May 7, 12:10 pm, Shawn Milochik wrote: > You'll need to write JavaScript. > > Specifically: > >      Write a function that uses AJAX to pass the state to a Django view

filter in python

2011-05-08 Thread pankaj sharma
hello .. i am having a database of college which have a name city state branches etc... so class College(models.Model): name = models.CharField(max_length=250) city = models.ForeignKey(City) branch1 = models.BooleanField(default=False, blank=True) branch2 = models.BooleanField(de

Re: filter in python

2011-05-08 Thread pankaj sharma
can i do it without using haystak actually i just want to add one more filter .. On May 8, 11:18 am, Amanjeev Sethi wrote: > Is it possible for you to use Django Haystack for search? > > http://haystacksearch.org/ -- You received this message because you are subscribed to the Google Groups "Dj

Re: Django filefield

2011-05-08 Thread pankaj sharma
http://docs.djangoproject.com/en/dev/ref/models/fields/ may be this can help u. Regards: Pankaj On May 8, 1:32 pm, Pulkit Mehrotra wrote: > I want to create a system by which i can upload files to my database .This > database will be a set of question papers .These question papers

Re: filter in python

2011-05-09 Thread pankaj sharma
thanks for ur answer jani but i didn't get it . as i am getting one query for branch {which is Qbranch} so where i use this? On May 8, 10:40 pm, Jani Tiainen wrote: > On Sun, 2011-05-08 at 09:59 -0700, pankaj sharma wrote: > > hello .. > > > i am having a database of col

boolwan field filter

2011-05-09 Thread pankaj sharma
hello .. i am having a database of college which have a name city state branches etc... so class College(models.Model): name = models.CharField(max_length=250) city = models.ForeignKey(City) branch1 = models.BooleanField(default=False, blank=True) branch2 = models.BooleanField(default=

Re: filter in python

2011-05-09 Thread pankaj sharma
i have 4 branches in a college.. some college have three some have 4 and so on so i want to provide a search system to the user that they can see the list of all the colleges which are having some branch say branch2 may be he can select branch 3 and 4 and 1 also so i am taking a query from the

Re: filter in python

2011-05-10 Thread pankaj sharma
thanku very much. On May 9, 11:02 pm, Jani Tiainen wrote: > On Mon, 2011-05-09 at 06:15 -0700, pankaj sharma wrote: > > i have 4 branches in a college.. > > some college have three some have 4 and so on > > so i want to provide a search system to the user that they

haystack

2011-05-11 Thread pankaj sharma
hello friends, i want to use haystack for my website, but i am having too many problems to install it. in the dowumentation it is telling to add haystack to ur installed apps. now it it telling to do "HAYSTACK_SITECONF = 'myproject.search_sites'" now where should i type this i dont have any idea ab

Re: haystack

2011-05-12 Thread pankaj sharma
can u tell me which one is better in sphinx and haystack On May 11, 10:01 pm, Tarkeshwar Thakur wrote: > In your settings filehttp://docs.djangoproject.com/en/dev/topics/settings/ > > On Thu, May 12, 2011 at 10:20 AM, pankaj sharma > wrote: > > > > > > > >

File Field

2011-05-12 Thread pankaj sharma
Hello friends,. i want to upload some files to my database and show it to user .. how to add an filefield option to models.py and how to show them in admin.py. and how to let the users download the files... -- You received this message because you are subscribed to the Google Groups "Django user

files managing

2011-06-06 Thread pankaj sharma
hello everyone, i need some help; i want the users to download some files.. {say photos} and what setting do i have to take care using FileField. where all these photos will be stored and how can user download the photos -- You received this message because you are subscribed to the Google Groups

Re: imagefield problem .....

2011-06-13 Thread Pankaj Singh
yes even in get_image_url it will be return os.path.join(settings.MEDIA_URL, 'news', self.image.name.split('/')[-1]) -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/

let the users download files

2011-06-28 Thread pankaj sharma
hello friends , i have a database in which i have some files say photos... {i am uploading photos from django admin.} i want to make a template so that the users of my website can download these photos .. so can anyone provide me some useful information or any link -- You received this message be

Worshkop

2011-08-10 Thread pankaj sharma
hello friends there is a workshop to be conducted in india (kolkata) by ednect services, it will also include information about django if we want that everybody use django so everybody will try to conduct same kind of workshop in their cities. and also like this link http://www.facebook.com/pag

Re: WORKSHOP ON DJANGO AND OTHER WEBDESIGNING STUFF

2011-08-11 Thread pankaj sharma
please visit this link http://www.facebook.com/ednect On Aug 10, 10:05 pm, pankaj sharma wrote: > hello friends there is a workshop to be conducted in india (kolkata) > by ednect services, it will also include information about django > if we want that everybody use django so everybody

Re: Freelance Opportunity : Django Developer for building A Dialer

2024-04-29 Thread Pankaj Saini
I am interested in this position. I have an experience in Django Development with strong Python. On Tue, Apr 2, 2024, 10:49 PM Abhishek J wrote: > Dear Developers, > > I need to build an android and IOS phone dialer similar to Truecaller. > > We are seeking experienced and dedicated candidates

Re: E-comm live project

2024-04-29 Thread Pankaj Saini
Please share WhatsApp Group Link. On Mon, Mar 18, 2024, 10:56 PM 1001_prabhjot Singh wrote: > so i am working on a full stack e-comm website and this project is really > very big for me because it's a live project am using django for backend > interested one's can send there number for WhatsApp

Coding used for dropbox

2012-03-11 Thread pankaj sharma
Hello everyone, i want to know that which language and framework was used for making dropbox, and i want to make such website, so can i make it in django, if not which framework and language should i use? -- Pankaj Sharma Third Year Undergraduate Student Department of Civil Engineering Indian

Re: am new to use forms in django..

2012-07-01 Thread pankaj anand
Have you gone through this ? https://docs.djangoproject.com/en/dev/topics/forms/?from=olddocs On Saturday, 30 June 2012 01:09:47 UTC+5:30, rick wrote: > > > > On Sat, Jun 30, 2012 at 12:09 AM, rick wrote: > >> i dont knw where to make a form...right now i am making form in model.py >> ,with t

Re: Handling millions of rows + large bulk processing (now 700+ mil rows)

2012-07-01 Thread pankaj anand
+1 Please :) On Saturday, 30 June 2012 20:40:27 UTC+5:30, Cal Leeming [Simplicity Media Ltd] wrote: > > Hi all, > > As some of you know, I did a live webcast last year (July 2011) on our LLG > project, which explained how we overcome some of the problems associated > with large data processing

Re: Use regular expression to retrieve all image tags from a given content

2012-07-01 Thread pankaj anand
You can also use Pyquery for this purpose.. On Saturday, 30 June 2012 18:07:13 UTC+5:30, mo.mughrabi wrote: > > Hello, > > am really a noob with regular expressions, I tried to do this on my own > but I couldn't understand from the manuals how to approach it. Am trying to > find all img tags of

Re: Javascript in external file not working

2012-11-26 Thread Pankaj Singh
f is defined. But you say that, url for js file works. Please use Firebug addon in Firefox to see javascript errors. -- Pankaj -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@goog

Re: Django 1.5 custom User model error. "Manager isn't available; User has been swapped"

2012-11-27 Thread Pankaj Singh
Hi, You need to unregister `User` model from admin site before registering new one. admin.site.unregister(User) admin.site.register(CustomUser, UserAdmin) Please have a look at http://stackoverflow.com/a/2270704/353550 Pankaj Singh http://about.me/psjinx On Mon, Nov 26, 2012 at 9:14 PM

Re: How do I prevent delete from table that has foreign key references

2013-01-20 Thread Pankaj Singh
: [1]: https://docs.djangoproject.com/en/dev/ref/models/fields/#django.db.models.ForeignKey.on_delete Pankaj Singh http://about.me/psjinx On Mon, Jan 21, 2013 at 12:42 AM, Subodh Nijsure wrote: > Hi, > > Say I have model that comprises of Books and Authors. Where a book may have &

Re: How do I prevent delete from table that has foreign key references

2013-01-20 Thread Pankaj Singh
> s/PREVENT/PROTECT/ My mistake. Pankaj Singh http://about.me/psjinx On Mon, Jan 21, 2013 at 8:08 AM, Javier Guerra Giraldez wrote: > On Sun, Jan 20, 2013 at 2:21 PM, Pankaj Singh wrote: >> As per docs, on_delete=models.PREVENT, prevents deletion of the >> referenced

Re: looking for an app to view various github repositories within a django powered site

2013-01-21 Thread Pankaj Singh
ub/ 2. https://github.com/frozenskys/django-github 3. https://github.com/omab/django-social-auth 4. https://github.com/pennersr/django-allauth 5. https://github.com/sigmavirus24/github3.py 6. http://developer.github.com/v3/libraries/#python 7. https://github.com/sethtrain/django-git Pankaj Singh

Re: how to get all objects related to a particular user using django ContentType Framework

2013-01-23 Thread Pankaj Singh
to use in your case. Pankaj Singh http://about.me/psjinx On Wed, Jan 23, 2013 at 2:30 PM, Sarfraz ahmad wrote: > hello friends > i have a project with 7 applications installed in it and i > want to get all the objects related to a particular user from all the > app

Re: how to get all objects related to a particular user using django ContentType Framework

2013-01-23 Thread Pankaj Singh
## do something with object FYI, getattr(user, link) is manager for that relate object. Pankaj Singh http://about.me/psjinx On Wed, Jan 23, 2013 at 2:42 PM, Pankaj Singh wrote: > Hey Sarfraz, > > You can use any of following methods: > > User._meta.get_all_rel

Re: how to get all objects related to a particular user using django ContentType Framework

2013-01-23 Thread Pankaj Singh
? Pankaj Singh http://about.me/psjinx On Wed, Jan 23, 2013 at 3:29 PM, Sarfraz ahmad wrote: > thanx buddy bt i wish to do it in a manner that a model which has a foreign > key to ContentType, when i make a query on this model it returns all the > objects from various apps related to curre

Re: Upload multiple files using Ajax

2013-01-23 Thread Pankaj Singh
"type": "image/jpeg", "size": flat.image.size, "delete_url": reverse("delete_flat", args=[flat.pk]), "delete_type": "DELETE", "description": flat.des

Re: Where can I put code that will get executed when page refreshes

2013-01-23 Thread Pankaj Singh
Hey, You must be using a context variable to fill your `side_menu` block. One reason for failure can be that, context variable is available in template when `ntw.views.index` is called but not available when 'staff.views.index' is called. -- Pankaj Singh http://about.me/psjinx On T

Re: how to get all objects related to a particular user using django ContentType Framework

2013-01-23 Thread Pankaj Singh
If you want to get all `A11M1_user_items` objects then following query should work -- Pankaj Singh http://about.me/psjinx On Wed, Jan 23, 2013 at 3:53 PM, Sarfraz ahmad wrote: > i have the same model having one foreignkey to User and second to the > ContentType > > class A11M

Re: how to get all objects related to a particular user using django ContentType Framework

2013-01-23 Thread Pankaj Singh
to get original object. I used similar approach for creating a new feed similar to facebook. Please have a look at related stackoverflow question, http://stackoverflow.com/questions/2128886/django-way-for-building-a-news-feed-status-update-activity-stream. -- Pankaj Singh http://about.me/psjinx

Re: download pdf in admin

2013-01-23 Thread Pankaj Singh
://docs.djangoproject.com/en/1.4/howto/static-files/#serving-other-directories . -- Pankaj Singh http://about.me/psjinx On Tue, Jan 22, 2013 at 6:08 AM, grat wrote: > hi, > > i cannot download file upladed by admin. > > i have this model: > class Smlouvy(models.Model): > note

Re: how to get all objects related to a particular user using django ContentType Framework

2013-01-23 Thread Pankaj Singh
following i = items[0] `i.content_object` will refer to original object used. Please go through official documentation for GenericForeignKey once more. Links: 1. https://docs.djangoproject.com/en/1.4/ref/contrib/contenttypes/#django.contrib.contenttypes.generic.GenericForeignKey -- Pankaj Singh

Re: django-registration-template

2013-01-23 Thread Pankaj Singh
Hey Sameer, His project uses twitter bootstrap forms in templates. That's the only unique thing about this project. If you are looking for an email based registration app in django which uses bootstrap forms then you can use this one. -- Pankaj Singh http://about.me/psjinx On Wed, J

Re: django admin - changelist view: keep selected items on multiple pages

2013-01-23 Thread Pankaj Singh
-refresh/p1. -- Pankaj Singh http://about.me/psjinx On Wed, Jan 23, 2013 at 2:12 PM, luke lukes wrote: > a question about admin: in the changelist page, is it possible to keep the > selected items of a page while going to another page and returning to it. > > I mean: > > I&#x

Re: interplay between django and twitter-bootstrap...

2013-01-23 Thread Pankaj Singh
make things more dynamic This will give you basic understanding of `how to integrate django+bootstrap". -- Pankaj Singh http://about.me/psjinx On Wed, Jan 23, 2013 at 9:53 AM, SameerOak wrote: > Hello, > > I am new to web development and python and django was my immediate choice t

Re: BigAutoField

2013-01-23 Thread Pankaj Singh
Hey Steve, You should ask this questions in django-developers mailing list as it's related to development of django itself. It will be best to hear comments from Core Developers. -- Pankaj Singh http://about.me/psjinx On Wed, Jan 23, 2013 at 6:58 PM, SteveB wrote: > Can anybody pr

Re: How Django sends push notifications.

2013-01-27 Thread Pankaj Singh
s blog post - http://highonpython.com/index.php/setting-up-ios-push-notifications-apns-with-pythondjango-through-pyapns/ -- Pankaj -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails

Re: Missing files on a new project

2013-01-27 Thread Pankaj Singh
ubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com 'django-users%2bunsubscr...@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: Bookmarker Site

2013-01-29 Thread Pankaj Singh
of several layers of logic - from HTTP-level request handling, to formvalidation and proceIn [7]: -- Pankaj Singh http://about.me/psjinx On Mon, Jan 28, 2013 at 8:21 AM, Ranjith Kumar wrote: > Hello All, > I wanted to build bookmarking web application using django, in this app user > can

Re: Custum save on Foreignkey in Admin

2013-02-02 Thread Pankaj Singh
/#django.contrib.admin.ModelAdmin.save_formset 2. https://docs.djangoproject.com/en/1.4/ref/contrib/admin/#django.contrib.admin.ModelAdmin.save_formset Sincerely, Pankaj Singh http://about.me/psjinx On Sat, Feb 2, 2013 at 8:29 PM, Rob wrote: > I have two models: > > class Tickets(models.Model): >

Re: Custum save on Foreignkey in Admin

2013-02-02 Thread Pankaj Singh
http://stackoverflow.com/questions/8294889/override-save-on-django-inlinemodeladmin Sincerely, Pankaj Singh http://about.me/psjinx On Sun, Feb 3, 2013 at 1:34 AM, Pankaj Singh wrote: > Hey Rob, > > You can override save_formset() method of ModelAdmin for this. Create &

Re: Custum save on Foreignkey in Admin

2013-02-04 Thread Pankaj Singh
, TicketAdmin) I hope it helps. Sincerely, Pankaj Singh http://about.me/psjinx On Mon, Feb 4, 2013 at 9:01 PM, Rob van Dam | Camping het Wieskamp wrote: > Hi Pankaj, > > I have tried many things today, but unfortunately I cannot get anything > working :-( Can you give me a bit more in

Re: Custum save on Foreignkey in Admin

2013-02-04 Thread Pankaj Singh
Yes, save_formset() has only those instances whose fields were changed. Sincerely, Pankaj Singh http://about.me/psjinx On Mon, Feb 4, 2013 at 10:46 PM, Rob van Dam wrote: > Hi Pankaj, > > Thank you so much You have saved my day :-) I will be able to test it > tomorrow, and I

Re: Custum save on Foreignkey in Admin

2013-02-05 Thread Pankaj Singh
size. Sincerely, Pankaj Singh http://about.me/psjinx On Tue, Feb 5, 2013 at 1:13 PM, Avnesh Shakya wrote: > plz tell me why this error is coming here... after setting urls.py. > plz help me.. > ViewDoesNotExist at /admin/ > > > Could not import foo.views.index. View does n

Re: how to delete in the admin - strategy needed

2013-02-05 Thread Pankaj Singh
ender, instance, *args, **kwargs): instance.clean_out() Sincerely, Pankaj Singh http://about.me/psjinx On Tue, Feb 5, 2013 at 12:15 PM, Mike Dewhirst wrote: > Could someone please point out my mistake? > > def clean_out(self): > child_lst = list(Child.objects.

Re: Django superstars I should be following?

2013-02-05 Thread Pankaj Singh
/djangolinks https://twitter.com/djangodose https://twitter.com/djangosnippets You might be interested in https://twitter.com/statuscode (weekly newsletter) https://twitter.com/pycoders (weekly newsletter) You can find more in twitter recommendations. Sincerely, Pankaj Singh http://about.me

Re: Error passing data from views to template

2013-02-18 Thread Pankaj Singh
ce code for Context class ( https://github.com/django/django/blob/1.4.3/django/template/context.py#L84). Sincerely, Pankaj Singh http://about.me/psjinx On Mon, Feb 18, 2013 at 12:04 AM, Tiago Carvalho wrote: > Hello, > > I'm new to Django and I'm with an error, passing data from v

Re: Conflict of admin applications for jquery

2013-02-18 Thread Pankaj Singh
lliproject.com/ 6. http://django-admin-tools.readthedocs.org/en/latest/ Sincerely, Pankaj Singh http://about.me/psjinx On Sun, Feb 17, 2013 at 1:11 PM, Владимир Паль wrote: > Hi, I have following problem. > It is quite often that django admin plugins include their own version of > jquery an

Re: Custom Http404 like exception

2013-02-18 Thread Pankaj Singh
/wsgi.py#L245-L253 This response is served by Webserver. Sincerely, Pankaj Singh http://about.me/psjinx On Mon, Feb 18, 2013 at 6:15 PM, Serge G. Spaolonzi wrote: > Hi, > > How does the Http404 exception works internally? > I want to make the same but with for a 401 code and a custo

Re: Is it necessary to restart server after a change?

2013-02-18 Thread Pankaj Singh
Hey, Touching wsgi.py file is enough. Find more details at http://code.google.com/p/modwsgi/wiki/ReloadingSourceCode#Reloading_In_Daemon_Mode Sincerely, Pankaj Singh http://about.me/psjinx On Mon, Feb 18, 2013 at 7:56 PM, frocco wrote: > Hello, > > In PHP, if I make a change to the

Re: Templates error on partial rendering

2013-02-18 Thread Pankaj Singh
VALID to "%s %s" and that will cause a formatting error to be raised. https://docs.djangoproject.com/en/1.2/ref/templates/api/#how-invalid-variables-are-handled Sincerely, Pankaj Singh http://about.me/psjinx On Mon, Feb 18, 2013 at 4:02 PM, andrea crotti wrote: > I have a case where w

Re: Is it necessary to restart server after a change?

2013-02-18 Thread Pankaj Singh
will occur at the time of the > first request to arrive after the change has been made. The way that the > restart is performed does not affect the handling of the request, with it > still being processed once the daemon process has been restarted. This is standard deployment practice.

Re:

2013-02-18 Thread Pankaj Singh
Hey, You need to import UserenaBaseProfile in your models.py before defining MyProfile class. from userena.models import UserenaBaseProfile http://docs.django-userena.org/en/latest/installation.html#profiles Sincerely, Pankaj Singh http://about.me/psjinx On Tue, Feb 19, 2013 at 12:36 PM

Re:

2013-02-18 Thread Pankaj Singh
Right. 'UsernaBaseProfile' should be 'UserenaBaseProfile'. Sincerely, Pankaj Singh http://about.me/psjinx On Tue, Feb 19, 2013 at 12:53 PM, Zhao Quan wrote: > thanks I resolve that issue, > seems the parameter miss a 'e'. > > > On Tue, Feb 19, 2

Re: error in templates...

2013-02-19 Thread Pankaj Singh
Hey Avnesh, In your templates you have written following lines homeaboutarchivecontact Change them to following, notice single quotes surrounding url pattern name homeaboutarchivecontact Sincerely, Pankaj Singh http://about.me/psjinx On Tue, Feb 19, 2013 at 4:06 PM, Avnesh Shakya wrote

Re: error in templates...

2013-02-19 Thread Pankaj Singh
Hey, I asked you to make changes in templates (i.e. home.html, about.html etc.) and not urls.py. Sincerely, Pankaj Singh http://about.me/psjinx On Tue, Feb 19, 2013 at 4:56 PM, Avnesh Shakya wrote: > hi pankaj, i have got again error same.. > if i change &g

Re: error in templates...

2013-02-19 Thread Pankaj Singh
name="contact"), url(r'^archive/$', direct_to_template, {"template": "archive.html"}, name="archive"), ) Sincerely, Pankaj Singh http://about.me/psjinx On Tue, Feb 19, 2013 at 5:06 PM, Avnesh Shakya wrote: > ya i have done it but

Re: error in templates...

2013-02-19 Thread Pankaj Singh
Hey, You are not using reverse in your views.py. I'm not sure what is causing your problem. hi, if you have any mini project on django, plz share, i m beginner it can > be helpful for me... plz share if u have.. Django By Example - http://lightbird.net/dbe2/ Sincerely, Pankaj Si

Re: how to create attribute for image in django models.py

2013-02-20 Thread Pankaj Singh
good at basics. This book is not for beginners. It's good to do your homework before posting a question on public forums/mailing lists. Please read 1. http://www.catb.org/esr/faqs/smart-questions.html 2. http://stackoverflow.com/questions/how-to-ask Happy Coding !! Sincerely, P

Re: looking for a Django app for annual subscriptions

2013-02-20 Thread Pankaj Singh
ing open sourced. I would like to contribute if you end up writing a new app. Sincerely, Pankaj Singh http://about.me/psjinx On Wed, Feb 20, 2013 at 11:16 AM, James Socol wrote: > On Tuesday, February 19, 2013 10:36:49 PM UTC-5, Mike Dewhirst wrote: >> >> Does anyone know of

Re: No django 1.0.4 file on PYPI

2013-02-20 Thread Pankaj Singh
cs.org/en/latest/intro/tutorial01.html Only some of topics have been translated till now. This translation project on Github (https://github.com/python-docs-ko/django-docs-ko). May be you can contribute in future :) Sincerely, Pankaj Singh http://about.me/psjinx On Wed, Feb 20, 2013 at 6:35

Re: Cannot find ../django/contrib/admin/media

2013-02-20 Thread Pankaj Singh
/webapps/project_name. I will upload an example project to Github in few days. Sincerely, Pankaj Singh http://about.me/psjinx On Wed, Feb 20, 2013 at 9:06 PM, Vittorio wrote: > As a newbye I'm using django 1.4.3 under Mac OS X. > Reading the tutorials (and an Italian book on django by

Re: comment templates

2013-02-21 Thread Pankaj Singh
atetag-render_comment_list> : {% render_comment_list for [object] %} For example: {% render_comment_list for event %} This will render comments using a template named comments/list.html, a default version of which is included with Django. Sincerely, Pankaj Singh http://about.me/psjinx On Thu, Feb

  1   2   >