Re: Agricultural and livestock marketplace plus social network as a whole

2024-03-15 Thread sandeep kumar
Where are you located? *Sandeep Kumar, Ph.D.* *https://www.linkedin.com/in/dr-skumar/ <https://www.linkedin.com/in/dr-skumar/>* On Fri, Mar 15, 2024 at 3:49 PM Jorge Bueno wrote: > Good evening everyone, I need help in my personal project to create an > agricultural and livestock

Re: How to trace circular import error Django never solved!! Please sort this out.

2020-07-22 Thread sandeep kumar
'import views', let me know. I am not sure I have reached that stage ever..:) Hope this helps. Thanks, Sandeep -- *Dr. Sandeep Kumar,* Postdoctoral Researcher, Lunenfeld Tanenbaum Research Institute, Mount Sinai Hospital, 600 University Ave, Toronto, Ontario Canada http://individual.

Re: It is Possible to send html File through Django Rest api? Please suggest

2020-03-20 Thread Sai Sandeep Rayanuthala
Yeah possible. Use content disposition. On Thu, 19 Mar 2020, 13:01 Suraj Thapa FC, wrote: > No > > On Thu, 19 Mar 2020, 10:53 am venna venkatReddy, > wrote: > >> It is Possible to send html File through Django Rest API. I need how to >> send Template/one.html file to Other Application when they

Re: cant import views

2020-03-18 Thread Sai Sandeep Rayanuthala
There is no function index in views. That is the problem. Create a function named index in views. On Wed, 18 Mar 2020, 22:30 Laurent Gattegno, wrote: > I think the problem is inside the views.py file. It looks like python > doesnt find views.index and the problem may be the index > Laurent Gatte

Re: Error while hosting on heroku

2020-03-13 Thread Sai Sandeep Rayanuthala
You need to type Heroku run bash -a appname Make sure you configured your postgres database correctly. On Sat, 14 Mar 2020, 00:04 shree hari, wrote: > I tried that too. > Still its the same. > > -- > You received this message because you are subscribed to the Google Groups > "Django users" gro

Double hashing in django

2020-01-20 Thread sandeep bisht
hey guys, have you any idea about password double hashing in django? -- 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

Outsourcing of django code for new startup

2019-12-27 Thread sandeep kumar
skc.ku...@utoronto.ca if case you can manage these projects. Thanks, Sandeep -- 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-user

Re: Not able to install Django in ubuntu 16.04

2018-12-21 Thread Sandeep Sengar
done; On Fri, Dec 21, 2018 at 8:30 PM Gear Crew wrote: > Hello the first one show us your message errors and the second prefer use > virtual environment like pipenv or virtualenv and hold on until solve your > problem > On Friday, 21 December 2018 15:34:00 UTC+2, Dr. Sandeep Singh

Not able to install Django in ubuntu 16.04

2018-12-21 Thread Dr. Sandeep Singh Sengar
Hi, I have tried lot to install Django framework from https://docs.djangoproject.com/en/2.1/topics/install/#installing-official-release . However every time there is new error, kindly support me in this regard by providing clear steps. I am using Python 3.7.1 and pip 18.1 Your help will be

Django Database Table Front End Editing

2018-08-22 Thread Sandeep Khatri
Hi, I am using a django framework and wants to fetch data from mysql database table. I also wants user to edit and update table column data at ui/ frontend. Please help me out with this issue. Thanks and Regards, Sandeep Khatri -- You received this message because you are subscribed to the

error while creating superuser

2017-09-05 Thread Sandeep S
Hi All, I am getting error when I tried to create a superuser. I am using Cassandra 3.0 with Django 1.11.4. I used this command in Pycharm: manage.py createsuperuser error: "cassandra.protocol.SyntaxException: " What am I doing wrong? -- You received this message because you are subscribe

Django forms.CharField subclass with additional attribute

2017-02-18 Thread Sandeep Raheja
I am trying to generate a form dynamically and want to assign indentation of form fields. I am trying to assign an custom attribute offset to forms.CharField in subclass. I plan to use this logic to create a form dynamically from an xml file, where the fields would be indented based on the dept

Subclassing forms.CharField with additional attribute

2017-02-18 Thread Sandeep Raheja
I am trying to generate a form dynamically and want to assign indentation of form fields. I am trying to assign an custom attribute offset to forms.CharField in subclass. I plan to use this logic to create a form dynamically from an xml file, where the fields would be indented based on the depth

Re: Django ponycheckup check up results

2016-12-11 Thread Sandeep Patil
t EB command and take it from there. …I suppose you could > try writing a Python function or a Django command that will append your > desired setting to the .htaccess file when you run it. > > > > *From:* django...@googlegroups.com [mailto: > django...@googlegroups.c

django admin interface

2016-11-16 Thread Sandeep Jalagam
how can i add custom action button beside add button? -- 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 th

Re: Django ponycheckup check up results

2016-11-04 Thread Sandeep Patil
Dear all, Noone else here who has this issue? Really would like to learn how this works. Thanks, Sandeep On Saturday, September 17, 2016 at 9:29:29 PM UTC+2, Sandeep Patil wrote: > > Dear All, > > I checked my django site a security ponycheckup at ponycheckup.com and I > go

Django ponycheckup check up results

2016-09-17 Thread Sandeep Patil
Dear All, I checked my django site a security ponycheckup at ponycheckup.com and I got 90%, which is good. However I am stuck at resolving the error " Web server allows TRACE Your web server allows the TRACE method. This is not good, as it rarely serves a purpose, and can be used in cross-site s

Re: No module named _mysql

2015-09-16 Thread Sandeep kaur
/backends/mysql/base.py", line 27, in [Thu Sep 17 05:27:38 2015] [error] [client 123.239.71.95] raise ImproperlyConfigured("Error loading MySQLdb module: %s" % e) [Thu Sep 17 05:27:38 2015] [error] [client 123.239.71.95] ImproperlyConfigured: Error loading MySQLdb module: No modul

No module named _mysql

2015-09-16 Thread Sandeep kaur
SQL is not working with apache. Your help will be highly appreciated. -- Sandeep Kaur Blog: sandymadaan.wordpress.com SCM: https://github.com/sandeepmadaan -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group

Adding admin access for external users

2015-03-27 Thread Murthy Sandeep
Hi I am setting up an admin user account to manage my Django app on my local machine, but would it be possible for me to also give admin access to external users using their own machines? My machine is not part of a LAN/WAN, just standalone, but I am thinking that to enable this I should provide

Re: Image in Form Field

2015-03-23 Thread Sandeep kaur
Anybody please help. On Sun, Mar 22, 2015 at 3:07 PM, Sandeep kaur wrote: > Greetings, > I want to have the thumnails of images with the names in the dropdown > field of form. To return the image as foreign key field, I have used this > code : > def __unicode__(self): >

Image in Form Field

2015-03-22 Thread Sandeep kaur
ead() return '%s' % (self.name) + HttpResponse(image_data, content_type="image/jpg") But it give following error : Exception Value: coercing to Unicode: need string or buffer, HttpResponse found Is it possible to do this ? Thanks. -- Sandeep Kaur Blog: sandymada

Data migration script populating db table - testing

2015-03-22 Thread Murthy Sandeep
it reports there are no migrations to apply. Sandeep -- 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 thi

Re: Data migration using RunPython

2015-03-05 Thread Murthy Sandeep
ng like Country.objects.using(db_alias).bulk_update( ) Country.objects.using(db_alias).bulk_delete( ) ? Thanks again in advance. Sandeep > On 5 Mar 2015, at 19:34, aRkadeFR wrote: > > Hello, > > In Django, you can instanciate objects from your model without > persist it to

Data migration using RunPython

2015-03-04 Thread Murthy Sandeep
d please explain what is happening here and how this method works - is the argument to bulk_create a list of namedtuple objects called Country or are these Country model objects? Also could someone please explain what db_alias is? Sandeep -- You received this message because you are subscribed to

Re: Populating Django app db with JSON data

2015-03-04 Thread Murthy Sandeep
the app model that is stored when I do `python manage.py migrate`? Sandeep > On 2 Mar 2015, at 19:37, aRkadeFR wrote: > > Hello, > > Indeed, the data migration is the best way. Check out > the documentation here: > https://docs.djangoproject.com/en/1.7/ref

Populating Django app db with JSON data

2015-03-01 Thread Sandeep Murthy
Hi I've tried to get the answer to this question (which is a bit open-ended) on stackoverflow without much success, which is basically this: what is the recommended approach to populating a pre-existing Django app database table (generated from a model and which is currently empty) with JSON dat

Re: django problem with mysql and apache

2014-12-24 Thread Sandeep kaur
kends/mysql/base.py", line 14, in > import MySQLdb as Database > ImportError: No module named 'MySQLdb' About this, try installing MySQLdb using this command: apt-get install python-mysqldb -- Sandeep Kaur Blog: sandymadaan.wordpress.com SCM: https://github.com/sandeepmad

Re: deploying django on gunicorn

2014-09-05 Thread Sandeep kaur
dule) > 11:13:37 web.1 | ImportError: No module named hellodjango.wsgi Your application is not able to find the module hellodjango.wsgi. Did you make the wsgi.py file? -- Sandeep Kaur E-Mail: mkaurkha...@gmail.com Blog: sandymadaan.wordpress.com -- You received this message because you are subscr

Re: nginx server not reflecting changes

2014-07-09 Thread Sandeep kaur
mod wsgi. Can you help me in getting this issue resolved. Well my issue is resolved. All I do after making the changes is : $ service supervisord reload $ service nginx reload -- Sandeep Kaur E-Mail: mkaurkha...@gmail.com Blog: sandymadaan.wordpress.com -- You received this message because you

Re: how to saven models dynamically inputted by user in form

2014-07-03 Thread Sandeep kaur
uyer_id = models.ForeignKey(User) OMG. What do want to say? Can you please use some other medium to show your code? Github may be one. -- Sandeep Kaur E-Mail: mkaurkha...@gmail.com Blog: sandymadaan.wordpress.com -- You received this message because you are subscribed to the Google Group

Re: where is base.html located?

2014-05-04 Thread Sandeep kaur
s the line > > {% extends "base.html" %} Inside the template folder. -- Sandeep Kaur E-Mail: mkaurkha...@gmail.com Blog: sandymadaan.wordpress.com -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from th

Re: Error when using apache 2.4.6

2014-01-17 Thread Sandeep kaur
gi file, change sys.path.append('/home/jass') to sys.path.append('/home/jass/') that means add slash at the end. -- Sandeep Kaur E-Mail: mkaurkha...@gmail.com Blog: sandymadaan.wordpress.com -- You received this message because you are subscribed to the Google Groups "Django user

Re: nginx server not reflecting changes

2014-01-14 Thread Sandeep kaur
but server is nicely configured and is running. I am new to nginx and gunicorn deployment. Though deployment has been done but am not able to understand why the changes are not visible and which program is running which is behind the deployment. Your help will be highly appreci

nginx server not reflecting changes

2014-01-11 Thread Sandeep kaur
for this? -- Sandeep Kaur E-Mail: mkaurkha...@gmail.com Blog: sandymadaan.wordpress.com -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-user

Re: Django application

2013-12-05 Thread Sandeep kaur
roject which is not working. Do I need to start the app with gunicorn or something like this? -- Sandeep Kaur E-Mail: mkaurkha...@gmail.com Blog: sandymadaan.wordpress.com -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe

Re: Django application

2013-12-05 Thread Sandeep kaur
On Thu, Dec 5, 2013 at 9:37 AM, Lachlan Musicman wrote: > > Which web server are you using to serve it on the host server? > > Apache, nginx are the most likely... > It's nginx. > And how do you have that web server configured? I configured it using gunicorn and supervis

Django application

2013-12-04 Thread Sandeep kaur
Hello, I installed a django app "zebra" in my django site. This application is working with runserver but not on host server. I want it running on host server ASAP. What could be the probable reason for this behavior of app? Your help will be appreciated. -- Sandeep Kaur E-Mail

Deploying Django apps with nginx

2013-11-10 Thread Sandeep kaur
example.com/django or if any other app on same server then with example.com/django2. How can we do this with nginx? Your help will be appreciated. :) Thank you. -- Sandeep Kaur E-Mail: mkaurkha...@gmail.com Blog: sandymadaan.wordpress.com -- You received this message because you are subscribed to the

Re: django difference between - one to one, many to one and many to many

2013-10-29 Thread Sandeep kaur
t. class Car(models.Model): manufacturer = OneToOneField('Manufacturer') # ... Hope this helped. -- Sandeep Kaur E-Mail: mkaurkha...@gmail.com Blog: sandymadaan.wordpress.com -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: Editing forms in django

2013-10-18 Thread Sandeep kaur
uest.POST, instance=my_record) Documentation is here: http://docs.djangoproject.com/en/1.3/topics/forms/modelforms/ -- Sandeep Kaur E-Mail: mkaurkha...@gmail.com Blog: sandymadaan.wordpress.com -- You received this message because you are subscribed to the Google Groups "Django us

Re: Iterating over fields in Formset

2013-08-11 Thread Sandeep kaur
On Mon, Aug 12, 2013 at 5:47 AM, Dan Gentry wrote: > What is the purpose of checking test.id for a value of 3 or 6? > For test.id == 3 or 6, some other code will be executed, else this code. I am currently doing for else part. -- Sandeep Kaur E-Mail: mkaurkha...@gmail.co

Re: Iterating over fields in Formset

2013-08-10 Thread Sandeep kaur
temp = {'FAtestform_formset': FAtestform_formset, 'student':student, 'test':test } return render_to_response('report/add_marks.html', temp, context_instance = RequestContext(request)) -- Sandeep Kaur E-Mail

Re: Iterating over fields in Formset

2013-08-10 Thread Sandeep kaur
On Fri, Aug 9, 2013 at 2:50 PM, Sandeep kaur wrote: > I have my code for formset here : > > {% csrf_token %} > Your help would be really appreciated. Waiting. -- Sandeep Kaur E-Mail: mkaurkha...@gmail.com Blog: sandymadaan.wordpress.com -- You received this message because you ar

Iterating over fields in Formset

2013-08-09 Thread Sandeep kaur
://devplace.in/~sandy/screen.png But the problem with this is that all the fields does not get saved in the database. Only the last row of the screenshot get submitted. How can I do it right so that all the multiple rows get submitted at once? -- Sandeep Kaur E-Mail: mkaurkha...@gmail.com Blog

Re: [GD 40883] Re: Haystack

2013-07-30 Thread Sandeep kaur
was not given > whether to append the file or replace the content. So, did it place the results in schema.xml file? Is there any such file and it has appropriate permissions to write the content. -- Sandeep Kaur E-Mail: mkaurkha...@gmail.com Blog: sandymadaan.wordpress.com -- You receive

Selecting values from database

2013-07-23 Thread Sandeep kaur
table? Like from this row, I should get 7,8,9. Eagerly waiting fro your reply. Thank you. -- Sandeep Kaur E-Mail: mkaurkha...@gmail.com Blog: sandymadaan.wordpress.com -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe

Re: Application Migration form Django 1.3 to Django 1.5

2013-06-17 Thread Sandeep kaur
s that need to be made. There is a urls.py file where we need to change the direct_to_template to template_view and in html file change the ones with like {% url login %} to {% url 'login ' %}. Thank you @Andreas and some developer for helping me out. Or to make it little easy for other apps

Application Migration form Django 1.3 to Django 1.5

2013-06-16 Thread Sandeep kaur
. -- Sandeep Kaur E-Mail: mkaurkha...@gmail.com Blog: sandymadaan.wordpress.com -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@google

Re: No module named wsgi

2013-05-23 Thread Sandeep kaur
On Thu, May 23, 2013 at 8:29 PM, Luggaz wrote: > I don't know what I dd but it seems to work now! > mod wsgi installation could have also solved he purpose, using this command : $sudo apt-get install apache2 libapache2-mod-wsgi -- Sandeep Kaur E-Mail: mkaurkha...@gma

Re: Django Shopping Cart

2013-03-10 Thread Sandeep kaur
On Thu, Feb 28, 2013 at 2:32 AM, vijay shanker wrote: > hey, i want to write a shopping cart app, please provide some inputs, useful > information, suggestions etc for doing it right . Have a look at this too. https://github.com/bmentges/django-cart -- Sandeep Kaur E-Mail: mk

Re: Extending the base file depending on User type

2013-03-07 Thread Sandeep kaur
" portion will automatically send the base_template > variable into your template. > Thanks a lot. You explained everything so gracefully. -- Sandeep Kaur E-Mail: mkaurkha...@gmail.com Blog: sandymadaan.wordpress.com -- You received this message because you are subscribed to the Google G

Re: Extending the base file depending on User type

2013-03-06 Thread Sandeep kaur
On Wed, Mar 6, 2013 at 2:39 AM, Shawn Milochik wrote: > Instead of extends, you could use the "include" directive. > "include" worked but destroyed all the structure of the template. :-/ -- Sandeep Kaur E-Mail: mkaurkha...@gmail.com Blog: sandymadaan.wordpress.com --

Extending the base file depending on User type

2013-03-05 Thread Sandeep kaur
.is_active %} {% extends "base_client.html" %} {% else %} {% extends "base_noclient.html" %} However this code doesn't work. What should be done. Your help will be highly appreciated. Thank you. -- Sandeep Kaur E-Mail: mkaurkha...@gmail.com Blog: sandymadaan.wordpress

Re: How do I get the current user in a model?

2013-02-11 Thread Sandeep kaur
On Mon, Feb 11, 2013 at 7:42 PM, frocco wrote: > Hello, > > I have some logic I want to put in a model, but it requires know the current > user logged in. > Is there a way to get this? > This gets the current logged in user : current_user = request.user -- Sandeep Kau

Re: forign key no forms

2013-02-10 Thread Sandeep kaur
by default acessible in the forms in the form of drop down. You just need to define the form of your model and the in template file write this : {% csrf_token %} {{ form.as_table }} -- Sandeep Kaur E-Mail: mkaurkha...@gmail.com Blog: sand

Re: Database Transaction Migration

2013-01-24 Thread Sandeep kaur
> > import oldapp.models > import newapp.models > > for oldrec in oldapp.models.MyModel.objects.all(): > newapp.models.MyNewModel.create (newfield=oldrec.oldfield,..) > Sorry, this mail was sent by mistake. And thank you Javier, I think this is the only solution now.

Database Transaction Migration

2013-01-24 Thread Sandeep kaur
-- Forwarded message -- From: Javier Guerra Giraldez Date: Wed, Jan 23, 2013 at 3:34 AM Subject: Re: Database Transaction To: django-users@googlegroups.com On Tue, Jan 22, 2013 at 11:54 AM, Sandeep kaur wrote: > Yes, I also thought south will be helpful but when we need to

Re: Database Transaction

2013-01-22 Thread Sandeep kaur
stand how to use south. Can you provide me some tutorial for the same. Thank you. -- Sandeep Kaur E-Mail: mkaurkha...@gmail.com Blog: sandymadaan.wordpress.com -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, s

Re: saving get objects to models

2013-01-22 Thread Sandeep kaur
will help you : p = table(material =material, ...[other fields of table to be saved]) p.save() Here table is your table where you want object value to be saved. Hope this helps you. -- Sandeep Kaur E-Mail: mkaurkha...@gmail.com Blog: sandymadaan.wordpress.com -- You received this message because

Database Transaction

2013-01-21 Thread Sandeep kaur
the two applications? Your help will be appreciated. Thank you. -- Sandeep Kaur E-Mail: mkaurkha...@gmail.com Blog: sandymadaan.wordpress.com -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to dj

Re: ImportError at/ No module name

2012-12-20 Thread Sandeep kaur
'django.contrib.admin', 'django.contrib.admindocs', 'djangopractice.blog', ) Hope this helps. -- Sandeep Kaur E-Mail: mkaurkha...@gmail.com Blog: sandymadaan.wordpress.com -- You received this message because you are subscribed to the Google Groups &q

Re: Problem with django sitemap

2012-12-17 Thread Sandeep kaur
t.com/en/dev/ref/settings/#std:setting-TEMPLATE_LOADERS>setting. It’s in there by default, so you’ll only need to change this if you’ve changed that setting. 3. Make sure you’ve installed the sites framework<https://docs.djangoproject.com/en/dev/ref/contrib/sites/#module-django.contrib.sites> .

Re: Problem with django sitemap

2012-12-17 Thread Sandeep kaur
2.7.egg/django/utils/importlib.py > in import_module, line 35 > Python Executable: > /home/frank/Projects/python/django/techjobsea.com/baseline27/bin/python > Python Version: 2.7.3 > Are you sure, you followed all the installation steps, especially step 3 in : https://docs.djang

Re: IntegrityError

2012-12-17 Thread Sandeep kaur
27;)) > > But get the following error: > IntegrityError at /report/header/ > (1048, "Column 'job_id' cannot be null") > > Please anybody tell me where i am wrong? > Hope this helps you. -- Sandeep Kaur E-Mail: mkaurkha...@gmail.com Blog: sandymadaan.wordpre

Re: Editing model instance

2012-11-23 Thread Sandeep kaur
don't say my code is correct, Because if it would be, I would have got my results. Please help me change it to correct one. What I want to do : Get instance of one table, which after editing get saved to some other table. What I get : I get values of one table and after editing it get saved to

Re: Editing model instance

2012-11-22 Thread Sandeep kaur
On Thu, Nov 22, 2012 at 5:32 PM, Sergiy Khohlov wrote: > you can set values in form via form __init__ > Values of some other instance? How? -- Sandeep Kaur E-Mail: mkaurkha...@gmail.com Blog: sandymadaan.wordpress.com -- You received this message because you are subscribed

Re: Editing model instance

2012-11-22 Thread Sandeep kaur
On Thu, Nov 22, 2012 at 4:54 PM, Sergiy Khohlov wrote: > Have you tried to change instances to your new tables ? > If I try instance of new table, I won't get the old values that I need to edit. -- Sandeep Kaur E-Mail: mkaurkha...@gmail.com Blog: sandymadaan.wordpress.com -- You re

Editing model instance

2012-11-22 Thread Sandeep kaur
ant is to get old values from table: Job and ClientJob and then after editing get saved in tables: EditJob and ClentEditJob. Is this possible? Your help will be appreciated. Thank you. -- Sandeep Kaur E-Mail: mkaurkha...@gmail.com Blog: sandymadaan.wordpress.com -- You received this message be

Re: why the else statement {% else %} is not working...?

2012-11-19 Thread Sandeep kaur
On Mon, Nov 19, 2012 at 4:24 PM, muhammed riyas wrote: > no even there is no employees i didnt got it > Show your views too. -- Sandeep Kaur E-Mail: mkaurkha...@gmail.com Blog: sandymadaan.wordpress.com -- You received this message because you are subscribed to the Google Groups &

Re: why the else statement {% else %} is not working...?

2012-11-19 Thread Sandeep kaur
Sorry there is no employees yet :( > {% endif %} > > > I don't find any errors here. I think you are always getting employees, that's why only if part works and else part doesn't work. :p -- Sandeep Kaur E-Mail: mkaurkha...@gmail.com Blog: sandymadaan.wordpres

Re: django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: No module named MySQLdb

2012-11-18 Thread Sandeep kaur
if this helps : https://github.com/vsajip/MySQL-for-Python-3 -- Sandeep Kaur E-Mail: mkaurkha...@gmail.com Blog: sandymadaan.wordpress.com -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us

Re: ModelForm excluded one field but it excludes another field

2012-11-17 Thread Sandeep kaur
his? What could be the problem? > When we exclude a field from a form, that field become invisible. But as we know, that it is mandatory to fill the foreign key value (else the form will become invalid), so you should by some way give some value to foreign key field. -- Sandeep Kaur E-Mail: m

Re: django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: No module named MySQLdb

2012-11-17 Thread Sandeep kaur
mproperlyConfigured: Error loading MySQLdb module: > No module named MySQLdb > Try this : sudo apt-get install python-mysqldb -- Sandeep Kaur E-Mail: mkaurkha...@gmail.com Blog: sandymadaan.wordpress.com -- You received this message because you are subscribed to the Google Groups "Djan

Re: Adding rows to the form

2012-11-16 Thread Sandeep kaur
f 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. > This may be helpful : http://stellarchariot.com/blog/2011/02/dynamically-add-form-to-formset-using-javascript-and-django/ -- Sande

Re: ViewDoesNotExist'module ' object has no attribute 'Form'

2012-11-16 Thread Sandeep kaur
anage.py shell >>> from django import forms #input >>> forms.Form #input #output If you don't get this output, you are using old version of Django. Use new version. -- Sandeep Kaur E-Mail: mkaurkha...@gmail.com Blog: sandymadaan.wordpress.com -- You received

Re: no Polls in the admin page

2012-11-01 Thread Sandeep kaur
('Date information', {'fields': ['pub_date']}), ] inlines = [ChoiceInline] list_display = ('question', 'pub_date') list_filter = ['pub_date'] search_fields = ['question'] admin.site.registe

Re: Problem with formset

2012-11-01 Thread Sandeep kaur
of cd, making it kinda > useless? > > should here be a cd = ObjectName() in there? > According to me, he need not to assign cd, because it is then not used anywhere to clean the form data. -- Sandeep Kaur E-Mail: mkaurkha...@gmail.com Blog: sandymadaan.wordpress.com -- You received this mes

Conditions in template slows down the software

2012-09-14 Thread Sandeep kaur
}} {{ clients.receipt_no }} {{clients.name_and_address}} {{amounts.field}} ... ... This code slows down the system to a great extent. Please suggest me an alternate and better solution. -- Sandeep Kaur E-Mail: mkaurkha

Saving the form containing checkboxes

2012-08-25 Thread Sandeep kaur
check testsTest NameQuantityCosts {% if test %} {% for tests in test %} {{tests.name }}{{tests.quantity }}{{tests.cost }} {% endfor %} {% endif %} {% else %} No material found {% endif %} Please do point me out where

Re: Using sessions in Django

2012-08-17 Thread Sandeep kaur
On Fri, Aug 17, 2012 at 1:28 PM, Sandeep kaur wrote: > I am using session foreign key in my table. > if not request.session.exists(request.session.session_key): > request.session.create() > profile.sess = request.session

Re: Using sessions in Django

2012-08-17 Thread Sandeep kaur
profile.sess = Session.objects.get(session_key=request.session.session_key) > Thanks a lot. This worked. :) -- Sandeep Kaur E-Mail: mkaurkha...@gmail.com Blog: sandymadaan.wordpress.com -- You received this message because you are subscribed to the Google Groups "Django users" group. T

Re: Using sessions in Django

2012-08-17 Thread Sandeep kaur
one bill and receipt. But for each different material, different jobs are created. So, I thought it could be achieved by storing the session in which the user logged and then get the bill generated based on that session. If you find it a vague solution, do tell the most optimum solution. -- S

Using sessions in Django

2012-08-17 Thread Sandeep kaur
: ```Cannot assign "'b593c61453d7aad199078c66b9ad6b30'": "ClientJob.sess" must be a "Session" instance. I am a bit unclear about using sessions in django, so be a little elaborative. Thank you. -- Sandeep Kaur E-Mail: mkaurkha...@gmail.com Blog: san

Re: Calculations in Queries

2012-08-15 Thread Sandeep kaur
y guidelines, or is this even > achievable? > Why don't you use sessions for the same. That is, in a session find number of clicks on the pages by a user, then save it in database. Then just get the page that has maximum clicks, that will be the most popular page. Just a wild idea.

Re: Dynamic forms

2012-08-01 Thread Sandeep kaur
$("select#test").attr('disabled', false); }); //} }); $("select#test").change(function(vent) { if ($(this).val() == -1) {

Dynamic forms

2012-07-30 Thread Sandeep kaur
doesn't support java, how would our could run? Help would be really appreciated. Thank you. -- Sandeep Kaur E-Mail: mkaurkha...@gmail.com Blog: sandymadaan.wordpress.com -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to t

Re: Django TypeError

2012-07-18 Thread Sandeep kaur
On Wed, Jul 18, 2012 at 3:13 PM, kenneth gonsalves wrote: > On Wed, 2012-07-18 at 14:10 +0530, Sandeep kaur wrote: > request.user Thank you sir , this was helpful. :) -- Sandeep Kaur E-Mail: mkaurkha...@gmail.com Blog: sandymadaan.wordpress.com -- You received this message because y

Re: Django TypeError

2012-07-18 Thread Sandeep kaur
views to the users based on there permissions ? Thanks in advance. -- Sandeep Kaur E-Mail: mkaurkha...@gmail.com Blog: sandymadaan.wordpress.com -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to djan

Django TypeError

2012-07-16 Thread Sandeep kaur
return render_to_response('index3.html', context_instance=RequestContext(request)) But it gives TypeError as : "cannot convert dictionary update sequence element #0 to a sequence" Is there anything wrong in above code? -- Sandeep Kaur E-Mail: mkaurkha...@gmail.com Blog: san

Re: to add counter in the project

2012-07-03 Thread Sandeep kaur
a counter field in a table, then in models.py, add this : job_no = models.AutoField(primary_key=True) But if you want the counter in tables in the template file then add {{forloop.counter}} as your table field. Correct me if I am wrong anywhere. -- Sandeep Kaur E-Mail: mkaurkha...@gmail

Re: Database Query in Shell

2012-05-27 Thread Sandeep kaur
nge (field already equals field), I assume this isn't an > issue. > You are great, sir. Thank you. The query successfully updated the field column as was required. -- Sandeep Kaur E-Mail: mkaurkha...@gmail.com Blog: sandymadaan.wordpress.com -- You received this message because you

Database Query in Shell

2012-05-27 Thread Sandeep kaur
entries in table where 2 columns are equal, there field should be assigned a string "OTHER" and other_field should remain as such. How can I give such query in shell. -- Sandeep Kaur E-Mail: mkaurkha...@gmail.com Blog: sandymadaan.wordpress.com -- You received this message because y

Re: Foreign Key don't work for me

2012-05-16 Thread Sandeep kaur
.objects.aggregate(Max('job_no')) maxid =id['job_no__max'] if request.method == 'POST': form =AmountForm(request.POST) if form.is_valid(): cd = form.cleaned_data #job_no

Foreign Key don't work for me

2012-05-16 Thread Sandeep kaur
d = ClientJob.objects.aggregate(Max('job_no')) maxid =id['job_no__max'] if request.method == 'POST': form =AmountForm(request.POST) if form.is_valid(): cd = form.cleaned_data #job_

Tables with Foreign Key does not get filled

2012-05-11 Thread Sandeep kaur
uest): id = ClientJob.objects.aggregate(Max('job_no')) maxid =id['job_no__max'] if request.method == 'POST': form =AmountForm(request.POST) if form.is_valid(): cd = form.cleaned_data

Re: Implementing Foreign Key without admin interface

2012-03-28 Thread Sandeep kaur
On Fri, Mar 9, 2012 at 4:31 AM, Ramiro Morales wrote: > On Thu, Mar 8, 2012 at 4:44 PM, Sandeep kaur wrote: >>                        job_no_id = client.job_no >>                        ... >> Am I wrong somewhere?  How should I do this?  Please help!! > > Yes, t

Implementing Foreign Key without admin interface

2012-03-08 Thread Sandeep kaur
axid': maxid}, context_instance=RequestContext(request)) Am I wrong somewhere? How should I do this? Please help!! -- Sandeep Kaur E-Mail: mkaurkha...@gmail.com Blog: sandymadaan.wordpress.com -- You received this message because you are subscribed to the Google Groups "Django users"

Foreign Key + Primary key

2012-02-08 Thread Sandeep kaur
Is there any way of having a field in table, declared both as foreign key as well as primary key? I want something like this in models: publisher = models.ForeignKey(Publisher,primary_key=True) -- Sandeep Kaur E-Mail: mkaurkha...@gmail.com Blog: sandymadaan.wordpress.com -- You received

Re: Views in django

2012-02-05 Thread Sandeep kaur
) and add > it to the client. Python allows you to add any value you >want to any object. > Thank you for your suggestions. :-) -- Sandeep Kaur E-Mail: mkaurkha...@gmail.com Blog: sandymadaan.wordpress.com -- You received this message because you are subscribed to the Google Groups &q

  1   2   >