Re: (ModelForm) confusion

2014-07-30 Thread Satinderpal Singh
> Required code: > models.py: http://pastie.org/9430952 > forms.py: http://pastie.org/9430955 Page doesn't exist :( > views.py: http://pastie.org/9430962 -- Satinderpal Singh http://satindergoraya91.blogspot.in/ -- You received this message because you are subscribed to the Google G

Django OneToOne field problem

2014-06-12 Thread Satinderpal Singh
= models.CharField(max_length=1000, blank=True) footer = models.CharField(max_length=150, blank=True) In the above table "Content" the OneToOne field contains the Link.id attribute of the table"Link", but how could i get it as, Link.links. -- Satinderpal Singh htt

Re: Adding models from one app to another app

2014-05-28 Thread Satinderpal Singh
om useraccounts.models import * > I tried by adding 'appname.modelname' in foreign key field but it actually > refrences librehatti.useraccounts.address, which is not what I want. > > Any help would be appreciated. -- Satinderpal Singh http://satindergoraya91.blogspot.in/ -- You

ImportError: No module named django.core.wsgi

2014-05-23 Thread Satinderpal Singh
to resolve the error. -- Satinderpal Singh -- 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 gro

Re: Foreign key attribute in django

2014-03-22 Thread Satinderpal Singh
On Mar 22, 2014 8:27 PM, "Harjot Mann" <harjotmann1...@gmail.com> wrote: > > On Sat, Mar 22, 2014 at 8:19 PM, Satinderpal Singh > <satinder.goray...@gmail.com> wrote: > > And the same problem is still there:) > > Please show me the code. > > Sorry

Re: submit buttons in django

2014-03-22 Thread Satinderpal Singh
data from first form and wishes to redirect the other form then you have to follow another approach. -- Satinderpal Singh -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving e

Re: Foreign key attribute in django

2014-03-22 Thread Satinderpal Singh
this? > And the same problem is still there:) Please show me the code. -- Satinderpal Singh -- 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-us

Re: no value in database

2013-09-30 Thread Satinderpal Singh
not getting I think it must be SuspenceEditJob. -- Satinderpal Singh -- 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...@googleg

Re: ValueError at / Empty module name

2013-09-04 Thread Satinderpal Singh
to have a comma after messages proccesor Thanks a lot Mantas. > > On Wed, Sep 4, 2013 at 12:53 PM, Mantas Zilinskis > <mantaszilins...@gmail.com> wrote: >> >> and also all your traceback >> >> >> On Wed, Sep 4, 2013 at 12:45 PM, Satinderpal Singh >> &

Re: ValueError at / Empty module name

2013-09-04 Thread Satinderpal Singh
/importlib.py" in import_module 35. __import__(name) Exception Type: ValueError at / Exception Value: Empty module name -- Satinderpal Singh -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe f

Re: ValueError at / Empty module name

2013-09-04 Thread Satinderpal Singh
'class': 'django.utils.log.AdminEmailHandler' } }, 'loggers': { 'django.request': { 'handlers': ['mail_admins'], 'level': 'ERROR', 'propagate': True, }, } } -- Satinderpal Singh -- You received this message because you are subscribed t

ValueError at / Empty module name

2013-09-04 Thread Satinderpal Singh
-packages/django/utils/importlib.py in import_module, line 35 Python Executable:/usr/bin/python Python Version:2.7.3 How could i solve this? -- Satinderpal Singh -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from

Re: upgrading to 1.5.1

2013-08-18 Thread Satinderpal Singh
ly customized for your site. -- Satinderpal Singh -- 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 t

Fwd: Django url error

2013-08-15 Thread Satinderpal Singh
application = django.core.handlers.wsgi.WSGIHandler() sys.path.append('/home/goraya/') But got the error: The requested URL /lret was not found on this server. please check where i am going wrong? -- Satinderpal Singh -- You received this message because you are subscribed to the Google Groups

Re: Iterating over fields in Formset

2013-08-10 Thread Satinderpal Singh
eally appreciated. > Waiting. > > -- > Sandeep Kaur > E-Mail: mkaurkha...@gmail.com > Blog: sandymadaan.wordpress.com I think in the your views you are trying to save it under the formsets, try to save the formsets under the form to save all the required rows. -- Satinderpal Sing

Re: new field in models

2013-07-22 Thread Satinderpal Singh
out dropping the table South is an alternative, it creates table fields without syncdb. -- Satinderpal Singh -- 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 dja

Re: Search from database

2013-07-20 Thread Satinderpal Singh
On Sat, Jul 20, 2013 at 8:48 AM, Kamal Kaur <kamal.kaur...@gmail.com> wrote: > Can we have a search module in django that can suggest resembling > spellings from mysql database? > I am not getting you, please expalin. -- Satinderpal Singh -- You received this message because you

Re: Django polls application problem

2013-06-20 Thread Satinderpal Singh
cribe 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

Re: (1242, 'Subquery returns more than 1 row')

2013-04-01 Thread Satinderpal Singh
pend({"client__client__first_name":client__client__first_name," > client__client__middle_name": client__client__middle_name,.}) > > > temp = {'client':table1, 'cubee':cubee, 'Head':Head, > 'organisation':organisation,'department':department,} > > > I h

(1242, 'Subquery returns more than 1 row')

2013-03-31 Thread Satinderpal Singh
{{ add.client__client__first_name}} {{ add.client__client__middle_name}} {{add.client__client__last_name}} 14 {{add.client__client__address}} 15 {{ add.client__client__city}} 16 {% endfor %} 17 Can anybody help me to solve this error. -- Satinderpal Singh http://devplace.in/~satinder/wordpress/ http

Re: Goodbye, Malcolm

2013-03-19 Thread Satinderpal Singh
ogle.com/group/django-developers?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > -- Satinderpal Singh http://devplace.in/~satinder/wordpress/ http://satindergoraya.blogspot.in/ http://satindergoraya91.blogspot.in/ -- You received this message because you

error at /accounts/register/ [Errno 101] Network is unreachable

2013-03-17 Thread Satinderpal Singh
= '*' EMAIL_USE_TLS = True EMAIL_PORT = 587 -- Satinderpal Singh http://devplace.in/~satinder/wordpress/ http://satindergoraya.blogspot.in/ http://satindergoraya91.blogspot.in/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from

Re: Saving browser output as pdf

2013-02-24 Thread Satinderpal Singh
m 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. > > -- Sa

Re: Saving browser output as pdf

2013-02-24 Thread Satinderpal Singh
rt download as a PDF document, use @Mike's > solution. > > Good Luck, Thanks. > > Mark > > > On Sun, Feb 24, 2013 at 8:04 AM, Satinderpal Singh > <satinder.goray...@gmail.com> wrote: >> >> On Sun, Feb 24, 2013 at 8:00 PM, Nick Apostolakis <nicka...@oncr

Re: Saving browser output as pdf

2013-02-24 Thread Satinderpal Singh
On Sun, Feb 24, 2013 at 8:00 PM, Nick Apostolakis <nicka...@oncrete.gr> wrote: > On 24/02/2013 03:15 μμ, Satinderpal Singh wrote: >> >> Thanks a lot to all. I noted your suggestions, and will try to >> implement one which would be best suit to my requirement. >> &

Re: saving get objects to models

2013-01-22 Thread Satinderpal Singh
saved. > Hope this helps you. -- Satinderpal Singh http://satindergoraya.blogspot.in/ http://satindergoraya91.blogspot.in/ -- 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@googlegroup

Re: saving get objects to models

2013-01-22 Thread Satinderpal Singh
the context of Django. I used the logic given by you but it did not worked. How will i save the value of material in the database name field. -- Satinderpal Singh http://satindergoraya.blogspot.in/ http://satindergoraya91.blogspot.in/ -- You received this message because you are subscribed to the

Re: new user

2012-12-21 Thread Satinderpal Singh
On Fri, Dec 21, 2012 at 5:57 PM, senthil mariyappan <senthilbs...@gmail.com> wrote: > hi friends, i new one to django.. Welcome to the Django family. -- Satinderpal Singh http://satindergoraya.blogspot.in/ http://satindergoraya91.blogspot.in/ -- You received this message be

Re: IntegrityError

2012-12-18 Thread Satinderpal Singh
On Tue, Dec 18, 2012 at 12:25 PM, Sandeep kaur <mkaurkha...@gmail.com> wrote: > On Tue, Dec 18, 2012 at 2:48 AM, Satinderpal Singh > <satinder.goray...@gmail.com> wrote: >> I created a search box for searching the information about the client >> so that this informa

Re: IntegrityError

2012-12-18 Thread Satinderpal Singh
lank=True) Header_column_2 = models.CharField(max_length=255,blank=True) Footer_column_3 = models.CharField(max_length=255,blank=True) def __str__(self): return self.refrence_no > > On Monday, December 17, 2012 1:18:54 PM UTC-8, Satinderpal Singh wrote: >> >> I created

Re: Can't undestrand Url pagination and template

2012-12-02 Thread Satinderpal Singh
the book speaks about a > previous version of django. > Anyone has a good tutorial on templates. > I'm trying with the website of django hoping on something better. Let me > know This book may help you to understand urls and templates in better way: http://www.djangobook.com/en/2.0/cha

Re: calling the view function in the other view function

2012-11-30 Thread Satinderpal Singh
more complex calls into this: Thanks, for the kind advise. > return render ( request, 'report/report_base.html', {'Head':Head,} ) > > -- Satinderpal Singh http://satindergoraya.blogspot.in/ http://satindergoraya91.blogspot.in/ -- You received this message because you are subscribed to the Goog

Fwd: Ignoring _ character an showing % character in the Django

2012-11-27 Thread Satinderpal Singh
How do i write the column names in the django models so that it ignores _ character and show % in the output label of templates. -- Satinderpal Singh http://satindergoraya.blogspot.in/ http://satindergoraya91.blogspot.in/ -- Satinderpal Singh http://satindergoraya.blogspot.in/ http

TypeError:

2012-11-15 Thread Satinderpal Singh
what error is this, and how will save the array values to my models. -- Satinderpal Singh http://satindergoraya.blogspot.in/ http://satindergoraya91.blogspot.in/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send e

Adding rows to the form

2012-11-15 Thread Satinderpal Singh
for adding the row can add the row to the form but saves only the first entry of the first row but not saved the entries of the rows that can be added by the add button. Can anybody tell me how would i solve this problem. Any help would be highly appreciated. -- Satinderpal Singh http

Re: login using an external database

2012-11-09 Thread Satinderpal Singh
{ 'NAME': 'app_data', 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'USER': 'postgres_user', 'PASSWORD': 's3krit' }, 'users': { 'NAME': 'user_data', 'ENGINE': 'django.db.backends.mysql', 'USER': 'mysql_user', 'PASSWORD':

Re: login using an external database

2012-11-09 Thread Satinderpal Singh
med 'matricula' and 'password', and so i log on > this user in my app... If you want to join the two application databases, use the following query. from django.appName import TableName -- Satinderpal Singh http://satindergoraya.blogspot.in/ http://satindergoraya91.blogspot.in/ -- You received this m

Re: 'FormSet' object has no attribute 'save'

2012-10-17 Thread Satinderpal Singh
On Wed, Oct 17, 2012 at 4:49 PM, Tom Evans <tevans...@googlemail.com> wrote: > On Wed, Oct 17, 2012 at 7:06 AM, Satinderpal Singh > <satinder.goray...@gmail.com> wrote: >> I used formsets for different forms in my project, it displays the >> forms to user but o

'FormSet' object has no attribute 'save'

2012-10-17 Thread Satinderpal Singh
formset = ChemicalFormSet() return render_to_response('report/report_add_row.html', {'formset': formset}, context_instance=RequestContext(request)) -- Satinderpal Singh http://satindergoraya.blogspot.in/ http://satindergoraya91.blogspot.in/ -- You received this message b

Adding a new row to the database in user form

2012-10-15 Thread Satinderpal Singh
Hello, I want to add a new row in the existing database table by using add button in the html form from the user as user can create as much rows in the table as he needed, how will i add this? Thanks, in advance. -- Satinderpal Singh http://satindergoraya.blogspot.in/ http://satindergoraya91

Re: The view didn't return an HttpResponse object.

2012-10-01 Thread Satinderpal Singh
once >> is_valid() returns False so I **guess** that's where the problem lies. >> >> Try re-rendering the submitted form if is_valid is False or doing a >> redirect. >> >> On 10/1/12, Satinderpal Singh <satinder.goray...@gmail.com> wrote: >>> I made a mo

Re: The view didn't return an HttpResponse object.

2012-10-01 Thread Satinderpal Singh
On Mon, Oct 1, 2012 at 4:27 PM, Tom Evans <tevans...@googlemail.com> wrote: > On Mon, Oct 1, 2012 at 11:36 AM, Satinderpal Singh > <satinder.goray...@gmail.com> wrote: I add the following to my code, >> I made a model form and a view which accepts input as a form and &

The view didn't return an HttpResponse object.

2012-10-01 Thread Satinderpal Singh
regarding this will be highly appreciated. -- Satinderpal Singh http://satindergoraya.blogspot.in/ http://satindergoraya91.blogspot.in/ -- 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

Re: Extending templates

2012-09-18 Thread Satinderpal Singh
On Tue, Sep 18, 2012 at 3:45 PM, Tom Evans <tevans...@googlemail.com> wrote: > On Mon, Sep 17, 2012 at 8:14 AM, Satinderpal Singh > <satinder.goray...@gmail.com> wrote: >> I want to extend a template file into the other file. I get fine >> results when done simply b

Re: Extending templates

2012-09-18 Thread Satinderpal Singh
; block is ignored. You have lots of content outside the named blocks, > so this is probably causing you some grief. > But I have used different block names for both the files. So I don't think there is any chance of overriding of data. -- Satinderpal Singh http://satindergoraya.blogspot.in/

Re: Extending templates

2012-09-17 Thread Satinderpal Singh
done simply but whenever I use the template containing >> >> 'for' tag into the other, it does not show any results. >> >> My code for template which is to be extended is here : >> >> >> >> #template file to be extended into the other >> >> &

Re: Extending templates

2012-09-17 Thread Satinderpal Singh
ations in organisation %} >> > >{{organisations.name}} >> {{organisations.address}} >> {% endfor %} >> >> >> {% endblock %} >> >> {% block content %}{% endblock %} >> >> Please see where

Extending templates

2012-09-17 Thread Satinderpal Singh
. -- Satinderpal Singh http://satindergoraya.blogspot.in/ http://satindergoraya91.blogspot.in/ -- 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@googlegroups.com. To unsubscribe from this g

Using array for making form

2012-09-05 Thread Satinderpal Singh
thy code. If anybody tell me how i'll do it. Thanks in advance. -- Satinderpal Singh http://satindergoraya.blogspot.in/ http://satindergoraya91.blogspot.in/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send emai

Re: GeometryField in OSMGeoAdmin

2012-08-23 Thread Satinderpal Singh
? Is there any documentation available for that? Please tell me any possible way to deploy OSM to my project. Thanks in advance. -- Satinderpal Singh http://satindergoraya.blogspot.in/ -- You received this message because you are subscribed to the Google Groups "Django users" grou

Re: ImproperlyConfigured at /

2012-08-20 Thread Satinderpal Singh
app_directories.load_template_source > TO > django.template.loaders.app_directories.Loader > in the TEMPLATE_LOADERS dictionary in your settings.py file and it > should have it fixed. > > > On Mon, Aug 20, 2012 at 4:30 PM, Satinderpal Singh > <satinder.goray...@gmail.com> wrote: >> I have to

ImproperlyConfigured at /

2012-08-20 Thread Satinderpal Singh
it in the browser, it gives the following error: Error importing template source loader django.template.loaders.filesystem.load_template_source: "'module' object has no attribute 'load_template_source'" If anybody helps me to solve the problem. Thanks in advance. -- Satinderpal

Re: DJANGO_DEFAULT_SETTINGS

2012-08-14 Thread Satinderpal Singh
k.com/en/2.0/chapter03/ -- Satinderpal Singh http://satindergoraya.blogspot.in/ -- 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@googlegroups.com. To unsubscribe from this group, send

Re: AttributeError

2012-08-13 Thread Satinderpal Singh
On Mon, Aug 13, 2012 at 6:06 PM, Melvyn Sopacua <m.r.sopa...@gmail.com> wrote: > On 13-8-2012 14:23, Melvyn Sopacua wrote: >> On 13-8-2012 13:47, Satinderpal Singh wrote: >> >>> I got the following error while making the tables in database using >>>

AttributeError

2012-08-13 Thread Satinderpal Singh
Hi, I got the following error while making the tables in database using syncdb command: AttributeError: 'DatabaseOperations' object has no attribute 'geo_db_type' I recently install GEOS library and import it to my model.py file. Any help will be appreciated, thanks in advance. -- Satinderpal

Re: Login/ Logout user details

2012-08-09 Thread Satinderpal Singh
you just download it and install to your system by following the instruction in readme file present with that package. Follow the links like http://docs.b-list.org/django-registration/0.8/quickstart.html http://forum.webfaction.com/viewtopic.php?id=2230 -- Satinderpal Singh http://satindergoraya.blo