You are seeing this page because DEBUG=True is in your settings file and you have not configured any URLs.

2022-11-09 Thread Priyanka Sivaratri
Hi, I am new to django and I appreciate your quick help. I am able to run django server on localhost:8000 but I am seeing this error : *You are seeing this page because DEBUG=True is in your settings file and you have not configured any URLs.* urls.py: from django.contrib import admin from djang

django-haystack filter engine with elastic search backend. It gaves a list of all engine but i want to display only one engine that matches with maker

2019-10-14 Thread Priyanka patil
class PartLookUpHaystackSerializer(HaystackFacetSerializer): serialize_objects = True class Meta: # The `index_classes` attribute is a list of which search indexes # we want to include in the search. index_classes = [PartIndex] # The `fields` con

how to define migrations to use BigAutoField

2018-04-30 Thread Priyanka Thakur
here a way to define primary key as "BIgAutoField" in settings , so that we don't have to explicitly define "id" column for each model. Regards, Priyanka -- You received this message because you are subscribed to the Google Groups "Django users" group. To

How to save foreign key along with parent object in django 1.10

2017-12-04 Thread Priyanka Thakur
Model): name = models.CharField(max_length=255L, blank=True) class Book(models.Model): author = models.ForeignKey(Author) I want to do: author = Author('Robert Frost') book = Book(author) book.save() Can this be done in Django 1.10 ? Regards, Priyanka -- You receiv

Result of queryset in Django 1.10 is not sorted

2017-09-04 Thread Priyanka Thakur
Hi, As part of migration to Django 1.10.4 from 1.7, I have noticed that queryset results are unsorted, compared to previous version. Has same behaviour been observed by anyone? Regards, Priyanka -- You received this message because you are subscribed to the Google Groups "Django

Re: Custom field implementing Boolean Field is having response value as None instead of False

2017-06-19 Thread Priyanka Thakur
ch it is getting from "to_representation " method. Regards, Priyanka On Monday, 19 June 2017 22:51:44 UTC+5:30, Melvyn Sopacua wrote: > > On Monday 19 June 2017 04:00:42 Priyanka Thakur wrote: > > > On Monday, 19 June 2017 16:05:06 UTC+5:30, m712 - Developer wrote:

Re: Custom field implementing Boolean Field is having response value as None instead of False

2017-06-19 Thread Priyanka Thakur
Oh, ok got the point !! Thanks !! Regards, Priyanka On Monday, 19 June 2017 16:05:06 UTC+5:30, m712 - Developer wrote: > > Melvyn was not saying whether you were checking for None. If `value` is > i.e. "some string" your to_python method will return `None`. You should do &g

Re: Custom field implementing Boolean Field is having response value as None instead of False

2017-06-19 Thread Priyanka Thakur
Hi Melvyn, I am checking for None in the last if condition in to_python method : --copy-- > if value in ('f', 'False', 'false', '0', '\x00', *None*): return > False --copy-- Thanks for checking and replying !! Regards, Priyanka On

Custom field implementing Boolean Field is having response value as None instead of False

2017-06-16 Thread Priyanka Thakur
'grid_view': "TestGridView", 'name': "Test Metametadata", 'sort_key': 9000, 'parentid': 0, 'version':0, 'id': 100}, format='json') Please explain , what is it that I'm d

Re: makemigrations running for all apps defined in INSTALLED_APPS

2017-06-06 Thread Priyanka Thakur
Nothing helps till now !! Thanks, Priyanka On Tuesday, 6 June 2017 12:22:00 UTC+5:30, Priyanka Thakur wrote: > > Hi, > > I am migrating from Django 1.7.4 to Django 1.10.0 and is facing issue > while running migrations. > > I am running the comand : python manage.py makemig

makemigrations running for all apps defined in INSTALLED_APPS

2017-06-05 Thread Priyanka Thakur
_associatedpartversion = models.ForeignKey(PartVersion, null=True, blank=True,db_column='FK_ASSOCIATEDPARTVERSION', related_name = '%(class)s_fk_associatedpartversion') Router definition: def allow_migrate(self, db, app_label, model_name=None, **hints):

EXCLUSIVE PHOTO-SHOOTS OF THE SEXIEST MODELS N CELBRITIES... MOST RARE PICS

2007-11-19 Thread priyanka
THE BEST SITES FOR THE NEWEST WALLPAPERS N GOSSIP N ALL THE OTHER HAPPENINGS IN BOLLYWOOD HOLLYWOOD N IN THE GLAMOROUS WORLD:- http://bollywood-dhamaal.blogspot.com/ http://comingup-bollywood.blogspot.com/ http://nasty-hollywood.blogspot.com/ http://fun-at-its-best.blogspot.com/ http://glamou

HOTTEST PHOTO-SHOOTS OF THE SEXIEST MODELS N CELEBRITIES. GET THEM HERE

2007-11-17 Thread priyanka
THE BEST SITES FOR THE NEWEST WALLPAPERS N GOSSIP N ALL THE OTHER HAPPENINGS IN BOLLYWOOD HOLLYWOOD N IN THE GLAMOROUS WORLD:- http://bollywood-dhamaal.blogspot.com/ http://comingup-bollywood.blogspot.com/ http://nasty-hollywood.blogspot.com/ http://fun-at-its-best.blogspot.com/ wanna earn m