Re: Django Session KeyError

2020-02-25 Thread Pankaj Sharma
Make sure your line request.session['ts_dataset_copy'], print anything above it, also make sure you are using POST method in forms (method = "post") On Tuesday, February 25, 2020 at 3:47:25 AM UTC+5:30, Guy NANA wrote: > > I have an angular frontend app which send file to django backend which

Re: reg: Error:-django.db.utils.OperationalError: (1170, "BLOB/TEXT column 'Description' used in key specification without a key length")

2020-02-25 Thread Pankaj Sharma
You haven't set max_len of TextField, use this - do it like this -- Description = models.TextField(max_length=1000) On Monday, February 24, 2020 at 8:14:25 PM UTC+5:30, Amitesh Sahay wrote: > > Hi, > > I am creating a model, which is taking a description as text field. when I > migrate I see

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: 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 <new.pankajsha...@gmail.com> 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 tha

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

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

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

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

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 <tarkesh...@gmail.com> wrote: > In your settings filehttp://docs.djangoproject.com/en/dev/topics/settings/ > > On Thu, May 12, 2011 at 10:20 AM, pankaj sharma > <new.pankajs

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

Re: filter in python

2011-05-10 Thread pankaj sharma
thanku very much. On May 9, 11:02 pm, Jani Tiainen <rede...@gmail.com> 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 syste

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

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 =

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 <rede...@gmail.com> wrote: > On Sun, 2011-05-08 at 09:59 -0700, pankaj sharma wrote: > > hello .. > > > i am havi

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

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

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 =

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

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

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

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

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

Re: Advanced Search

2011-05-02 Thread pankaj sharma
thanks. On May 2, 1:52 am, Ankit Rai <i.ankit@gmail.com> 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, 201

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

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',

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