Re: DJANGO Migrations from older version : South db

2018-05-02 Thread Ankush Sharma
last): File "manage.py", line 11, in execute_from_command_line(sys.argv) File "/home/ankush/.virtualenvs/catmaid/lib/python3.5/site-packages/django/core/management/__init__.py", line 364, in execute_from_command_line utility.execute() File "/home/ankush

Re: ARGPARSE ERROR

2018-04-12 Thread Ankush Sharma
Hi Babatunde , I installed other listed tools ! Here the main concern im talking about is Argsparse - the Progressbar2 3.6.2 requires argparse, which is not installed. Thanks in advance Ank On Thu, 12 Apr 2018 at 20:53, Babatunde Akinyanmi wrote: > This is not a django problem. Simply instal

Re: [ANN]: django-todo 2.0

2018-04-12 Thread Ankush Sharma
Thanks ! I will try to implement as you suggested !! On Thu, 12 Apr 2018 at 17:31, Scot Hacker wrote: > On Thursday, April 12, 2018 at 1:47:14 AM UTC-7, Derek wrote: >> >> Interesting to hear of this. >> >> Unfortunately we are currently committed to Django 1.11 as it is an LTS, >> but if you're

Error in django 1.8.7 version with python 2.7.12

2017-11-10 Thread Ankush Chauhan
I am getting the following trackback error message when I run command(python manage.py runserver) on ubuntu OS: Traceback (most recent call last): File "manage.py", line 10, in execute_from_command_line(sys.argv) File "/usr/lib/python3/dist-packages/django/core/management/__init__.py",

Re: Flattening model relationships (in APIs)

2017-02-27 Thread Ankush Thakur
I guess this is the library in question: https://github.com/marcinn/restosaur (took some effort to find it!). Thanks, if I decide to stick with the API-first approach, I'll use it. Either way, I've bookmarked it for future use. :-) Regards, Ankush Thakur On Mon, Feb 27, 2017 at 7:53

Re: Flattening model relationships (in APIs)

2017-02-27 Thread Ankush Thakur
Hmmm. That's not an answer I wanted to hear, really, but I like it. I'm myself finding DRF too restrictive once you are past the effort-saving magic. Thank you. I might give it up as it's still early days in the project. Regards, Ankush Thakur On Mon, Feb 27, 2017 at 7:43 PM, wr

Re: Flattening model relationships (in APIs)

2017-02-27 Thread Ankush Thakur
ion? That's where I have no answers. Would it be possible for you to point me towards some article that does that? Thanks in advance! Regards, Ankush On Monday, February 27, 2017 at 3:41:49 AM UTC+5:30, marcin@gmail.com wrote: > > > > On Tuesday, February 21, 2017 at

Re: Flattening model relationships (in APIs)

2017-02-23 Thread Ankush Thakur
re for the front-end guys. So my question is, how can I rearrange these fields to give a flat JSON output rather than have objects within objects. I hope it makes more sense now. ~~ Ankush On Wednesday, February 22, 2017 at 9:59:26 AM UTC+5:30, Mike Dewhirst wrote: > > Ankush > > I t

Re: Flattening model relationships (in APIs)

2017-02-23 Thread Ankush Thakur
Also, I don't have any need of providing several types of addresses as of now. For now I'm just sticking with outputting everything when the address is requested. ~~ Ankush On Thursday, February 23, 2017 at 9:13:01 PM UTC+5:30, Ankush Thakur wrote: > > Hey Mike, > > Th

Flattening model relationships (in APIs)

2017-02-21 Thread Ankush Thakur
t;code": "DEL", "state": { "id": 1, "name": "Delhi", "code": "DEL", "country": { "id": 1, "name": "India",

Re: Unable to set up celery in supervisord

2016-07-22 Thread Ankush Thakur
Yes, I guess that's good enough. Thanks for helping out! :-) Regards, Ankush Thakur On Fri, Jul 22, 2016 at 10:54 PM, George Silva wrote: > I'm familiar with the two ways I've explained to you. I'm not sure if > there are others. > > Actually, it's a sing

Re: Unable to set up celery in supervisord

2016-07-22 Thread Ankush Thakur
/celery/blob/3.1/extra/supervisord/celeryd.conf, there's no mention of environment variables. Regards, Ankush Thakur On Fri, Jul 22, 2016 at 10:34 PM, George Silva wrote: > Check the docs. There's plenty of information regarding this. > > It's probably a bad formatted ch

Re: Unable to set up celery in supervisord

2016-07-22 Thread Ankush Thakur
Wooohooo! That did it. Many thanks! :-) :-) :-) Umm, but, say, isn't kind of clunky, that I have to copy all the variables over to the supervisor config? Isn't there a neater way to do it? Regards, Ankush Thakur On Fri, Jul 22, 2016 at 10:21 PM, George Silva wrote: > The secret

Re: Unable to set up celery in supervisord

2016-07-22 Thread Ankush Thakur
Well, setting up the line this way gives me the following error: Starting supervisor: Error: Format string 'PYTHONPATH=/home/ankush/jremind/jremind,JREMIND_SECRET_KEY="SDFDSF@$%#$%$#TWFDFGFG%^$%ewrw$#%TFRETERTERT$^",JREMIND_DATABASE="jremind",JREMIND_USERNAME=&quo

Unable to set up celery in supervisord

2016-07-21 Thread Ankush Thakur
​I'm trying to set up celery as a supervisord job (for my Django project) and getting an error. Most likely it's because of wrong import paths (or some other environment setting), but I have no idea what. Please help! Here's my directory structure ('>' means down one l

Re: Confused about this aggregation example from the docs

2016-07-07 Thread Ankush Thakur
Ah, that totally skipped my mind. Thanks yet once again, Tim! :-) Best, Ankush On Wednesday, June 29, 2016 at 7:18:31 AM UTC+5:30, Tim Graham wrote: > > 'book' (the model name) is the default value of ForeignKey.related_name > for the publisher field on Book. > >

Question about model attributes

2016-07-03 Thread Ankush Thakur
ething real-world, I thought of tossing the question here. Regards, Ankush Thakur -- 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..

Re: Serving static files

2016-06-28 Thread Ankush Thakur
Hmmm. One argument I read supporting separate servers is that it would save the main server a few socket connections. But this appears to be too little of a gain. The approach of using a CDN, I think, is much more sensible. Thanks once again, Tim! Regards, Ankush Thakur On Wed, Jun 29, 2016 at

Re: Serving static files

2016-06-28 Thread Ankush Thakur
Thanks but I'm afraid I wasn't able to grasp the point of that article. Could you break it down for me, please? ~~Ankush On Monday, June 27, 2016 at 10:07:43 PM UTC+5:30, ludovic coues wrote: > > It's not that the framework will come to an halt. It's that a ser

Serving static files

2016-06-27 Thread Ankush Thakur
to a halt, even though the same framework can happily serve thousands of requests per hour? Regards, Ankush Thakur -- 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 e

Confused about this aggregation example from the docs

2016-06-25 Thread Ankush Thakur
books = models.ManyToManyField(Book) registered_users = models.PositiveIntegerField() My question is: How come something like "Publisher.objects.annotate(num_books=Count('book'))" work? The name "book" is not defined as a reverse relationship (I think it sh

Re: Adding Tinymce to Admin

2016-06-09 Thread Ankush Thakur
Nope. And you know why, coz I'm an idiot! :P Will try this and post here if I run into problems. Thanks a ton! ~~Ankush On Thursday, June 9, 2016 at 5:15:52 PM UTC+5:30, jorr...@gmail.com wrote: > > Have you looked at https://github.com/aljosa/django-tinymce ? > -- You receive

Re: Adding Tinymce to Admin

2016-06-09 Thread Ankush Thakur
Ah, yes! I entirely forgot about admin.py, my head swirling with too many concepts to remember. Let me work on that see how it goes. Thanks! :-) ~~Ankush On Thursday, June 9, 2016 at 2:20:04 PM UTC+5:30, ludovic coues wrote: > > I'm pretty sure you can specify a widget to use in adm

Quick-render an object in generic CBV

2016-06-09 Thread Ankush Thakur
object the way we do with model forms? I mean, is there some way I can say something like 'object.as_table()'? I thought of using FormView as a substitute for this, but that requires data to be present in POST, and forcibly populating POST seems like a bad idea. Any thoughts? Regards, An

Adding Tinymce to Admin

2016-06-08 Thread Ankush Thakur
ce at the back of my head tells me that I won't need to alter Admin, but I'm not sure. Because I don't have any forms (I directly edit/create from the Admin), I don't think I can get away with only saying something like 'content = models.TextField(widget='tinymce')&#

Re: Django websites for study and improvement

2016-06-08 Thread Ankush Thakur
Wow, that's quite a lot! Thanks, Akhil! Can I write to you with (silly) questions I might have about these? :P ~~Ankush On Tuesday, May 31, 2016 at 11:39:53 PM UTC+5:30, Akhil Lawrence wrote: > > You can get many django based applications from github. > > https://github.com/t

Re: Django websites for study and improvement

2016-06-08 Thread Ankush Thakur
Superb recommendation, Tim! Thanks once again! :D :D ~~Ankush On Wednesday, June 1, 2016 at 8:18:46 PM UTC+5:30, Tim Graham wrote: > > You might enjoy looking at djangoproject.com itself: > https://github.com/django/djangoproject.com/ > > On Tuesday, May 31, 2016 at 1:56:39 P

Why are models must for permissions?

2016-06-01 Thread Ankush Thakur
t linked to any one model. Maybe there's a way to create permissions without a model and I've missed it? I think I'm going nuts . . . ~~Ankush -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this grou

Django websites for study and improvement

2016-05-31 Thread Ankush Thakur
d. I can choose to study the django.contrib apps, but my focus is not on diving into Django's internals right now. Any recommendations? Regards, Ankush Thakur -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from

Re: A question on save_m2m()

2016-05-18 Thread Ankush Thakur
Ah! Stupid, stupid me. Thanks a lot for clarifying! :-) Best, Ankush On Wednesday, May 18, 2016 at 12:15:57 PM UTC+5:30, James Schneider wrote: > > > > On Sat, May 14, 2016 at 2:42 AM, Ankush Thakur > wrote: > >> So the following section from the docs

Django get_prep_value giving headache

2016-05-17 Thread Ankush Thakur
an idiot and didn't realize I was supposed to enter a value for the primary key. Now, however, when I run my tests, I get a long traceback which ends in: ValueError: invalid literal for int() with base 10: 'Programming' How can I undo this sin? Regards, Ankush Thakur -- You re

A question on save_m2m()

2016-05-14 Thread Ankush Thakur
= I can understand why Django doesn't save Many-to-Many data when commit is set to False, but why do we need to manually call save_m2m() after doing save() manually? Why doesn't Django update the associated Many-to-Many data automatically in this case? Regards, Ankush Thakur -- You

Re: 1.8 or 1.9?

2016-05-14 Thread Ankush Thakur
uld do the Django > tutorial of Django website before, step by step. > > On Thursday, May 12, 2016 at 8:55:15 AM UTC-7, Ankush Thakur wrote: > >> I want to take a Udemy course on Django because it shows how to make an >> e-commerce website. The only catch - it follows Dja

Re: 1.8 or 1.9?

2016-05-14 Thread Ankush Thakur
akes out a lot of pain than when performing certain tasks in 1.8? I hope it won't feel like I'm stuck with maintaining VB code while the world has moved on? :P Best, Ankush On Thursday, May 12, 2016 at 10:43:07 PM UTC+5:30, Florian Schweikert wrote: > > On 12/05/16 18:36, S

1.8 or 1.9?

2016-05-12 Thread Ankush Thakur
oing to be that significant, but later on when I recreate the project myself in 1.9, I wouldn't want to tear out my hair solving weird error messages. Any wise words? Regards, Ankush Thakur -- You received this message because you are subscribed to the Google Groups "Django users&qu

Re: (Newbie) Stuck with annotate() docs

2016-04-28 Thread Ankush Thakur
Yup! Makes sense now. I hope it saves someone some trouble someday. :-) Thanks a lot, Tim! Best, Ankush On Thursday, April 28, 2016 at 12:21:35 AM UTC+5:30, Tim Graham wrote: > > Please give this a try: https://github.com/django/django/pull/6524 > > On Wednesday, April 27, 2016 at

Re: (Newbie) Stuck with annotate() docs

2016-04-27 Thread Ankush Thakur
quot;Book.objects.first().chapters"? > > On Tuesday, April 26, 2016 at 12:50:31 PM UTC-4, Ankush Thakur wrote: >> >> Folks, I'm having exceptional trouble understanding annotate(), >> aggregate(), and their various combinations. I'm currently stuck here:

(Newbie) Stuck with annotate() docs

2016-04-26 Thread Ankush Thakur
Folks, I'm having exceptional trouble understanding annotate(), aggregate(), and their various combinations. I'm currently stuck here: https://docs.djangoproject.com/en/1.9/topics/db/aggregation/#combining-multiple-aggregations The example here uses Book.objects.first().chapters.count(), but th

Re: Access denied for user

2012-12-27 Thread Ankush
d email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > -- Cheers, Ankush Chadda -- You received this message because you are subscribed to the Google Groups "Django users" gr

Re: Trouble Accessing An Image through ImageField

2012-12-23 Thread Ankush
go-users@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > -- With Regards, Ankush Chadda -- You received this message because you

Re: Change label/title from an application added to django admin

2012-12-23 Thread ankush . chadda
Hi, Look at the Meta options verbose_name and verbose_name_plural Using these you can change the display name in admin. Cheers, Ankush Chadda Sent from BlackBerry® on Airtel -Original Message- From: Emiliano Dalla Verde Marcozzi <65647...@gmail.com> Sender: django-users@googlegrou