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
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
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
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
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
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:
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
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
'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
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
_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):
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
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
13 matches
Mail list logo