Re: Login/ Logout user details

2012-08-09 Thread Satinderpal Singh
tall 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.blogspot.in/ -- You received

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 advan

Re: AttributeError

2012-08-13 Thread Satinderpal Singh
On Mon, Aug 13, 2012 at 6:06 PM, Melvyn Sopacua 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 >>> syncdb command: >>> >>&

Re: DJANGO_DEFAULT_SETTINGS

2012-08-14 Thread Satinderpal Singh
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 email to

ImproperlyConfigured at /

2012-08-20 Thread Satinderpal Singh
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 advanc

Re: ImproperlyConfigured at /

2012-08-20 Thread Satinderpal Singh
ers.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 > wrote: >> I have to deploy osmeditor on my system, and download code from the >> link: http://

Re: GeometryField in OSMGeoAdmin

2012-08-23 Thread Satinderpal Singh
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" group. To po

Using array for making form

2012-09-04 Thread Satinderpal Singh
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

Extending templates

2012-09-17 Thread Satinderpal Singh
oing wrong. -- 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 f

Re: Extending templates

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

Re: Extending templates

2012-09-17 Thread Satinderpal Singh
;> >> '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 >> >> >> >> >> >> {% block

Re: Extending templates

2012-09-18 Thread Satinderpal Singh
named > 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://satindergora

Re: Extending templates

2012-09-18 Thread Satinderpal Singh
On Tue, Sep 18, 2012 at 3:45 PM, Tom Evans wrote: > On Mon, Sep 17, 2012 at 8:14 AM, Satinderpal Singh > wrote: >> I want to extend a template file into the other file. I get fine >> results when done simply but whenever I use the template containing >> 'for' ta

The view didn't return an HttpResponse object.

2012-10-01 Thread Satinderpal Singh
t(request)) Any help 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 po

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 wrote: > On Mon, Oct 1, 2012 at 11:36 AM, Satinderpal Singh > wrote: I add the following to my code, >> I made a model form and a view which accepts input as a form and >> display it in the html format. As when i refresh the html page

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

2012-10-01 Thread Satinderpal Singh
**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 wrote: >>> I made a model form and a view which accepts input as a form and >>> disp

Adding a new row to the database in user form

2012-10-14 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

'FormSet' object has no attribute 'save'

2012-10-16 Thread Satinderpal Singh
else: formset = ChemicalFormSet() return render_to_response('report/report_add_row.html', {'formset': formset}, context_instance=RequestContext(request)) -- Satinderpal Singh http://satindergoraya.b

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

2012-10-17 Thread Satinderpal Singh
On Wed, Oct 17, 2012 at 4:49 PM, Tom Evans wrote: > On Wed, Oct 17, 2012 at 7:06 AM, Satinderpal Singh > wrote: >> I used formsets for different forms in my project, it displays the >> forms to user but on submitting the form it gives the following error: >> 'che

Re: login using an external database

2012-11-09 Thread Satinderpal Singh
;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

Re: login using an external database

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

Adding rows to the form

2012-11-15 Thread Satinderpal Singh
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

TypeError:

2012-11-15 Thread Satinderpal Singh
t 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 gro

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

Re: calling the view function in the other view function

2012-11-30 Thread Satinderpal Singh
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 G

Re: Can't undestrand Url pagination and template

2012-12-02 Thread Satinderpal Singh
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/

Re: IntegrityError

2012-12-18 Thread Satinderpal Singh
n_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 a search box for searching the

Re: IntegrityError

2012-12-18 Thread Satinderpal Singh
On Tue, Dec 18, 2012 at 12:25 PM, Sandeep kaur wrote: > On Tue, Dec 18, 2012 at 2:48 AM, Satinderpal Singh > wrote: >> I created a search box for searching the information about the client >> so that this information uses to create the report. > > add these lines :

Re: new user

2012-12-21 Thread Satinderpal Singh
On Fri, Dec 21, 2012 at 5:57 PM, senthil mariyappan 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 because you are subscribed to the Goo

Re: saving get objects to models

2013-01-22 Thread Satinderpal Singh
m asking for, i am unable to save 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 yo

Re: saving get objects to models

2013-01-22 Thread Satinderpal Singh
lue to be 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@g

Re: Saving browser output as pdf

2013-02-24 Thread Satinderpal Singh
On Sun, Feb 24, 2013 at 8:00 PM, Nick Apostolakis 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. >> >> By the way, i am t

Re: Saving browser output as pdf

2013-02-24 Thread Satinderpal Singh
ocument, use @Mike's > solution. > > Good Luck, Thanks. > > Mark > > > On Sun, Feb 24, 2013 at 8:04 AM, Satinderpal Singh > wrote: >> >> On Sun, Feb 24, 2013 at 8:00 PM, Nick Apostolakis >> wrote: >> > On 24/02/2013 03:15 μμ, Satinderpal Sin

Re: Saving browser output as pdf

2013-02-24 Thread 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

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

2013-03-17 Thread Satinderpal Singh
.com' EMAIL_HOST_PASSWORD = '*' 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 use

Re: Goodbye, Malcolm

2013-03-19 Thread Satinderpal Singh
"Django developers" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to django-developers+unsubscr...@googlegroups.com. > To post to this group, send email to django-develop...@googlegroups.com. > Visit this group at http://groups.google.

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

2013-03-31 Thread Satinderpal Singh
r.html, error at line 12 2 {% load i18n %} 3 4 {% block content %} 5 6 {% for Heads in Head %} 7 8 No.GNDEC/TCC/R/{{Heads.job_id}}Dated{{Heads.dispatch_report_date}} 9 10 To, 12 {% for add in client %} 13 {{ add.client__client__first_name}} {{ add.client__client__middle_name}} {{add.client__client_

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

2013-04-01 Thread Satinderpal Singh
__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':depart

Re: Django polls application problem

2013-06-20 Thread Satinderpal Singh
roup 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.c

Re: Search from database

2013-07-20 Thread Satinderpal Singh
On Sat, Jul 20, 2013 at 8:48 AM, Kamal Kaur 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 are subscribed to the Goog

Re: new field in models

2013-07-22 Thread Satinderpal Singh
tive, 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 django-users+unsubscr...@googlegroups.

Re: Iterating over fields in Formset

2013-08-10 Thread Satinderpal Singh
gt; 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 Singh -- You received this message because you are subscrib

Fwd: Django url error

2013-08-15 Thread Satinderpal Singh
o.core.handlers.wsgi 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 s

Re: upgrading to 1.5.1

2013-08-18 Thread Satinderpal Singh
t ,In Django 1.5, you can now swap out theUser model for one that you write yourself. This could be a simple extension to the existing User model – for example, you could add a Twitter or Facebook ID field – or you could completely replace the User with one totally customized for your site. -- Satin

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 this

Re: ValueError at / Empty module name

2013-09-04 Thread Satinderpal Singh
o send an email to # the site admins on every HTTP 500 error when DEBUG=False. # See http://docs.djangoproject.com/en/dev/topics/logging for # more details on how to customize your logging configuration. LOGGING = { 'version': 1, 'disable_existing_loggers': False,

Re: ValueError at / Empty module name

2013-09-04 Thread Satinderpal Singh
a after messages proccesor Thanks a lot Mantas. > > On Wed, Sep 4, 2013 at 12:53 PM, Mantas Zilinskis > wrote: >> >> and also all your traceback >> >> >> On Wed, Sep 4, 2013 at 12:45 PM, Satinderpal Singh >> wrote: >>> >>> On Wed, Se

Re: ValueError at / Empty module name

2013-09-04 Thread Satinderpal Singh
ule 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 from this group and stop receiving emails from it,

Re: no value in database

2013-09-30 Thread Satinderpal Singh
ust 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...@googlegroups.com. To post to this g

Re: Foreign key attribute in django

2014-03-22 Thread Satinderpal Singh
ll 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-users+unsubscr...@googlegroups.com. T

Re: submit buttons in django

2014-03-22 Thread Satinderpal Singh
es 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 emails from it, send an email to django-use

Re: Foreign key attribute in django

2014-03-22 Thread Satinderpal Singh
On Mar 22, 2014 8:27 PM, "Harjot Mann" wrote: > > On Sat, Mar 22, 2014 at 8:19 PM, Satinderpal Singh > wrote: > > And the same problem is still there:) > > Please show me the code. > > Sorry didn't get you. > Are you facing the same problem or do y

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: Adding models from one app to another app

2014-05-28 Thread Satinderpal Singh
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 received this mes

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: (ModelForm) confusion

2014-07-30 Thread Satinderpal Singh
dels.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 Groups "Django