Re: Is it Possible to run django locally without internet connection

2019-05-07 Thread Shashank Singh
Run server with command ./manage.py runserver 0:8000. 0 here tells that any one on the same network can access the project's urls like this. Suppose your laptop's ip is 10.0.0.156 so from your phone go to 10.0.0.156:8000/admin and you are connected to your django projects. You must be on the same

Re: Unit conversions between model field value and form field value

2019-05-07 Thread Shashank Singh
One way could be make a custom read only field to show it in current value in days and take a custom field and on save_model take its value as days multiply it with 24 and save it in model's field. On Wed, May 8, 2019, 7:05 AM Joe Reitman wrote: > Hi Tim, > > There is a 'Best Practices' guide

Re: How to run ORM commands in Javascript DOM?

2019-04-09 Thread Shashank Singh
Get the data in the current screen before opening the popup or hit a ajax request to the server to get the said data. On Tue, 9 Apr, 2019, 8:32 PM sairanganadh Narayana, wrote: > I am trying to run model.objects.filter(id=2) through javascript and show > results in popup. I am unable to find

Re: filter two columns django

2019-03-17 Thread Shashank Singh
OR from django.db.models import Q news_list = LeagueNews.objects.filter(Q(publication_date__lte=timezone.now)|Q(league_name='english')).order_by('-publication_date')[:10] AND news_list = LeagueNews.objects.filter(publication_date__lte=timezone.now,

Redirect to another page

2019-03-09 Thread Shashank Singh
I have a model, say ModelA, and on the admin add page of this model i have recieved some parameter based on which i sonetimes want to let the user add a object of the model and sometime wants to redirect to another page. How do I do that? -- You received this message because you are subscribed

Re: the name of Django package

2019-02-25 Thread Shashank Singh
Wagtail On Mon, 25 Feb, 2019, 8:44 PM Suresh Kannan, wrote: > Hello everyone, > > I am relatively new to Django. I am looking for a package where a client > can edit the front end of the Django app. > Say for example the client wants to change the typo/contact details in the > web app in the

Re: Accessing child relations when overriding save()

2019-02-10 Thread Shashank Singh
And how? On Sun, 10 Feb, 2019, 9:23 PM Shashank Singh When do you create child objects?? > > On Sun, 10 Feb, 2019, 9:17 PM Nick Emery >> Tried this too but save() never actually gets called on the child (it >> seems that the foreign key field of the child is updated at the

Re: Accessing child relations when overriding save()

2019-02-10 Thread Shashank Singh
t; On Sunday, February 10, 2019 at 8:37:54 AM UTC-5, Shashank Singh wrote: >> >> Override the save() of the child? >> >> On Sun, 10 Feb, 2019, 7:04 PM Nick Emery > >>> I am trying to wrap up my first app using Django (specifically Django >>> Rest Fr

Re: Accessing child relations when overriding save()

2019-02-10 Thread Shashank Singh
Override the save() of the child? On Sun, 10 Feb, 2019, 7:04 PM Nick Emery I am trying to wrap up my first app using Django (specifically Django > Rest Framework which may change the save behavior), but have run into an > issue that I haven't been able to solve for about 10 hours now. > > I am

Re: filtering and searching help - regarding

2019-02-03 Thread Shashank Singh
Can you give an example. On Sun, 3 Feb, 2019, 7:49 PM Mohan Goud here the problem is, i can't give sectionname, dept and year directly. It > has to do it for all sections in the database. can u help me how to do this. > > > > On Sun, Feb 3, 2019 at 7:41 PM Shashank Singh <

Re: filtering and searching help - regarding

2019-02-03 Thread Shashank Singh
Student.objects.filter(section__iexact="a", department=1,year=2019).order_by("name") On Sun, 3 Feb, 2019, 7:32 PM Mohan Goud django > > > > On Sun, Feb 3, 2019 at 7:30 PM Birol Demirtaş > wrote: > >> Django ? Or ? >> >> 3 Şub 2019 Paz, saat 16:59 tarihinde Mohan Goud < >>

Re: problem with a form

2019-01-22 Thread Shashank Singh
post is a queryset and it doesn't have comment_text attribute. {% for single_post in post %} {{single_post.comment_text}} On Tue, 22 Jan, 2019, 7:54 PM in your html use > {{post}} instead of the .comment added > > -- > You received this message because you are subscribed to the Google Groups >

Re: Add fields Django admin

2019-01-22 Thread Shashank Singh
Take those fields out as a foreign key and use that foreign key as inline in this admin. On Wed, 23 Jan, 2019, 4:14 AM Alexandr Bulgakov Hello All! > > I need help( > > > There is a class, it has 2 fields. I need to add an add button to display > these fields again when required. > models.py: >

Re: best way to generate PDFs in django - handling concurrency

2018-12-28 Thread Shashank Singh
Celery + django + rabbitmq + template+ django-hardcopy https://github.com/loftylabs/django-hardcopy On Sat, 29 Dec, 2018, 9:17 AM Danny Blaker Great. Thanks > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this

Re: Looking for a Django Co-Founder.

2018-11-25 Thread Shashank Singh
I am also interested. Is there is anything I can do now? On Mon, 19 Nov, 2018, 7:04 PM Idowu Tunde Helo you can do public found raising > In term of ICO which help to get more fund from the puplic > > On Sunday, November 18, 2018, Zack Amaral wrote: > >> What time are you available today? >> >>

Re: Upload Image Field? ASAP PLS

2018-11-17 Thread Shashank Singh
Why not doing it? Where are you stuck? On Sun, 18 Nov, 2018, 8:02 AM Richard Vo Need to upload an image, manipulate the image through Python Pillow, then > display it. > > Whatever additional information I need to provide, please let me know. > > -- > You received this message because you are

Re: How to move readonly_fields on top of page?

2018-11-05 Thread Shashank Singh
fields = ['a', 'b', 'c'] readonly_fields = ['a', 'b'] A and b will appear before c. On Mon, 5 Nov, 2018, 8:03 PM Karol Ołtarzewski <2004ka...@gmail.com wrote: > I want to place normal fields below readonly_fields > > > On Mon, 5 Nov 2018 at 07:08, Joel wrote: > >> Explain. What do you mean move

Re: How to move readonly_fields on top of page?

2018-11-05 Thread Shashank Singh
Override fields and add readonly_fields first. On Mon, 5 Nov, 2018, 11:38 AM Joel Explain. What do you mean move on top of page? > > On Mon, 5 Nov, 2018, 2:46 AM Karol Ołtarzewski <2004ka...@gmail.com wrote: > >> Good morning guys. >> >> I have a problem namely: >> I have to place