Re: Database ORM query Help

2019-10-25 Thread Samiul Sk
Please post the code of Model and explain what do you want as Queryset? On Fri, 25 Oct 2019 at 17:26, Cheda me wrote: > Hey guys, > > I have worked out the SQL query I would like to implement but am currently > struggling to create the Django query. I have been attempting to use the >

Re: to make a wish list .

2019-10-25 Thread Samiul Sk
where is your wishlist model? On Fri, 25 Oct 2019 at 19:41, Shubham Mishra wrote: > thank you , > But I'm not getting the actual logic , I tried so many times but it didn't > work , so if you suggest me with some code . this will help me a lot . and > also to get this internship. > > On Fri,

Re: My first django website

2019-10-06 Thread Samiul Sk
Hi, Good work. The only flaw I noticed was in the calendar. When creating a post and selecting a date by mouse clicking the calendar is not disappearing. otherwise good work. Carry on. On Sun, 6 Oct 2019 at 20:40, Ehab Al-Qabbani wrote: > Thanks so much > > On Sun, Oct 6, 2019 at 4:51 PM

django-channels: differentiate different `AnonymousUser`s

2018-07-05 Thread SK
Unfortunately I'm using django-channels channels 1.1.8, as I missed all the updates to channels 2.0. Upgrading now is unrealistic as we've just launched this will take some time to figure out correctly. Here's my problem: I'm using the *message.user.id *to differentiate between authenticated

Re: Channels routing - must parse path to separate between consumers?

2017-12-20 Thread SK
ly shouldn't happen. > > Andrew > > On Tue, Dec 19, 2017 at 4:07 AM, SK <shib...@gmail.com > > wrote: > >> So I just spent quite an amount of time posting a lengthy question with >> specifics and examples but Google Groups simply didn't post. >> >> I'll m

Re: Can't wrap my head around routing - docs reference & Github issue inside

2017-12-19 Thread SK
*Update: *I feel like I'm getting closer to solving this issue, but still can't understand one thing. If I have my routing file like this: fb_routing = [ route("websocket.connect", consumers.connect_face), route("websocket.receive", consumers.get_face), route("websocket.disconnect",

Can't wrap my head around routing - docs reference & Github issue inside

2017-12-19 Thread SK
Hi, So maybe I'm getting everything wrong, but I'm a little confused with routing. Let's say I want to separate the consumers dealing with messages coming from my domain root: http://domain.com/ and my `/import/` route: http://domain.com/import/ I have my routing as so: fb_routing = [

Channels routing - must parse path to separate between consumers?

2017-12-19 Thread SK
So I just spent quite an amount of time posting a lengthy question with specifics and examples but Google Groups simply didn't post. I'll make this short: In github issue below Andew writes: Ah, well that's because you don't have a path key in your message - the > routing isn't magical, it

pip install twisted hangs

2015-12-28 Thread Ganeshwari Sk
I have my standalone box without internet connection and having pythong packages in a directory to install, I used the following pip command to install the python package with the "requirement" file /usr/bin/pip install --no-download -r ./installer/requirements -b

Running setup.py install for twisted hangs

2015-12-28 Thread Ganeshwari Sk
I have standalone box with python packages downloaded and no internet connection. And when I tried to execute /usr/bin/pip install --no-download -r ./installer/requirements -b ./installer/SOURCES/python-modules-sources --install-option=--prefix=/somepath/tmp It is hanging when "Running

Re: Little trouble with migration.

2015-05-07 Thread SK
you have added to the installed_apps? четверг, 7 мая 2015 г., 12:39:16 UTC+3 пользователь Алексей Широков написал: > > I have custom user model. > > settings.py > --- > ... > AUTH_USER_MODEL = 'account.User' > ... > > > also I have following AppConfig > > account/apps.py > ---

Re: django select extremely slow on large table

2015-01-22 Thread SK
To many calculations in the from_db_value function. Need optimizations. And what about query limitations: 1.5b is really needed? class SYSGUID16Field(models.Field): default_error_messages = { 'invalid': "'%(value)s' is not a valid SYS_GUID." } description = "A connector to the

Re: Beginning with a feature flag system

2014-07-07 Thread sk
2014 4:19:40 PM UTC-4, george wrote: > > Django Waffle is very good. > > > On Mon, Jul 7, 2014 at 5:07 PM, sk <spk...@nyu.edu > wrote: > >> Hello All, >> >> I would like to try out one of the feature flag libraries available for >> Django. S

Beginning with a feature flag system

2014-07-07 Thread sk
Hello All, I would like to try out one of the feature flag libraries available for Django. So far I have come across Gargoyle - a feature flag library and cannot wrap my head around as to how it should be implemented. Does anyone know of any tutorial or can guide me how to go about it? If

Re: Following multiple reverse relationships

2012-05-23 Thread sk
> On May 22, 12:51 pm, sk <6b656...@gmail.com> wrote: > > > > > > > If I have a hierarchy of models such that: > > > class A(models.Model): > >     name = CharField(max_length=10) > > > class B(models.Model): > >     name = Cha

Following multiple reverse relationships

2012-05-22 Thread sk
If I have a hierarchy of models such that: class A(models.Model): name = CharField(max_length=10) class B(models.Model): name = CharField(max_length=10) a= ForeignKey(A) class C(models.Model): name = CharField(max_length=10) b= ForeignKey(B) If I have an instance of C, as

Re: De-serialization of ManyToManyField

2012-03-28 Thread sk
natural_key(self): return (self.name,) I realise this is a pretty basic Python 'gotcha' and one I would hope I would normally spot! In this case I was just not sure where the problem was. I hope this helps someone else with the same problem, at some point! regards Stephen On Mar 27, 11:02 am, sk

Re: De-serialization of ManyToManyField

2012-03-27 Thread sk
caused by my (lack of) understanding are definitely holding me up! Regards Stephen On Mar 26, 12:01 pm, sk <6b656...@gmail.com> wrote: > Hi, > > I have searched high and low to an answer to this, but have been > unable too turn anything up. Apologies if I have overlooked an answe

De-serialization of ManyToManyField

2012-03-26 Thread sk
Hi, I have searched high and low to an answer to this, but have been unable too turn anything up. Apologies if I have overlooked an answer or explanation elsewhere. I have set up a very simple model as follows: --- from

pycharm change django project directory

2011-04-28 Thread SK
I clone a directory from hg in pycharm such like this: directory (clone from this level) doc server webs d_web1(this is a django project) d_web2(another django project) ... the d_web1 can't be recognized as a django project in pycharm anyone can help me, thx